vindar
Well-known member
Hello,
I have a couple of questions about interrupts, specifically for Teensy 4.
What is the default priority for the "interrupt at completion" of a DMA transfer. How should I proceed to adjust this priority ? There does not seems to be a method for that in the DMAChannel library so I guess it should be done by hand right ? I am a bit lost in the IMXRT manual so a snippet of code would be most welcome !
Second, looking at the code of IntervalTimer.h, it seems that all IntervalTimer objects share the same interrupt priority (which is max of all requested priorities). So this would means that another library can raise the priority of my IntervalTimer without my knowledge but I need it to stay lower than my DMA complete channel interrupt... Is there any easy way around that problem. Maybe using another timer ? My use of intervalTimer is as a one-shot timer to be called somewhere between 1ms to 100ms in the future.
Thanks for your input!
I have a couple of questions about interrupts, specifically for Teensy 4.
What is the default priority for the "interrupt at completion" of a DMA transfer. How should I proceed to adjust this priority ? There does not seems to be a method for that in the DMAChannel library so I guess it should be done by hand right ? I am a bit lost in the IMXRT manual so a snippet of code would be most welcome !
Second, looking at the code of IntervalTimer.h, it seems that all IntervalTimer objects share the same interrupt priority (which is max of all requested priorities). So this would means that another library can raise the priority of my IntervalTimer without my knowledge but I need it to stay lower than my DMA complete channel interrupt... Is there any easy way around that problem. Maybe using another timer ? My use of intervalTimer is as a one-shot timer to be called somewhere between 1ms to 100ms in the future.
Thanks for your input!