$dir_pw_third_party/freertos/ module contains various helpers to use
FreeRTOS, including Pigweed backend modules which depend on FreeRTOS.
GN Build Support¶
This module provides support to compile FreeRTOS with GN. This is required when compiling backends modules for FreeRTOS.
In order to use this you are expected to configure the following variables from
Set the GN
dir_pw_third_party_freertosto the path of the FreeRTOS installation.
pw_source_setwhich provides the FreeRTOS config header.
pw_source_setwhich provides the FreeRTOS port specific includes and sources.
After this is done a
pw_source_set for the FreeRTOS library is created at
OS Abstraction Layers Support¶
Support for Pigweed’s OS Abstraction Layers are provided for FreeRTOS via the following modules:
configASSERT and pw_assert¶
To make it easier to use pw_assert with FreeRTOS a helper header
is provided under
pw_third_party/freertos/config_assert.h which defines
configASSERT for you using Pigweed’s assert system for your
FreeRTOSConfig.h if you chose to use it.
// Instead of defining configASSERT, simply include this header in its place. #include "pw_third_party/freertos/config_assert.h"