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:
Michael (XIAO Xufeng)
2020-08-31 18:10:32 +00:00
committed by bot
parent 5a9a42b079
commit 2d440e408a
4 changed files with 4 additions and 4 deletions
@@ -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;