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 <[email protected]>
  • Loading branch information
de-nordic committed Dec 18, 2024
1 parent 90c0a23 commit 75494c5
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 75494c5

Please sign in to comment.