mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-09 20:41:14 +00:00
esp_flash: fix the data type of delay_us
unsigned can be 16-bit on some architecture, which doesn't meet the requirements of delaying for several hundreds of us.
This commit is contained in:

committed by
bot

parent
5a9a42b079
commit
2d440e408a
@@ -152,7 +152,7 @@ struct spi_flash_chip_t {
|
||||
timeout_ms should be a timeout (in milliseconds) before the function returns ESP_ERR_TIMEOUT. This is useful to avoid hanging
|
||||
if the chip is otherwise unresponsive (ie returns all 0xFF or similar.)
|
||||
*/
|
||||
esp_err_t (*wait_idle)(esp_flash_t *chip, unsigned timeout_ms);
|
||||
esp_err_t (*wait_idle)(esp_flash_t *chip, uint32_t timeout_us);
|
||||
|
||||
/* Configure both the SPI host and the chip for the read mode specified in chip->read_mode.
|
||||
*
|
||||
|
Reference in New Issue
Block a user