27#if (HAL_USE_EFL == TRUE) || defined(__DOXYGEN__)
40#if (PLATFORM_EFL_USE_EFL1 == TRUE) || defined(__DOXYGEN__)
57 .address = (uint8_t *)0,
80#if PLATFORM_EFL_USE_EFL1 == TRUE
97#if PLATFORM_EFL_USE_EFL1 == TRUE
120#if PLATFORM_EFL_USE_EFL1 == TRUE
121 if (&
EFLD1 == eflp) {
159 size_t n, uint8_t *rp) {
163 osalDbgCheck((instance != NULL) && (rp != NULL) && (n > 0U));
203 size_t n,
const uint8_t *pp) {
207 osalDbgCheck((instance != NULL) && (pp != NULL) && (n > 0U));
flash_error_t efl_lld_start_erase_sector(void *instance, flash_sector_t sector)
Starts an sector erase operation.
flash_error_t efl_lld_program(void *instance, flash_offset_t offset, size_t n, const uint8_t *pp)
Program operation.
void efl_lld_init(void)
Low level Embedded Flash driver initialization.
flash_error_t efl_lld_start_erase_all(void *instance)
Starts a whole-device erase operation.
void efl_lld_start(EFlashDriver *eflp)
Configures and activates the Embedded Flash peripheral.
struct hal_efl_driver EFlashDriver
Type of external flash driver class.
flash_error_t efl_lld_verify_erase(void *instance, flash_sector_t sector)
Returns the erase state of a sector.
const flash_descriptor_t * efl_lld_get_descriptor(void *instance)
Gets the flash descriptor structure.
static const flash_descriptor_t efl_lld_descriptor
void efl_lld_stop(EFlashDriver *eflp)
Deactivates the Embedded Flash peripheral.
void eflObjectInit(EFlashDriver *eflp)
Initializes a generic EFlashDriver object.
EFlashDriver EFLD1
EFL1 driver identifier.
flash_error_t efl_lld_query_erase(void *instance, uint32_t *msec)
Queries the driver for erase operation progress.
flash_error_t efl_lld_read(void *instance, flash_offset_t offset, size_t n, uint8_t *rp)
Read operation.
#define FLASH_ATTR_ECC_CAPABLE
The memory is protected by an ECC mechanism.
#define FLASH_ATTR_MEMORY_MAPPED
The memory is accessible in a memory mapped mode.
uint32_t flash_sector_t
Type of a flash sector number.
uint32_t flash_offset_t
Type of a flash offset.
flash_error_t
Type of a flash error code.
#define FLASH_ATTR_ERASED_IS_ONE
Defines one as the erased bit state.
#define FLASH_ATTR_ECC_ZERO_LINE_CAPABLE
The device is able to overwrite zero to a line.
#define osalDbgAssert(c, remark)
Condition assertion.
#define osalDbgCheck(c)
Function parameters check.
Type of a flash device descriptor.