Home
last modified time | relevance | path

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

/hal_espressif-3.4.0/components/spi_flash/
Dspi_flash_chip_generic.c403 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
405 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 …]
/hal_espressif-3.4.0/components/esp_hw_support/port/esp32/
Drtc_time.c91 int timeout_us = us_time_estimate; in rtc_clk_cal_internal() local
93 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()
/hal_espressif-3.4.0/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-3.4.0/components/esp_timer/include/
Desp_timer.h151 esp_err_t esp_timer_start_once(esp_timer_handle_t timer, uint64_t timeout_us);
/hal_espressif-3.4.0/components/spi_flash/include/
Dspi_flash_chip_generic.h218 esp_err_t spi_flash_chip_generic_wait_idle(esp_flash_t *chip, uint32_t timeout_us);
Dspi_flash_chip_driver.h167 esp_err_t (*wait_idle)(esp_flash_t *chip, uint32_t timeout_us);
/hal_espressif-3.4.0/components/esp_timer/src/
Desp_timer.c157 esp_err_t IRAM_ATTR esp_timer_start_once(esp_timer_handle_t timer, uint64_t timeout_us) in esp_timer_start_once() argument
165 int64_t alarm = esp_timer_get_time() + timeout_us; in esp_timer_start_once()