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 Jan 7, 2025
1 parent ab37ba0 commit c8bc87f
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 c8bc87f

Please sign in to comment.