Reloading RTX User Timer

What is the supposed way to re-start a user timer if it has expired and the os_tmr_call has been called, since calling os_tmr_create is not allowed from within os_tmr_call?
Thanks in advance.

Parents
  • Not sure it is allowed/possible (need to check the manual !), you may be able to manually switch modes back to user mode, call the RTX function, and then call a SWI just before returning from the ISR.
    Another approach is to use "isr_set_evt" to trigger an signal at a task, whose handling will restart the timer (this seems much more robust!).

Reply
  • Not sure it is allowed/possible (need to check the manual !), you may be able to manually switch modes back to user mode, call the RTX function, and then call a SWI just before returning from the ISR.
    Another approach is to use "isr_set_evt" to trigger an signal at a task, whose handling will restart the timer (this seems much more robust!).

Children
More questions in this forum