mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-23 16:16:13 +01:00
Merge branch 'dex/unowifi' of https://github.com/DCC-EX/CommandStation-EX into dex/unowifi
This commit is contained in:
commit
7d888e9aa9
|
@ -41,7 +41,7 @@ void DCCWaveform::begin(MotorDriver * mainDriver, MotorDriver * progDriver, byte
|
|||
progTrack.setPowerMode(POWERMODE::OFF);
|
||||
switch (timerNumber) {
|
||||
case 1: interruptTimer= &TimerA; break;
|
||||
#ifndef ARDUINO_AVR_UNO_WIFI_REV2
|
||||
#ifndef ARDUINO_ARCH_MEGAAVR
|
||||
case 2: interruptTimer= &TimerB; break;
|
||||
#ifndef ARDUINO_AVR_UNO
|
||||
case 3: interruptTimer= &TimerC; break;
|
||||
|
|
12
Timer.cpp
12
Timer.cpp
|
@ -62,4 +62,14 @@ ISR(TIMER2_OVF_vect)
|
|||
TimerB.isrCallback();
|
||||
}
|
||||
|
||||
#endif
|
||||
#elif defined(ARDUINO_AVR_UNO_WIFI_REV2)
|
||||
|
||||
#include "ATMEGA4809/Timer.h"
|
||||
|
||||
Timer TimerA(0);
|
||||
|
||||
ISR(TCA0_OVF_vect) {
|
||||
TimerA.isrCallback();
|
||||
}
|
||||
|
||||
#endif
|
|
@ -65,6 +65,7 @@ lib_deps =
|
|||
mathertel/LiquidCrystal_PCF8574
|
||||
monitor_speed = 115200
|
||||
monitor_flags = --echo
|
||||
build_flags = "-DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO_WIFI_DEV_ED -DARDUINO_ARCH_AVR -DESP_CH_UART -DESP_CH_UART_BR=19200"g
|
||||
|
||||
[env:uno]
|
||||
platform = atmelavr
|
||||
|
|
Loading…
Reference in New Issue
Block a user