|
|
@ -66,7 +66,6 @@ void uclockInitTimer() |
|
|
|
{ |
|
|
|
{ |
|
|
|
// begin at 120bpm (20833us)
|
|
|
|
// begin at 120bpm (20833us)
|
|
|
|
const uint16_t init_clock = 20833; |
|
|
|
const uint16_t init_clock = 20833; |
|
|
|
ATOMIC( |
|
|
|
|
|
|
|
#if defined(TEENSYDUINO) |
|
|
|
#if defined(TEENSYDUINO) |
|
|
|
_uclockTimer.begin(uclockISR, init_clock);
|
|
|
|
_uclockTimer.begin(uclockISR, init_clock);
|
|
|
|
|
|
|
|
|
|
|
@ -84,7 +83,6 @@ void uclockInitTimer() |
|
|
|
// attach to generic uclock ISR
|
|
|
|
// attach to generic uclock ISR
|
|
|
|
_uclockTimer.attachInterrupt(uclockISR); |
|
|
|
_uclockTimer.attachInterrupt(uclockISR); |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|