DCCpp
This is the library version of a program for Arduino to control railroading DCC devices.
DCCpp.h
Go to the documentation of this file.
1 //-------------------------------------------------------------------
2 #ifndef __DCCpp_H__
3 #define __DCCpp_H__
4 //-------------------------------------------------------------------
5 
193 // Add a '//' at the beginning of the line to be in release mode.
195 //#define DCCPP_DEBUG_MODE
196 
198 // Verbose mode lets you see all actions done by the
199 // library, but with a real flood of text to console...
200 // Has no effect if DCCPP_DEBUG_MODE is not activated.
201 //#define DCCPP_DEBUG_VERBOSE_MODE
202 
204 // The function DCCpp::printConfiguration()
205 // is very heavy in program memory. So to avoid problems
206 // you can make this function available by uncomment the next line.
207 //#define DCCPP_PRINT_DCCPP
208 
209 // Inclusion area
210 //
211 
213 //#define USE_TURNOUT
215 //#define USE_EEPROM
217 //#define USE_OUTPUT
219 //#define USE_SENSOR
221 #define USE_TEXTCOMMAND
222 
223 //#define USE_ETHERNET_WIZNET_5100
225 //#define USE_ETHERNET_WIZNET_5500
227 //#define USE_ETHERNET_WIZNET_5200
229 //#define USE_ETHERNET_ENC28J60
230 
231 #if defined(USE_ETHERNET_WIZNET_5100) || defined(USE_ETHERNET_WIZNET_5500) || defined(USE_ETHERNET_WIZNET_5200) || defined(USE_ETHERNET_ENC28J60)
232 #define USE_ETHERNET
233 #endif
234 
236 
237 #include "DCCpp_Uno.h"
238 #include "PacketRegister.h"
239 #include "CurrentMonitor.h"
240 #include "Config.h"
241 #include "Comm.h"
242 
243 #ifdef USE_TURNOUT
244 #include "Turnout.h"
245 #endif
246 #ifdef USE_EEPROM
247 #include "EEStore.h"
248 #endif
249 #ifdef USE_OUTPUT
250 #include "Outputs.h"
251 #endif
252 #ifdef USE_SENSOR
253 #include "Sensor.h"
254 #endif
255 #ifdef USE_TEXTCOMMAND
256 #include "TextCommand.h"
257 #endif
258 
259 #include "DCCpp.hpp"
260 
261 #endif