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