Zephyr API Documentation  3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
fixed-partitions.h File Reference

Flash Devicetree macro public API header file. More...

Go to the source code of this file.

Macros

#define DT_NODE_BY_FIXED_PARTITION_LABEL(label)    DT_CAT(DT_COMPAT_fixed_partitions_LABEL_, label)
 Get a node identifier for a fixed partition with a given label property.
 
#define DT_HAS_FIXED_PARTITION_LABEL(label)    IS_ENABLED(DT_CAT3(DT_COMPAT_fixed_partitions_LABEL_, label, _EXISTS))
 Test if a fixed partition with a given label property exists.
 
#define DT_FIXED_PARTITION_EXISTS(node_id)    DT_NODE_HAS_COMPAT(DT_PARENT(node_id), fixed_partitions)
 Test if fixed-partition compatible node exists.
 
#define DT_FIXED_PARTITION_ID(node_id)   DT_CAT(node_id, _PARTITION_ID)
 Get a numeric identifier for a fixed partition.
 
#define DT_MEM_FROM_FIXED_PARTITION(node_id)
 Get the node identifier of the flash memory for a partition.
 
#define DT_MTD_FROM_FIXED_PARTITION(node_id)
 Get the node identifier of the flash controller for a partition.
 
#define DT_FIXED_PARTITION_ADDR(node_id)    (DT_REG_ADDR(DT_MEM_FROM_FIXED_PARTITION(node_id)) + DT_REG_ADDR(node_id))
 Get the absolute address of a fixed partition.
 

Detailed Description

Flash Devicetree macro public API header file.