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
321
// Add a '//' at the beginning of the line to be in release mode.
323
//#define DCCPP_DEBUG_MODE
324
326
// Verbose mode lets you see all actions done by the
327
// library, but with a real flood of text to console...
328
// Has no effect if DCCPP_DEBUG_MODE is not activated.
329
//#define DCCPP_DEBUG_VERBOSE_MODE
330
332
// The function DCCpp::printConfiguration()
333
// is very heavy in program memory. So to avoid problems
334
// you can make this function available by uncomment the next line.
335
//#define DCCPP_PRINT_DCCPP
336
337
// Inclusion area
338
//
339
341
//#define USE_TURNOUT
343
//#define USE_EEPROM
345
//#define USE_OUTPUT
347
//#define USE_SENSOR
349
#define USE_TEXTCOMMAND
350
351
//#define USE_ETHERNET_WIZNET_5100
353
//#define USE_ETHERNET_WIZNET_5500
355
//#define USE_ETHERNET_WIZNET_5200
357
//#define USE_ETHERNET_ENC28J60
358
359
#if defined(USE_ETHERNET_WIZNET_5100) || defined(USE_ETHERNET_WIZNET_5500) || defined(USE_ETHERNET_WIZNET_5200) || defined(USE_ETHERNET_ENC28J60)
360
#define USE_ETHERNET
361
#endif
362
364
365
#include "DCCpp_Uno.h"
366
#include "PacketRegister.h"
367
#include "CurrentMonitor.h"
368
#include "Config.h"
369
#include "Comm.h"
370
371
#ifdef USE_TURNOUT
372
#include "Turnout.h"
373
#endif
374
#ifdef USE_EEPROM
375
#include "EEStore.h"
376
#endif
377
#ifdef USE_OUTPUT
378
#include "Outputs.h"
379
#endif
380
#ifdef USE_SENSOR
381
#include "Sensor.h"
382
#endif
383
#ifdef USE_TEXTCOMMAND
384
#include "TextCommand.h"
385
#endif
386
387
#include "DCCpp.hpp"
388
389
#ifdef DOXYGEN_SPECIFIC
390
// DO NOT CHANGE THE LINES IN THIS BLOCK 'DOXYGEN_SPECIFIC' : Only here for documentation !
391
395
#define DCCPP_DEBUG_MODE
396
398
#define DCCPP_DEBUG_VERBOSE_MODE
399
404
#define DCCPP_PRINT_DCCPP
405
406
#endif
407
408
#endif
src
DCCpp.h
Generated on mar. janv. 9 2018 20:54:46 for DCCpp by
1.2.10