Timers

Timers are equivalent, with static and dynamic allocation both being defined by the same osTimerNew function: 

CMSIS-RTOS name

FreeRTOS functions called

Notes

osTimerDelete

xTimerDelete

If Heap1 is used, this function returns osError. It also frees up TimerCallback_t* used by the timer to be deleted.

osTimerGetName

pcTimerGetName

osTimerIsRunning

xTimerIsTimerActive

osTimerNew

xTimerCreateStatic, xTimerCreate

Automatic allocation for TimerCallback_t.

osTimerStart

xTimerChangePeriod

osTimerStop

xTimerStop

 

Timers are very similar between the two APIs, but beware of attempting to use osTimerDelete with Heap1.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.141.29.145