Chapter 12

Event groups

Abstract

Event groups allow events to be communicated to tasks and they allow a task to wait in the blocked state for a combination of one or more events to occur. Event groups unblock the tasks that is waiting for the same event, or combination of events, when the event occurs. Event groups therefore can be used to synchronize tasks, allowing a task to wait in blocked state for any one of a set of events to occur. Event groups can be used in many applications to replace semaphores with a single event group, thus reducing the RAM usage. This chapter is about creating, deleting, setting, and clearing event groups and event flags. The FreeRTOS event group API functions are given and explained in the chapter. This chapter describes ...

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.