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 
332 // Add a '//' at the beginning of the line to be in release mode.
334 //#define DCCPP_DEBUG_MODE
335 
337 // Verbose mode lets you see all actions done by the
338 // library, but with a real flood of text to console...
339 // Has no effect if DCCPP_DEBUG_MODE is not activated.
340 //#define DCCPP_DEBUG_VERBOSE_MODE
341 
343 // The function DCCpp::printConfiguration()
344 // is very heavy in program memory. So to avoid problems
345 // you can make this function available by uncomment the next line.
346 //#define DCCPP_PRINT_DCCPP
347 
348 // Inclusion area
349 //
350 
352 //#define USE_TURNOUT
354 //#define USE_EEPROM
356 //#define USE_OUTPUT
358 //#define USE_SENSOR
360 #define USE_TEXTCOMMAND
361 
362 //#define USE_ETHERNET_WIZNET_5100
364 //#define USE_ETHERNET_WIZNET_5500
366 //#define USE_ETHERNET_WIZNET_5200
368 //#define USE_ETHERNET_ENC28J60
369 
370 #if defined(USE_ETHERNET_WIZNET_5100) || defined(USE_ETHERNET_WIZNET_5500) || defined(USE_ETHERNET_WIZNET_5200) || defined(USE_ETHERNET_ENC28J60)
371 #define USE_ETHERNET
372 #endif
373 
375 
376 #include "DCCpp_Uno.h"
377 #include "PacketRegister.h"
378 #include "CurrentMonitor.h"
379 #include "Config.h"
380 #include "Comm.h"
381 
382 #ifdef USE_TURNOUT
383 #include "Turnout.h"
384 #endif
385 #ifdef USE_EEPROM
386 #include "EEStore.h"
387 #endif
388 #ifdef USE_OUTPUT
389 #include "Outputs.h"
390 #endif
391 #ifdef USE_SENSOR
392 #include "Sensor.h"
393 #endif
394 #ifdef USE_TEXTCOMMAND
395 #include "TextCommand.h"
396 #endif
397 
398 #include "DCCpp.hpp"
399 
400 #ifdef DOXYGEN_SPECIFIC
401 // DO NOT CHANGE THE LINES IN THIS BLOCK 'DOXYGEN_SPECIFIC' : Only here for documentation !
402 
406 #define DCCPP_DEBUG_MODE
407 
409 #define DCCPP_DEBUG_VERBOSE_MODE
410 
415 #define DCCPP_PRINT_DCCPP
416 
417 #endif
418 
419 #endif