mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-12-24 13:21:23 +01:00
Shield RMT stuff with ifdef ESP32
This commit is contained in:
parent
35ee03537d
commit
c00d3a825d
@ -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
|
||||
|
2
DCCRMT.h
2
DCCRMT.h
@ -19,6 +19,7 @@
|
||||
|
||||
#pragma once
|
||||
#include <Arduino.h>
|
||||
#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
|
||||
|
Loading…
Reference in New Issue
Block a user