Go to the documentation of this file.
27 #if (HAL_USE_EFL == TRUE) || defined(__DOXYGEN__)
82 eflp->state = FLASH_STOP;
101 osalDbgAssert((eflp->state == FLASH_STOP) || (eflp->state == FLASH_READY),
103 eflp->config = config;
105 eflp->state = FLASH_READY;
123 osalDbgAssert((eflp->state == FLASH_STOP) || (eflp->state == FLASH_READY),
127 eflp->state = FLASH_STOP;
Type of a structure representing a flash driver configuration.
flash_error_t efl_lld_query_erase(void *instance, uint32_t *msec)
Queries the driver for erase operation progress.
void eflInit(void)
Embedded Flash Driver initialization.
static void osalSysUnlock(void)
Leaves a critical zone from thread context.
flash_error_t efl_lld_verify_erase(void *instance, flash_sector_t sector)
Returns the erase state of a sector.
Structure representing an embedded flash driver.
void efl_lld_init(void)
Low level Embedded Flash driver initialization.
flash_error_t efl_lld_start_erase_sector(void *instance, flash_sector_t sector)
Starts an sector erase operation.
const struct EFlashDriverVMT * vmt
SNORDriver Virtual Methods Table.
void efl_lld_stop(EFlashDriver *eflp)
Deactivates the Embedded Flash peripheral.
flash_error_t efl_lld_program(void *instance, flash_offset_t offset, size_t n, const uint8_t *pp)
Program operation.
flash_error_t efl_lld_read(void *instance, flash_offset_t offset, size_t n, uint8_t *rp)
Read operation.
#define osalDbgCheck(c)
Function parameters check.
void efl_lld_start(EFlashDriver *eflp)
Configures and activates the Embedded Flash peripheral.
EFlash virtual methods table.
static void osalSysLock(void)
Enters a critical zone from thread context.
void eflStop(EFlashDriver *eflp)
Stops the driver.
#define osalDbgAssert(c, remark)
Condition assertion.
const flash_descriptor_t * efl_lld_get_descriptor(void *instance)
Gets the flash descriptor structure.
void eflStart(EFlashDriver *eflp, const EFlashConfig *config)
Configures and starts the driver.
void eflObjectInit(EFlashDriver *eflp)
Initializes a generic EFlashDriver object.
flash_error_t efl_lld_start_erase_all(void *instance)
Starts a whole-device erase operation.