Priority of GPT and PIT timer

Status
Not open for further replies.

michastro

Member
I have made, with your help, very big progress in my translation of telescope guidance from an UNO32 card to Teensy. I use a PIT timer because I can change the counter as I want with loss of time, and a GPT timer. I am searching how to define the priority of the GPT versus PIT timer. I have search in the documentation, but it's not very obvious.
Thanks
Michel
 
Looking at installed sources : ...\hardware\teensy\avr\cores\teensy4\IntervalTimer.cpp

There I see :: NVIC_SET_PRIORITY(IRQ_PIT, top_priority);

so replacing 'top_priority' with value of choice should do the job?
 
Looking at :: ...\hardware\teensy\avr\libraries\TeensyThreads\TeensyThreads.cpp

Shows a similar setting for GPT ? :: NVIC_SET_PRIORITY(IRQ_GPT1, 255);

Depends on what Teensy and what timer # in use perhaps ...
 
Status
Not open for further replies.
Back
Top