Skip to content

Commit

Permalink
storage/flash_map: Fix hiding of internal definitions
Browse files Browse the repository at this point in the history
Move /** @cond INTERNAL_HIDDEN */ up to cover additional definitions.

Signed-off-by: Dominik Ermel <[email protected]>
  • Loading branch information
de-nordic authored and jhedberg committed Dec 20, 2024
1 parent 2c72def commit dd86a4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/zephyr/storage/flash_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -429,11 +429,11 @@ uint8_t flash_area_erased_val(const struct flash_area *fa);
*/
#define FIXED_PARTITION_BY_NODE(node) FIXED_PARTITION_1(node)

/** @cond INTERNAL_HIDDEN */
#define FIXED_PARTITION_1(node) FIXED_PARTITION_0(DT_DEP_ORD(node))
#define FIXED_PARTITION_0(ord) \
((const struct flash_area *)&DT_CAT(global_fixed_partition_ORD_, ord))

/** @cond INTERNAL_HIDDEN */
#define DECLARE_PARTITION(node) DECLARE_PARTITION_0(DT_DEP_ORD(node))
#define DECLARE_PARTITION_0(ord) \
extern const struct flash_area DT_CAT(global_fixed_partition_ORD_, ord);
Expand Down

0 comments on commit dd86a4d

Please sign in to comment.