esp_flash: change timeout threshold and can close timeout

This commit is contained in:
Cao Sen Miao
2020-08-24 16:57:21 +08:00
parent eb83878323
commit b9f6efd99a
3 changed files with 30 additions and 3 deletions
@@ -188,6 +188,7 @@ esp_err_t spi_flash_chip_generic_set_write_protect(esp_flash_t *chip, bool write
*/
esp_err_t spi_flash_chip_generic_get_write_protect(esp_flash_t *chip, bool *out_write_protect);
#define ESP_FLASH_CHIP_GENERIC_NO_TIMEOUT -1
/**
* @brief Read flash status via the RDSR command and wait for bit 0 (write in
* progress bit) to be cleared.