67 if (err != FLASH_BUSY_ERASING) {
89 osalDbgAssert(sector < descriptor->sectors_count,
"invalid sector");
91 if (descriptor->
sectors != NULL) {
114 osalDbgAssert(sector < descriptor->sectors_count,
"invalid sector");
116 if (descriptor->
sectors != NULL) {
uint32_t flash_sector_t
Type of a flash sector number.
uint32_t size
Sector size.
flash_offset_t offset
Sector offset.
uint32_t sectors_size
Size of sectors for devices with uniform sector size.
#define osalThreadSleepMilliseconds(msecs)
Delays the invoking thread for the specified number of milliseconds.
Type of a flash device descriptor.
uint32_t flashGetSectorSize(BaseFlash *devp, flash_sector_t sector)
Returns the size of a sector.
flash_error_t
Type of a flash error code.
#define flashGetDescriptor(ip)
Gets the flash descriptor structure.
flash_error_t flashWaitErase(BaseFlash *devp)
Waits until the current erase operation is finished.
uint32_t flash_offset_t
Type of a flash offset.
Generic flash driver class header.
#define flashQueryErase(ip, msec)
Queries the driver for erase operation progress.
#define osalDbgAssert(c, remark)
Condition assertion.
flash_offset_t flashGetSectorOffset(BaseFlash *devp, flash_sector_t sector)
Returns the offset of a sector.
const flash_sector_descriptor_t * sectors
List of sectors for devices with non-uniform sector sizes.