rusEFI
The most advanced open source ECU
|
Micron W25Q serial flash driver code.
Definition in file hal_flash_device.c.
Functions | |
static bool | w25q_find_id (const uint8_t *set, size_t size, uint8_t element) |
static flash_error_t | w25q_poll_status (SNORDriver *devp) |
static void | w25q_reset_memory (SNORDriver *devp) |
void | snor_device_init (SNORDriver *devp) |
flash_error_t | snor_device_read (SNORDriver *devp, flash_offset_t offset, size_t n, uint8_t *rp) |
flash_error_t | snor_device_program (SNORDriver *devp, flash_offset_t offset, size_t n, const uint8_t *pp) |
flash_error_t | snor_device_start_erase_all (SNORDriver *devp) |
flash_error_t | snor_device_start_erase_sector (SNORDriver *devp, flash_sector_t sector) |
flash_error_t | snor_device_verify_erase (SNORDriver *devp, flash_sector_t sector) |
flash_error_t | snor_device_query_erase (SNORDriver *devp, uint32_t *msec) |
flash_error_t | snor_device_read_sfdp (SNORDriver *devp, flash_offset_t offset, size_t n, uint8_t *rp) |
void | snor_activate_xip (SNORDriver *devp) |
void | snor_reset_xip (SNORDriver *devp) |
Variables | |
flash_descriptor_t | snor_descriptor |
W25Q128 descriptor. | |
const wspi_command_t | snor_memmap_read |
Fast read command for memory mapped mode. | |
static const wspi_command_t | w25q_cmd_read_id |
static const wspi_command_t | w25q_cmd_write_evconf |
static const wspi_command_t | w25q_cmd_write_enable |
static const uint8_t | w25q_manufacturer_ids [] = W25Q_SUPPORTED_MANUFACTURE_IDS |
static const uint8_t | w25q_memory_type_ids [] = W25Q_SUPPORTED_MEMORY_TYPE_IDS |