Pārlūkot izejas kodu

Update DMAChannel.h

Allow in both KINETISK and KINETISL DMA interrupt with priority
previous PR was only on one of them
teensy4-core
WMXZ-EU pirms 4 gadiem
vecāks
revīzija
ba7381ad44
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam
1 mainītis faili ar 13 papildinājumiem un 1 dzēšanām
  1. +13
    -1
      teensy3/DMAChannel.h

+ 13
- 1
teensy3/DMAChannel.h Parādīt failu

@@ -535,6 +535,12 @@ public:
NVIC_ENABLE_IRQ(IRQ_DMA_CH0 + channel);
}

void attachInterrupt(void (*isr)(void), uint8_t prio) {
_VectorsRam[channel + IRQ_DMA_CH0 + 16] = isr;
NVIC_ENABLE_IRQ(IRQ_DMA_CH0 + channel);
NVIC_SET_PRIORITY(IRQ_DMA_CH0 + channel, prio);
}
void detachInterrupt(void) {
NVIC_DISABLE_IRQ(IRQ_DMA_CH0 + channel);
}
@@ -1035,7 +1041,13 @@ public:
_VectorsRam[channel + IRQ_DMA_CH0 + 16] = isr;
NVIC_ENABLE_IRQ(IRQ_DMA_CH0 + channel);
}

void attachInterrupt(void (*isr)(void), uint8_t prio) {
_VectorsRam[channel + IRQ_DMA_CH0 + 16] = isr;
NVIC_ENABLE_IRQ(IRQ_DMA_CH0 + channel);
NVIC_SET_PRIORITY(IRQ_DMA_CH0 + channel, prio);
}
void detachInterrupt(void) {
NVIC_DISABLE_IRQ(IRQ_DMA_CH0 + channel);
}

Notiek ielāde…
Atcelt
Saglabāt