|
| void | flash_start_xip (void) |
| | Initialise QSPI interface and external QSPI devices for execute-in-place.
|
| void | flash_range_erase (uint32_t flash_offs, size_t count) |
| | Erase areas of flash.
|
| void | flash_range_program (uint32_t flash_offs, const uint8_t *data, size_t count) |
| | Program flash.
|
| void | flash_get_unique_id (uint8_t *id_out) |
| | Get flash unique 64 bit identifier.
|
| void | flash_do_cmd_cs (const uint8_t *txbuf, uint8_t *rxbuf, size_t count, uint cs) |
| | Execute bidirectional QSPI command.
|
| static void | flash_do_cmd (const uint8_t *txbuf, uint8_t *rxbuf, size_t count) |
| | Execute bidirectional flash command on chip select 0.
|
|
void | flash_flush_cache (void) |
| bool | flash_set_qmi_cs1_setup_function (qmi_setup_function_t function) |
| | Set the function to be called to setup the QMI CS1 configuration.
|
|
static uint32_t | flash_devinfo_size_to_bytes (flash_devinfo_size_t size) |
| | Convert a flash/PSRAM size enum to an integer size in bytes.
|
|
static flash_devinfo_size_t | flash_devinfo_bytes_to_size (uint32_t bytes) |
| | Convert an integer flash/PSRAM size in bytes to a size enum, as stored in OTP and used by the ROM.
|
| flash_devinfo_size_t | flash_devinfo_get_cs_size (uint cs) |
| | Get the size of the QSPI device attached to chip select cs, according to FLASH_DEVINFO.
|
| void | flash_devinfo_set_cs_size (uint cs, flash_devinfo_size_t size) |
| | Update the size of the QSPI device attached to chip select cs in the runtime copy of FLASH_DEVINFO.
|
| bool | flash_devinfo_get_d8h_erase_supported (void) |
| | Check whether all attached devices support D8h block erase with 64k size, according to FLASH_DEVINFO.
|
| void | flash_devinfo_set_d8h_erase_supported (bool supported) |
| | Specify whether all attached devices support D8h block erase with 64k size, in the runtime copy of FLASH_DEVINFO.
|
| uint | flash_devinfo_get_cs_gpio (uint cs) |
| | Check the GPIO allocated for each chip select, according to FLASH_DEVINFO.
|
| void | flash_devinfo_set_cs_gpio (uint cs, uint gpio) |
| | Update the GPIO allocated for each chip select in the runtime copy of FLASH_DEVINFO.
|