Browse Source

Merge pull request #250 from FrankBoesing/patch-9

end() never disables interrupts
main
Paul Stoffregen 7 years ago
parent
commit
632f311db1
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      teensy3/IntervalTimer.cpp

+ 1
- 0
teensy3/IntervalTimer.cpp View File

@@ -84,6 +84,7 @@ bool IntervalTimer::beginCycles(void (*funct)(), uint32_t cycles)
void IntervalTimer::end() {
if (channel) {
int index = channel - KINETISK_PIT_CHANNELS;
NVIC_DISABLE_IRQ(IRQ_PIT_CH0 + index);
funct_table[index] = dummy_funct;
channel->TCTRL = 0;
#if defined(KINETISL)

Loading…
Cancel
Save