Zephyr API Documentation 4.4.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
mapped-partition.h File Reference

Flash Devicetree macro public API header file, for memory-mapped partitions. More...

Go to the source code of this file.

Macros

#define DT_NODE_BY_MAPPED_PARTITION_LABEL(label)    DT_CAT(DT_COMPAT_zephyr_mapped_partition_LABEL_, label)
 Get a node identifier for a mapped partition with a given label property.
 
#define DT_HAS_MAPPED_PARTITION_LABEL(label)    IS_ENABLED(DT_CAT3(DT_COMPAT_zephyr_mapped_partition_LABEL_, label, _EXISTS))
 Test if a mapped partition with a given label property exists.
 
#define DT_MAPPED_PARTITION_EXISTS(node_id)   DT_NODE_HAS_COMPAT(node_id, zephyr_mapped_partition)
 Test if zephyr,mapped-partition compatible node exists.
 
#define DT_MAPPED_PARTITION_ID(node_id)   DT_CAT(node_id, _PARTITION_ID)
 Get a numeric identifier for a mapped partition.
 
#define DT_MEM_FROM_MAPPED_PARTITION(node_id)
 Get the node identifier of the NVM memory for a partition.
 
#define DT_MTD_FROM_MAPPED_PARTITION(node_id)   DT_PARENT(DT_MEM_FROM_MAPPED_PARTITION(node_id))
 Get the node identifier of the NVM controller for a partition.
 
#define DT_MAPPED_PARTITION_ADDR(node_id)   DT_REG_ADDR(node_id)
 Get the absolute address of a mapped partition.
 
#define DT_MAPPED_PARTITION_OFFSET(node_id)    (DT_REG_ADDR(node_id) - DT_REG_ADDR(DT_MEM_FROM_MAPPED_PARTITION(node_id)))
 Get the offset address of a mapped partition from the NVM node.
 

Detailed Description

Flash Devicetree macro public API header file, for memory-mapped partitions.