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 
289 // Add a '//' at the beginning of the line to be in release mode.
291 //#define DCCPP_DEBUG_MODE
292 
294 // Verbose mode lets you see all actions done by the
295 // library, but with a real flood of text to console...
296 // Has no effect if DCCPP_DEBUG_MODE is not activated.
297 //#define DCCPP_DEBUG_VERBOSE_MODE
298 
300 // The function DCCpp::printConfiguration()
301 // is very heavy in program memory. So to avoid problems
302 // you can make this function available by uncomment the next line.
303 //#define DCCPP_PRINT_DCCPP
304 
305 // Inclusion area
306 //
307 
309 #define USE_TURNOUT
310 
311 #define USE_EEPROM
312 
313 #define USE_OUTPUT
314 
315 #define USE_SENSOR
316 
317 #define USE_TEXTCOMMAND
318 
319 //#define USE_ETHERNET_WIZNET_5100
321 //#define USE_ETHERNET_WIZNET_5500
323 //#define USE_ETHERNET_WIZNET_5200
325 #define USE_ETHERNET_ENC28J60
326 
327 #if defined(USE_ETHERNET_WIZNET_5100) || defined(USE_ETHERNET_WIZNET_5500) || defined(USE_ETHERNET_WIZNET_5200) || defined(USE_ETHERNET_ENC28J60)
328 #define USE_ETHERNET
329 #endif
330 
332 
333 #include "DCCpp_Uno.h"
334 #include "PacketRegister.h"
335 #include "CurrentMonitor.h"
336 #include "Config.h"
337 #include "Comm.h"
338 
339 #ifdef USE_TURNOUT
340 #include "Turnout.h"
341 #endif
342 #ifdef USE_EEPROM
343 #include "EEStore.h"
344 #endif
345 #ifdef USE_OUTPUT
346 #include "Outputs.h"
347 #endif
348 #ifdef USE_SENSOR
349 #include "Sensor.h"
350 #endif
351 #ifdef USE_TEXTCOMMAND
352 #include "TextCommand.h"
353 #endif
354 
355 #include "DCCpp.hpp"
356 
357 #ifdef DOXYGEN_SPECIFIC
358 // DO NOT CHANGE THE LINES IN THIS BLOCK 'DOXYGEN_SPECIFIC' : Only here for documentation !
359 
363 #define DCCPP_DEBUG_MODE
364 
366 #define DCCPP_DEBUG_VERBOSE_MODE
367 
372 #define DCCPP_PRINT_DCCPP
373 
374 #endif
375 
376 #endif