25 #define SPI_FLASH_PAGE_SIZE (256) 26 #define SPI_FLASH_SECTOR_SIZE (4096) 27 #define SPI_FLASH_BASE_ADDR (0x300000) 28 #define SPI_FLASH_SIZE (0x80000) 32 FLASH_ERR_VERIFY_FAIL,
33 FLASH_ERR_INVALID_PARAM,
34 FLASH_ERR_BLE_CONFLICT,
113 #if CFG_BRAM_RAM_APP_EN 122 void hal_spi_flash_suspend(
void);
int hal_spi_flash_sector_erase(uint32_t addr, uint32_t sector_nb)
Erase SPI Flash sector.
int hal_spi_flash_read(uint32_t addr, uint8_t *data, uint32_t size)
Flash read function.
int hal_spi_flash_prog_page(uint32_t addr, uint8_t *data, uint32_t data_len)
Programme SPI Flash page.
int hal_spi_flash_read_page(uint32_t addr, uint8_t *data, uint32_t size)
Flash read function.
int hal_spi_flash_verify(uint32_t addr, uint8_t *data, uint32_t size)
Verify SPI Flash data.