Skip to Content
Hands-On RTOS with Microcontrollers
book

Hands-On RTOS with Microcontrollers

by Brian Amos
May 2020
Intermediate to advanced
496 pages
13h 54m
English
Packt Publishing
Content preview from Hands-On RTOS with Microcontrollers

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.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On RTOS with Microcontrollers - Second Edition

Hands-On RTOS with Microcontrollers - Second Edition

Jim Yuill, Penn Linder

Publisher Resources

ISBN: 9781838826734Supplemental Content