mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-22 23:56:13 +01:00
compiles (but no waveform) on ESP32
This commit is contained in:
parent
bfa81b801e
commit
4316413618
|
@ -101,6 +101,8 @@ bool IRAM_ATTR DCCTimer::isPWMPin(byte pin) {
|
|||
}
|
||||
void IRAM_ATTR DCCTimer::setPWM(byte pin, bool high) {
|
||||
}
|
||||
void IRAM_ATTR DCCTimer::clearPWM() {
|
||||
}
|
||||
|
||||
// Fake this as it should not be used
|
||||
void DCCTimer::getSimulatedMacAddress(byte mac[6]) {
|
||||
|
@ -126,7 +128,7 @@ int DCCTimer::freeMemory() {
|
|||
return ESP.getFreeHeap();
|
||||
}
|
||||
|
||||
void DCCTimmer:: reset() {
|
||||
void DCCTimer::reset() {
|
||||
ESP.restart();
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -192,3 +192,20 @@ void DCCWaveform::schedulePacket(const byte buffer[], byte byteCount, byte repea
|
|||
sentResetsSincePacket=0;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef ARDUINO_ARCH_ESP32
|
||||
#include "DCCWaveform.h"
|
||||
|
||||
DCCWaveform DCCWaveform::mainTrack(PREAMBLE_BITS_MAIN, true);
|
||||
DCCWaveform DCCWaveform::progTrack(PREAMBLE_BITS_PROG, false);
|
||||
|
||||
DCCWaveform::DCCWaveform(byte preambleBits, bool isMain) {
|
||||
}
|
||||
|
||||
void DCCWaveform::begin() {
|
||||
}
|
||||
void DCCWaveform::schedulePacket(const byte buffer[], byte byteCount, byte repeats) {
|
||||
}
|
||||
void DCCWaveform::loop() {
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue
Block a user