bool ext_flash_read(const spi_device_t *conf, uint32_t offset, uint32_t length, uint8_t *buf)
Read storage content.
bool ext_flash_open(const spi_device_t *conf)
Initialize storage driver.
bool ext_flash_erase(const spi_device_t *conf, uint32_t offset, uint32_t length)
Erase storage sectors corresponding to the range.
Header file for the SPI HAL.
bool ext_flash_close(const spi_device_t *conf)
Close the storage driver.
bool ext_flash_init(const spi_device_t *conf)
Initialise the external flash.
SPI Device Configuration.
bool ext_flash_write(const spi_device_t *conf, uint32_t offset, uint32_t length, const uint8_t *buf)
Write to storage sectors.