diff --git a/DCCRMT.cpp b/DCCRMT.cpp index a561917..294663b 100644 --- a/DCCRMT.cpp +++ b/DCCRMT.cpp @@ -19,6 +19,7 @@ #include "config.h" #include "defines.h" +#if defined(ARDUINO_ARCH_ESP32) #include "DIAG.h" #include "DCCRMT.h" #include "DCCWaveform.h" // for MAX_PACKET_SIZE @@ -166,3 +167,4 @@ void IRAM_ATTR RMTPin::RMTinterrupt() { dataRepeat--; return; } +#endif //ESP32 diff --git a/DCCRMT.h b/DCCRMT.h index bd235b7..078a652 100644 --- a/DCCRMT.h +++ b/DCCRMT.h @@ -19,6 +19,7 @@ #pragma once #include +#if defined(ARDUINO_ARCH_ESP32) #include "driver/rmt.h" #include "soc/rmt_reg.h" #include "soc/rmt_struct.h" @@ -55,3 +56,4 @@ class RMTPin { volatile bool dataReady = false; // do we have real data available or send idle volatile byte dataRepeat = 0; }; +#endif //ESP32