1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-22 15:46:14 +01:00

compiles (but no waveform) on ESP32

This commit is contained in:
Harald Barth 2022-07-30 23:02:26 +02:00
parent bfa81b801e
commit 4316413618
2 changed files with 20 additions and 1 deletions

View File

@ -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

View File

@ -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