I am trying to use the IntervalTimer on a Teensy 4 to schedule two tasks periodically with different priority. It seems like even though I set two priorities for my two instances of the IntervalTimer the faster (and higher priority) one is not able to interrupt the other function. It seems like there is just a single priority for PIT_IRQ, even though the PIT has four channels so I guess my plan will not work.
What are possible alternatives to solve the problem of two periodic tasks (40us and 1ms) where the faster one can interrupt the other on the Teensy 4?

Thanks in advance for your help!