Teensy 4 PIT timers and interrupt requests

Status
Not open for further replies.

xenington

Well-known member
Hi

I was thinking about PIT timers and attaching and prioritising IRQ's (as you do).

For example:

Code:
attachInterruptVector(IRQ_PIT, example_ISR); 
NVIC_ENABLE_IRQ(IRQ_PIT);               
NVIC_SET_PRIORITY(IRQ_PIT, 0);

I would like to use the PIT timers to trigger several interrupts, but IRQ_PIT has only 1 entry in IMXRT.h.

Does that mean only 1 interrupt can be requested? Is it possible to make several, different interrupt requests? And then set different priorities and time intervals for each one?

Thanks
 
Thank you for the reply and link.

Is it possible to have multiple interrupt requests, e.g. IRQ_PIT[1], IRQ_PIT[2], etc, which can have different priorities?
 
Status
Not open for further replies.
Back
Top