Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 913 Bytes

File metadata and controls

32 lines (26 loc) · 913 Bytes

Learning Objectives

  • Task Synchronization using Event Groups.

Concepts

An event group can be used to create a synchronization point:

  • Each task that must participate in the synchronization is assigned a unique event bit within the event group.
  • Each task sets its own event bit when it reaches the synchronization point.
  • Having set its own event bit, each task blocks on the event group to wait for the event bits that represent all the other synchronizing tasks to also become set.

Steps

  1. Complete all the TODOs in the source/tutorials/tutorial_16/source/tutorial_16.c file.

  2. Execute the following commands from the root of the repository to build:

    rm -rf build
    mkdir build
    cd build
    cmake -B . -S ../source/ -DTUTORIAL=16
    make
  3. Execute the following command to run the binary:

    ./freertos_example
  4. Understand the output.