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

Message queues

Message queues are quite similar. In CMSIS-RTOS, all queues are registered by name, which can make for a richer debugging experience. Also, CMSIS-RTOS supports static allocation via attributes passed in as function parameters.

Any functions called from inside an ISR will automatically be forced to use the FromISR equivalent functions and finish the ISR with a call to portYIELD_FROM_ISR. This results in any blocking times being effectively set to 0. So, for example, if a queue doesn't have space available, a call to osMessageQueuePut will return immediately from inside an ISR, even if a blocking timeout is specified:

CMSIS-RTOS name

FreeRTOS functions called

Notes

osMessageQueueDelete

vQueueUnregisterQueue, vQueueDelete ...

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