Zephyr API Documentation
3.6.99
A Scalable Open Source RTOS
|
Go to the source code of this file.
Macros | |
#define | LINKER_DT_NODE_REGION_NAME_TOKEN(node_id) DT_STRING_TOKEN(node_id, zephyr_memory_region) |
Get the linker memory-region name in a token form. | |
#define | LINKER_DT_NODE_REGION_NAME(node_id) STRINGIFY(LINKER_DT_NODE_REGION_NAME_TOKEN(node_id)) |
Get the linker memory-region name. | |
#define | LINKER_DT_REGIONS() DT_FOREACH_STATUS_OKAY(_DT_COMPATIBLE, _REGION_DECLARE) |
Generate linker memory regions from the device tree nodes with compatible 'zephyr,memory-region'. | |
#define | LINKER_DT_SECTIONS() DT_FOREACH_STATUS_OKAY(_DT_COMPATIBLE, _SECTION_DECLARE) |
Generate linker memory sections from the device tree nodes with compatible 'zephyr,memory-region'. | |
#define LINKER_DT_NODE_REGION_NAME | ( | node_id | ) | STRINGIFY(LINKER_DT_NODE_REGION_NAME_TOKEN(node_id)) |
Get the linker memory-region name.
This attempts to use the zephyr,memory-region property (with non-alphanumeric characters replaced with underscores).
Example devicetree fragment:
Example usage:
node_id | node identifier |
#define LINKER_DT_NODE_REGION_NAME_TOKEN | ( | node_id | ) | DT_STRING_TOKEN(node_id, zephyr_memory_region) |
Get the linker memory-region name in a token form.
This attempts to use the zephyr,memory-region property (with non-alphanumeric characters replaced with underscores) returning a token.
Example devicetree fragment:
Example usage:
node_id | node identifier |
#define LINKER_DT_REGIONS | ( | ) | DT_FOREACH_STATUS_OKAY(_DT_COMPATIBLE, _REGION_DECLARE) |
Generate linker memory regions from the device tree nodes with compatible 'zephyr,memory-region'.
Note: for now we do not deal with MEMORY attributes since those are optional, not actually used by Zephyr and they will likely conflict with the MPU configuration.
#define LINKER_DT_SECTIONS | ( | ) | DT_FOREACH_STATUS_OKAY(_DT_COMPATIBLE, _SECTION_DECLARE) |
Generate linker memory sections from the device tree nodes with compatible 'zephyr,memory-region'.