DCCpp
This is the library version of a program for Arduino to control railroading DCC devices.
DCCpp.h
1 //-------------------------------------------------------------------
2 #ifndef __DCCpp_H__
3 #define __DCCpp_H__
4 //-------------------------------------------------------------------
5 
303 // Add a '//' at the beginning of the line to be in release mode.
305 //#define DCCPP_DEBUG_MODE
306 
308 // Verbose mode lets you see all actions done by the
309 // library, but with a real flood of text to console...
310 // Has no effect if DCCPP_DEBUG_MODE is not activated.
311 //#define DCCPP_DEBUG_VERBOSE_MODE
312 
314 // The function DCCpp::printConfiguration()
315 // is very heavy in program memory. So to avoid problems
316 // you can make this function available by uncomment the next line.
317 //#define DCCPP_PRINT_DCCPP
318 
319 // Inclusion area
320 //
321 
323 //#define USE_TURNOUT
325 //#define USE_EEPROM
327 //#define USE_OUTPUT
329 //#define USE_SENSOR
331 #define USE_TEXTCOMMAND
332 
333 //#define USE_ETHERNET_WIZNET_5100
335 //#define USE_ETHERNET_WIZNET_5500
337 //#define USE_ETHERNET_WIZNET_5200
339 //#define USE_ETHERNET_ENC28J60
340 
341 #if defined(USE_ETHERNET_WIZNET_5100) || defined(USE_ETHERNET_WIZNET_5500) || defined(USE_ETHERNET_WIZNET_5200) || defined(USE_ETHERNET_ENC28J60)
342 #define USE_ETHERNET
343 #endif
344 
346 
347 #include "DCCpp_Uno.h"
348 #include "PacketRegister.h"
349 #include "CurrentMonitor.h"
350 #include "Config.h"
351 #include "Comm.h"
352 
353 #ifdef USE_TURNOUT
354 #include "Turnout.h"
355 #endif
356 #ifdef USE_EEPROM
357 #include "EEStore.h"
358 #endif
359 #ifdef USE_OUTPUT
360 #include "Outputs.h"
361 #endif
362 #ifdef USE_SENSOR
363 #include "Sensor.h"
364 #endif
365 #ifdef USE_TEXTCOMMAND
366 #include "TextCommand.h"
367 #endif
368 
369 #include "DCCpp.hpp"
370 
371 #ifdef DOXYGEN_SPECIFIC
372 // DO NOT CHANGE THE LINES IN THIS BLOCK 'DOXYGEN_SPECIFIC' : Only here for documentation !
373 
377 #define DCCPP_DEBUG_MODE
378 
380 #define DCCPP_DEBUG_VERBOSE_MODE
381 
386 #define DCCPP_PRINT_DCCPP
387 
388 #endif
389 
390 #endif