mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-23 16:16:13 +01:00
15 lines
310 B
C++
15 lines
310 B
C++
|
#ifdef ARDUINO_ARCH_MEGAAVR
|
||
|
#include "EveryTimerB.h"
|
||
|
|
||
|
void EveryTimerB::isrDefaultUnused(void) {}
|
||
|
|
||
|
// code timer B2. For B0 and B1 copy this code and change the '2' to '0' and '1'
|
||
|
EveryTimerB TimerB2;
|
||
|
ISR(TCB2_INT_vect)
|
||
|
{
|
||
|
TimerB2.next_tick();
|
||
|
TCB2.INTFLAGS = TCB_CAPT_bm;
|
||
|
}
|
||
|
|
||
|
#endif // ARDUINO_ARCH_MEGAAVR
|