Skip to content

Commit

Permalink
mynewt: Add flash_sector_get_size
Browse files Browse the repository at this point in the history
Getter for sector size stored in flash_sector object.

Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
  • Loading branch information
de-nordic committed Dec 19, 2024
1 parent a5d216b commit cec59f0
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,9 @@ static inline uint32_t flash_sector_get_off(const struct flash_sector *fs)
return fs->fs_off;
}

static inline uint32_t flash_sector_get_size(const struct flash_sector *fs)
{
return fs->fs_size;
}

#endif /* __FLASH_MAP_BACKEND_H__ */

0 comments on commit cec59f0

Please sign in to comment.