Skip to content

Commit 4916f7f

Browse files
committed
mynewt: Add flash_sector_get_size
Getter for sector size stored in flash_sector object. Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
1 parent 60ff738 commit 4916f7f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

boot/mynewt/flash_map_backend/include/flash_map_backend/flash_map_backend.h

+5
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,9 @@ static inline uint32_t flash_sector_get_off(const struct flash_sector *fs)
8383
return fs->fs_off;
8484
}
8585

86+
static inline uint32_t flash_sector_get_size(const struct flash_sector *fs)
87+
{
88+
return fs->fs_size;
89+
}
90+
8691
#endif /* __FLASH_MAP_BACKEND_H__ */

0 commit comments

Comments
 (0)