drivers/mtd/mtd_config.c: enlarge the limits of blocksize in struct mtdconfig_struct_s

This commit is contained in:
zouboan 2022-02-08 21:41:28 +08:00 committed by Xiang Xiao
parent 63aa11ca11
commit 6166dd5833

View File

@ -77,8 +77,8 @@ struct mtdconfig_struct_s
{
FAR struct mtd_dev_s *mtd; /* Contained MTD interface */
sem_t exclsem; /* Supports mutual exclusion */
uint32_t blocksize :14; /* Size of blocks in contained MTD */
uint32_t erasesize :18; /* Size of erase block in contained MTD */
uint32_t blocksize; /* Size of blocks in contained MTD */
uint32_t erasesize; /* Size of erase block in contained MTD */
size_t nblocks; /* Number of blocks available */
size_t neraseblocks; /* Number of erase blocks available */
off_t readoff; /* Read offset (for hexdump) */