Searched refs:timeout_us (Results 1 – 7 of 7) sorted by relevance
403 esp_err_t spi_flash_chip_generic_wait_idle(esp_flash_t *chip, uint32_t timeout_us) in spi_flash_chip_generic_wait_idle() argument405 bool timeout_en = (timeout_us != ESP_FLASH_CHIP_GENERIC_NO_TIMEOUT); in spi_flash_chip_generic_wait_idle()406 if (timeout_us == ESP_FLASH_CHIP_GENERIC_NO_TIMEOUT) { in spi_flash_chip_generic_wait_idle()407 timeout_us = 0;// In order to go into while in spi_flash_chip_generic_wait_idle()409 timeout_us++; // allow at least one pass before timeout, last one has no sleep cycle in spi_flash_chip_generic_wait_idle()413 while (timeout_us > 0) { in spi_flash_chip_generic_wait_idle()414 while (!chip->host->driver->host_status(chip->host) && timeout_us > 0) { in spi_flash_chip_generic_wait_idle()417 if (timeout_us > 1) { in spi_flash_chip_generic_wait_idle()418 int delay = MIN(HOST_DELAY_INTERVAL_US, timeout_us); in spi_flash_chip_generic_wait_idle()420 timeout_us -= delay; in spi_flash_chip_generic_wait_idle()[all …]
91 int timeout_us = us_time_estimate; in rtc_clk_cal_internal() local93 timeout_us > 0) { in rtc_clk_cal_internal()94 timeout_us--; in rtc_clk_cal_internal()103 if (timeout_us == 0) { in rtc_clk_cal_internal()
249 int64_t timeout_us = 1000 * (int64_t)timeout; in alarm_set() local252 stat = esp_timer_start_periodic(alarm->alarm_hdl, (uint64_t)timeout_us); in alarm_set()254 stat = esp_timer_start_once(alarm->alarm_hdl, (uint64_t)timeout_us); in alarm_set()261 alarm->deadline_us = is_periodic ? 0 : (timeout_us + esp_timer_get_time()); in alarm_set()
151 esp_err_t esp_timer_start_once(esp_timer_handle_t timer, uint64_t timeout_us);
218 esp_err_t spi_flash_chip_generic_wait_idle(esp_flash_t *chip, uint32_t timeout_us);
167 esp_err_t (*wait_idle)(esp_flash_t *chip, uint32_t timeout_us);
157 esp_err_t IRAM_ATTR esp_timer_start_once(esp_timer_handle_t timer, uint64_t timeout_us) in esp_timer_start_once() argument165 int64_t alarm = esp_timer_get_time() + timeout_us; in esp_timer_start_once()