Home
last modified time | relevance | path

Searched full:esp_timer (Results 1 – 25 of 85) sorted by relevance

1234

/hal_espressif-latest/components/esp_timer/
DKconfig1 menu "High resolution timer (esp_timer)"
4 bool "Enable esp_timer profiling features"
27 to dispatch callbacks of timers created using ets_timer and esp_timer
41 It sets the interrupt level for esp_timer ISR in range 1..3.
42 A higher level (3) helps to decrease the ISR esp_timer latency.
45 bool "show esp_timer's experimental features"
47 This shows some hidden features of esp_timer.
57 prompt "esp_timer task core affinity"
63 - "CPU0": (default) esp_timer task is processed by CPU0.
64 - "CPU1": esp_timer task is processed by CPU1.
[all …]
D.build-test-rules.yml3 components/esp_timer/test_apps:
DCMakeLists.txt3 set(srcs "src/esp_timer.c"
/hal_espressif-latest/components/esp_timer/include/esp_private/
Desp_timer_private.h12 * @brief Interface between common and platform-specific parts of esp_timer.
15 * High level functions defined in esp_timer.c call the functions here to
29 * @brief Notify esp_timer implementation that APB frequency has changed
38 * @brief Set esp_timer time to a certain value
40 * Called from light sleep code to synchronize esp_timer time with RTC time.
42 * @param new_us the value to be set to esp_timer time, in microseconds
47 * @brief Adjust current esp_timer time by a certain value
49 * @param time_diff_us adjustment to apply to esp_timer time, in microseconds
54 * @brief obtain internal critical section used in the esp_timer implementation
55 * This can be used when a sequence of calls to esp_timer has to be made,
/hal_espressif-latest/components/esp_timer/src/
Dets_timer_legacy.c9 * used by the WiFi driver. This is done on top of the newer esp_timer APIs.
20 #include "esp_timer.h"
38 /* We abuse 'timer_arg' field of ETSTimer structure to hold a pointer to esp_timer */
39 #define ESP_TIMER(p_ets_timer) ((esp_timer_handle_t) (p_ets_timer)->timer_arg) macro
59 if (ESP_TIMER(ptimer) == NULL) { in ets_timer_setfn()
75 esp_timer_stop(ESP_TIMER(ptimer)); // no error check in ets_timer_arm_us()
77 ESP_ERROR_CHECK( esp_timer_start_once(ESP_TIMER(ptimer), time_us) ); in ets_timer_arm_us()
79 ESP_ERROR_CHECK( esp_timer_start_periodic(ESP_TIMER(ptimer), time_us) ); in ets_timer_arm_us()
87 esp_timer_stop(ESP_TIMER(ptimer)); // no error check in ets_timer_arm()
89 ESP_ERROR_CHECK( esp_timer_start_once(ESP_TIMER(ptimer), time_us) ); in ets_timer_arm()
[all …]
Desp_timer.c16 #include "esp_timer.h"
51 #define LOG_MODULE_NAME esp_timer
74 struct esp_timer { struct
90 LIST_ENTRY(esp_timer) list_entry; argument
106 __attribute__((unused)) static const char* TAG = "esp_timer";
109 static LIST_HEAD(esp_timer_list, esp_timer) s_timers[ESP_TIMER_MAX] = {
115 static LIST_HEAD(esp_inactive_timer_list, esp_timer) s_inactive_timers[ESP_TIMER_MAX] = {
165 * We have placed this function in IRAM to ensure consistency with the esp_timer API.
168 * in IRAM when PM_SLP_IRAM_OPT = y and ESP_TASK_WDT USE ESP_TIMER = y.
551 ESP_EARLY_LOGE(TAG, "Not enough memory to run esp_timer");
[all …]
Desp_timer_impl_systimer.c12 #include "esp_timer.h"
37 * @brief Implementation of esp_timer using systimer.
43 * @note systimer counter0 and alarm2 are adopted to implemented esp_timer
150 int isr_flags = 0 /* ZEP-795 (GH #74368): esp_timer ISR priority relaxed to avoid in esp_timer_impl_init()
/hal_espressif-latest/components/esp_timer/private_include/
Desp_timer_impl.h12 * @brief Interface between common and platform-specific parts of esp_timer.
15 * High level functions defined in esp_timer.c call the functions here to
33 * @brief Minimal initialization of platform specific layer of esp_timer
37 * rest of esp_timer implementation.
43 * @brief Initialize platform specific layer of esp_timer
51 * @brief Deinitialize platform specific layer of esp_timer
82 * @brief Notify esp_timer implementation that APB frequency has changed
91 * @brief Adjust current esp_timer time by a certain value
93 * Called from light sleep code to synchronize esp_timer time with RTC time.
95 * @param time_us adjustment to apply to esp_timer time, in microseconds
[all …]
/hal_espressif-latest/components/esp_timer/include/
Desp_timer.h10 * @file esp_timer.h
13 * esp_timer APIs allow components to receive callbacks when a hardware timer
45 * @brief Opaque type representing a single esp_timer
47 typedef struct esp_timer* esp_timer_handle_t;
80 * @brief Minimal initialization of esp_timer
83 * to call this function before using other esp_timer APIs.
94 * @brief Initialize esp_timer library
97 * to call this function before using other esp_timer APIs.
115 * @brief De-initialize esp_timer library
126 * @brief Create an esp_timer instance
[all …]
/hal_espressif-latest/components/esp_system/
Dsystem_init_fn.txt16 # esp_timer has to be initialized early, since it is used by several other components
17 100: esp_timer_startup_init in components/esp_timer/src/esp_timer.c on CONFIG_ESP_TIMER_ISR_AFFINITY
32 # usb_console needs to create an esp_timer at startup.
33 # This can be done only after esp_timer initialization, which is now in init_components0.
DREADME.md10 but it does provide a default implementation using RTC timer. Currently, `esp_timer`
15 2. `esp_timer` time (`esp_timer_get_time`)
/hal_espressif-latest/components/spi_flash/sim/stubs/
DMakefile.files7 esp_timer/src/esp_timer.c \
18 esp_timer/include \
35 esp_timer/include \
/hal_espressif-latest/components/esp_system/task_wdt/
Dtask_wdt_impl_esp_timer.c17 #include "esp_timer.h"
50 …/* Software Task timer. As we don't have a spare hardware watchdog timer, we will use esp_timer to… in esp_task_wdt_impl_timer_allocate()
77 * underlying esp_timer instance. */ in esp_task_wdt_impl_timer_reconfigure()
/hal_espressif-latest/components/spi_flash/sim/
DMakefile.files22 esp_timer/include \
41 esp_timer/include \
/hal_espressif-latest/components/esp_wifi/
Dlinker.lf171 esp_timer:timer_task (noflash)
172 esp_timer:timer_process_alarm (noflash)
/hal_espressif-latest/zephyr/esp32c6/
DCMakeLists.txt64 ../../components/esp_timer/include
65 ../../components/esp_timer/private_include
257 ../../components/esp_timer/src/ets_timer_legacy.c
258 ../../components/esp_timer/src/esp_timer.c
259 ../../components/esp_timer/src/esp_timer_etm.c
260 ../../components/esp_timer/src/esp_timer_impl_common.c
261 ../../components/esp_timer/src/esp_timer_impl_systimer.c
262 ../../components/esp_timer/src/system_time.c
/hal_espressif-latest/zephyr/esp32/
DCMakeLists.txt64 ../../components/esp_timer/include
65 ../../components/esp_timer/private_include
328 ../../components/esp_timer/src/ets_timer_legacy.c
329 ../../components/esp_timer/src/esp_timer_impl_common.c
330 ../../components/esp_timer/src/esp_timer_impl_lac.c
331 ../../components/esp_timer/src/esp_timer.c
/hal_espressif-latest/zephyr/esp32c2/
DCMakeLists.txt63 ../../components/esp_timer/include
64 ../../components/esp_timer/private_include
246 ../../components/esp_timer/src/ets_timer_legacy.c
247 ../../components/esp_timer/src/esp_timer.c
248 ../../components/esp_timer/src/esp_timer_impl_common.c
249 ../../components/esp_timer/src/esp_timer_impl_systimer.c
/hal_espressif-latest/components/esp_system/port/
Dusb_console.c17 #include "esp_timer.h"
178 * Instead, start an esp_timer and call esp_restart from the callback. in esp_usb_console_interrupt()
200 /* Called as esp_timer callback when the restart timeout expires.
310 * too early, before esp_timer is fully initialized.
/hal_espressif-latest/components/esp_pm/
DCMakeLists.txt3 PRIV_REQUIRES esp_system driver esp_timer
/hal_espressif-latest/zephyr/esp32c3/
DCMakeLists.txt65 ../../components/esp_timer/include
66 ../../components/esp_timer/private_include
321 ../../components/esp_timer/src/ets_timer_legacy.c
322 ../../components/esp_timer/src/esp_timer.c
323 ../../components/esp_timer/src/esp_timer_impl_common.c
324 ../../components/esp_timer/src/esp_timer_impl_systimer.c
/hal_espressif-latest/zephyr/esp32s2/
DCMakeLists.txt60 ../../components/esp_timer/include
61 ../../components/esp_timer/private_include
337 ../../components/esp_timer/src/ets_timer_legacy.c
338 ../../components/esp_timer/src/esp_timer.c
339 ../../components/esp_timer/src/esp_timer_impl_common.c
340 ../../components/esp_timer/src/esp_timer_impl_lac.c
/hal_espressif-latest/zephyr/esp32s3/
DCMakeLists.txt61 ../../components/esp_timer/include
62 ../../components/esp_timer/private_include
356 ../../components/esp_timer/src/ets_timer_legacy.c
357 ../../components/esp_timer/src/esp_timer.c
358 ../../components/esp_timer/src/esp_timer_impl_common.c
359 ../../components/esp_timer/src/esp_timer_impl_systimer.c
/hal_espressif-latest/components/spi_flash/sim/stubs/esp_timer/src/
Desp_timer.c9 #include "esp_timer.h"
/hal_espressif-latest/components/esp_event/
DCMakeLists.txt12 list(APPEND priv_requires esp_timer)

1234