Skip to content

Commit

Permalink
pm: flash_map: Implement FLASH_AREA_LABEL_STR for partition manager
Browse files Browse the repository at this point in the history
Upstream PR zephyrproject-rtos/zephyr#33770 introduced a new
FLASH_AREA_LABEL_STR macro for the flash area reference. Implement this
for the partition manager variant of the flash_area header.

Signed-off-by: Trond Einar Snekvik <[email protected]>
  • Loading branch information
trond-snekvik authored and carlescufi committed Apr 30, 2021
1 parent c9044c2 commit 5af090a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/flash_map_pm.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
#define PM_ID(label) PM_##label##_ID
#define PM_IS_ENABLED(label) PM_##label##_IS_ENABLED

#define FLASH_AREA_LABEL_STR(label) #label

#define FLASH_AREA_ID(label) PM_ID(label)

#define FLASH_AREA_OFFSET(label) \
Expand Down

0 comments on commit 5af090a

Please sign in to comment.