No HW dependencies

Compiles for AVR and Teensy (Arm) without modifications
This commit is contained in:
MicroBahner
2016-01-03 14:17:02 +01:00
parent 3a293152fc
commit d47795e54a
2 changed files with 294 additions and 73 deletions

View File

@@ -34,7 +34,7 @@
#define NMRA_DCC_PROCESS_MULTIFUNCTION
// Uncomment the following line to Enable 14 Speed Step Support
//#define NMRA_DCC_ENABLE_14_SPEED_STEP_MODE
#define NMRA_DCC_ENABLE_14_SPEED_STEP_MODE
#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
@@ -166,6 +166,16 @@ typedef enum
#define FN_BIT_27 0x40
#define FN_BIT_28 0x80
#define DCC_DBGVAR
#ifdef DCC_DBGVAR
typedef struct countOf_t {
unsigned long Tel;
unsigned long Err;
}countOf_t ;
extern struct countOf_t countOf;
#endif
class NmraDcc
{
private: