= {
.fs_info = {0, 0},
.sector_size = ITS_SECTOR_SIZE,
.block_size = (ITS_SECTOR_SIZE * ITS_SECTORS_PER_BLOCK) ,
.num_blocks = 0,
.program_unit = ITS_FLASH_PROGRAM_UNIT ,
.max_file_size =
ITS_UTILS_ALIGN(ITS_MAX_ASSET_SIZE, ITS_FLASH_PROGRAM_UNIT ) ,
.max_num_files = (ITS_NUM_ASSETS + 1) ,
.erase_val = 0xFFU ,
}
ARM_DRIVER_FLASH ITS_FLASH_DEV_NAME
psa_status_t its_flash_nor_erase(const struct its_flash_info_t *info, uint32_t block_id)
Erases block ID data.
psa_status_t its_flash_nor_write(const struct its_flash_info_t *info, uint32_t block_id, const uint8_t *buff, size_t offset, size_t size)
Writes block data to the position specified by block ID and offset.
psa_status_t its_flash_nor_flush(const struct its_flash_info_t *info)
Flushes modifications to a block to flash.
psa_status_t its_flash_nor_read(const struct its_flash_info_t *info, uint32_t block_id, uint8_t *buff, size_t offset, size_t size)
Reads block data from the position specified by block ID and offset.
psa_status_t its_flash_nor_init(const struct its_flash_info_t *info)
Initialize the Flash Interface.
#define ITS_UTILS_ALIGN(x, a)
Aligns a value up to the provided alignment.