Chapter 19

USING the FreeRTOS API function calls from an ISR

Abstract

There are applications where we may want to call the FreeRTOS functions from inside an ISR. It is important to realize that most of the FreeRTOS functions are not valid inside an ISR. If a FreeRTOS function is called from an ISR, then it is not being called from a task. FreeRTOS provides two versions of some of the functions where one is for use from ISRs. The functions that can be used inside an ISR have the word FromISR appended to their names. It is recommended that a FreeRTOS function must not be called from an ISR unless its name is appended with the word FromISR. This chapter gives several real time FreeRTOS based multitasking projects and describes in detail how to use ...

Get ARM-Based Microcontroller Multitasking Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.