Procházet zdrojové kódy

end() never disables interrupts

attention, patch for KINETISK only
teensy4-core
Frank před 8 roky
rodič
revize
4a0aebb783
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. +1
    -0
      teensy3/IntervalTimer.cpp

+ 1
- 0
teensy3/IntervalTimer.cpp Zobrazit soubor

void IntervalTimer::end() { void IntervalTimer::end() {
if (channel) { if (channel) {
int index = channel - KINETISK_PIT_CHANNELS; int index = channel - KINETISK_PIT_CHANNELS;
NVIC_DISABLE_IRQ(IRQ_PIT_CH0 + index);
funct_table[index] = dummy_funct; funct_table[index] = dummy_funct;
channel->TCTRL = 0; channel->TCTRL = 0;
#if defined(KINETISL) #if defined(KINETISL)

Načítá se…
Zrušit
Uložit