FreeRTOS:
Platform
Platform portability layer
|
Return to main page ↑ |
Configuration settings of the platform layer.
Configuration settings are C pre-processor constants. They can be set with a #
in the iot_config.h or by using a compiler option such as define
-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.
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.
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 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:
IotThreads_Malloc
and IotThreads_Free
.IotNetwork_Malloc
and IotNetwork_Free
.