mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03: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
@@ -64,7 +64,7 @@ static IRAM_ATTR esp_err_t end(void *arg)
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
static IRAM_ATTR esp_err_t delay_us(void *arg, unsigned us)
|
||||
static IRAM_ATTR esp_err_t delay_us(void *arg, uint32_t us)
|
||||
{
|
||||
esp_rom_delay_us(us);
|
||||
return ESP_OK;
|
||||
|
||||
Reference in New Issue
Block a user