Hi,
There are 32 DMA channels, but only 16 dma irqs/interrupt vectors, as can be seen in chapter "3.4 Interrupt channel assignments" of the Teensy 3.6 chip manual (MK66FX1M0VMD18).
From reading the code of DMAChannel.attachInterrupt() it is not obvious to me how the destinction between, e.g., DMA channel 15 and 31, would be made.
Both of them share an interrupt vector table entry, so does that mean that:
Which of the above is true?
There are 32 DMA channels, but only 16 dma irqs/interrupt vectors, as can be seen in chapter "3.4 Interrupt channel assignments" of the Teensy 3.6 chip manual (MK66FX1M0VMD18).
From reading the code of DMAChannel.attachInterrupt() it is not obvious to me how the destinction between, e.g., DMA channel 15 and 31, would be made.
Both of them share an interrupt vector table entry, so does that mean that:
- Only one interrupt handler can be set for dma channel 15 and 31.
- Two interrupt handlers can be set (how does that work?), but both ISRs will be called when dma channel 15 or 31 completes.
- Two interrupt handlers can be set, and each of them is called when their corresponding dma channel completes.
Which of the above is true?