Home
last modified time | relevance | path

Searched refs:timeout_us (Results 1 – 7 of 7) sorted by relevance

/hal_espressif-latest/components/esp_hw_support/port/esp32/
Drtc_time.c87 int timeout_us = us_time_estimate; in rtc_clk_cal_internal() local
89 timeout_us > 0) { in rtc_clk_cal_internal()
90 timeout_us--; in rtc_clk_cal_internal()
103 if (timeout_us == 0) { in rtc_clk_cal_internal()
/hal_espressif-latest/components/spi_flash/
Dspi_flash_chip_generic.c369 esp_err_t spi_flash_chip_generic_wait_idle(esp_flash_t *chip, uint32_t timeout_us) in spi_flash_chip_generic_wait_idle() argument
371 bool timeout_en = (timeout_us != ESP_FLASH_CHIP_GENERIC_NO_TIMEOUT); in spi_flash_chip_generic_wait_idle()
372 if (timeout_us == ESP_FLASH_CHIP_GENERIC_NO_TIMEOUT) { in spi_flash_chip_generic_wait_idle()
373 timeout_us = 0;// In order to go into while in spi_flash_chip_generic_wait_idle()
375 timeout_us++; // allow at least one pass before timeout, last one has no sleep cycle in spi_flash_chip_generic_wait_idle()
379 while (timeout_us > 0) { in spi_flash_chip_generic_wait_idle()
380 while (!chip->host->driver->host_status(chip->host) && timeout_us > 0) { in spi_flash_chip_generic_wait_idle()
383 if (timeout_us > 1) { in spi_flash_chip_generic_wait_idle()
384 int delay = MIN(HOST_DELAY_INTERVAL_US, timeout_us); in spi_flash_chip_generic_wait_idle()
386 timeout_us -= delay; in spi_flash_chip_generic_wait_idle()
[all …]
/hal_espressif-latest/components/esp_timer/include/
Desp_timer.h156 esp_err_t esp_timer_start_once(esp_timer_handle_t timer, uint64_t timeout_us);
187 esp_err_t esp_timer_restart(esp_timer_handle_t timer, uint64_t timeout_us);
/hal_espressif-latest/components/bt/common/osi/
Dalarm.c249 int64_t timeout_us = 1000 * (int64_t)timeout; in alarm_set() local
252 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()
/hal_espressif-latest/components/esp_timer/src/
Desp_timer.c170 esp_err_t IRAM_ATTR esp_timer_restart(esp_timer_handle_t timer, uint64_t timeout_us) in esp_timer_restart() argument
204 const uint64_t new_period = MAX(timeout_us, esp_timer_impl_get_min_period_us()); in esp_timer_restart()
209 timer->alarm = now + timeout_us; in esp_timer_restart()
220 esp_err_t IRAM_ATTR esp_timer_start_once(esp_timer_handle_t timer, uint64_t timeout_us) in esp_timer_start_once() argument
228 int64_t alarm = esp_timer_get_time() + timeout_us; in esp_timer_start_once()
/hal_espressif-latest/components/spi_flash/include/
Dspi_flash_chip_driver.h167 esp_err_t (*wait_idle)(esp_flash_t *chip, uint32_t timeout_us);
Dspi_flash_chip_generic.h218 esp_err_t spi_flash_chip_generic_wait_idle(esp_flash_t *chip, uint32_t timeout_us);