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

Delay functions

Delay functions map cleanly between the two APIs:

CMSIS-RTOS name

FreeRTOS functions called Notes

osDelay 

vTaskDelay

osDelay is in ms or ticks, depending on which documentation and comments you believe. Be sure to check your CMSIS-RTOS implementation of osDelay() if a Systick frequency of something other than 1 kHz is used!

osDelayUntil

vTaskDelayUntil, xTaskGetTickCount

 

These basic delay functions work in very similar ways – the biggest difference to keep in mind is that CMSIS-RTOS specifies osDelay in milliseconds instead of ticks, as FreeRTOS does.

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