|
|
|
@ -66,8 +66,7 @@ void uclockInitTimer() |
|
|
|
|
{ |
|
|
|
|
// begin at 120bpm (20833us)
|
|
|
|
|
const uint16_t init_clock = 20833; |
|
|
|
|
ATOMIC( |
|
|
|
|
#if defined(TEENSYDUINO) |
|
|
|
|
#if defined(TEENSYDUINO) |
|
|
|
|
_uclockTimer.begin(uclockISR, init_clock);
|
|
|
|
|
|
|
|
|
|
// Set the interrupt priority level, controlling which other interrupts
|
|
|
|
@ -76,15 +75,14 @@ void uclockInitTimer() |
|
|
|
|
// As a general guideline, interrupt routines that run longer should be given
|
|
|
|
|
// lower priority (higher numerical values).
|
|
|
|
|
_uclockTimer.priority(0); |
|
|
|
|
#endif |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
#if defined(SEEED_XIAO_M0) |
|
|
|
|
#if defined(SEEED_XIAO_M0) |
|
|
|
|
_uclockTimer.initialize(init_clock); |
|
|
|
|
|
|
|
|
|
// attach to generic uclock ISR
|
|
|
|
|
_uclockTimer.attachInterrupt(uclockISR); |
|
|
|
|
#endif |
|
|
|
|
) |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|