Bläddra i källkod

Merge pull request #495 from WMXZ-EU/patch-1

Update DMAChannel.h
teensy4-core
Paul Stoffregen 5 år sedan
förälder
incheckning
4da51c16fd
Inget konto är kopplat till bidragsgivarens mejladress
1 ändrade filer med 6 tillägg och 0 borttagningar
  1. +6
    -0
      teensy4/DMAChannel.h

+ 6
- 0
teensy4/DMAChannel.h Visa fil

NVIC_ENABLE_IRQ(IRQ_DMA_CH0 + channel); 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) { void detachInterrupt(void) {
NVIC_DISABLE_IRQ(IRQ_DMA_CH0 + channel); NVIC_DISABLE_IRQ(IRQ_DMA_CH0 + channel);
} }

Laddar…
Avbryt
Spara