Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 4 of 4

Thread: Priority of GPT and PIT timer

  1. #1

    Priority of GPT and PIT timer

    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

  2. #2
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    15,074
    Looking at installed sources : ...\hardware\teensy\avr\cores\teensy4\IntervalTime r.cpp

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

    so replacing 'top_priority' with value of choice should do the job?

  3. #3
    My problem is to give more priority with the PIT timer compared to GPT timer.

  4. #4
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    15,074
    Looking at :: ...\hardware\teensy\avr\libraries\TeensyThreads\Te ensyThreads.cpp

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

    Depends on what Teensy and what timer # in use perhaps ...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •