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