FreeRTOS: Platform
Platform portability layer
Return to main page ↑
Configuration

Configuration settings of the platform layer.
Configuration settings are C pre-processor constants. They can be set with a #define in the iot_config.h or by using a compiler option such as -D in gcc. If a configuration setting is not defined, the library will use a "sensible" default value (unless otherwise noted). Because they are compile-time constants, a library must be rebuilt if a configuration setting is changed.

configpagemarker

IOT_LOG_LEVEL_PLATFORM

Set the log level of all platform components except the networking component.

This setting overrides IOT_LOG_LEVEL_GLOBAL for the platform layer components that it affects. All log messages with a level at or below this setting will be printed. The platform networking component is generally more verbose than others, so its logging is controlled separately by IOT_LOG_LEVEL_NETWORK.

Possible values: One of the logging_constants_levels.
Default value (if undefined): IOT_LOG_LEVEL_GLOBAL; if that is undefined, then #IOT_LOG_NONE.

IOT_LOG_LEVEL_NETWORK

Set the log level of the platform networking component.

This setting overrides IOT_LOG_LEVEL_GLOBAL for the platform networking component. All log messages with a level at or below this setting will be printed. See IOT_LOG_LEVEL_PLATFORM to set the log level of other platform components.

Possible values: One of the logging_constants_levels.
Default value (if undefined): IOT_LOG_LEVEL_GLOBAL; if that is undefined, then #IOT_LOG_NONE.

Memory allocation

Memory allocation function overrides for the platform layer.

Some platform layers are not affected by IOT_STATIC_MEMORY_ONLY. Currently, the following platform implementations require memory allocation:

  • POSIX
    This implementation is not affected by IOT_STATIC_MEMORY_ONLY. However, its memory allocation functions may be overridden by setting the following constants. All memory allocation functions must have the same signatures as malloc and free.
    • IotThreads_Malloc and IotThreads_Free.
    • IotNetwork_Malloc and IotNetwork_Free.