/hal_espressif-2.7.6/components/bt/esp_ble_mesh/mesh_common/ |
D | mesh_timer.c | 66 osi_alarm_t *alarm = NULL; in k_delayed_work_init() local 77 alarm = osi_alarm_new("bt_mesh", (osi_alarm_callback_t)handler, (void *)&work->work, 0); in k_delayed_work_init() 78 if (alarm == NULL) { in k_delayed_work_init() 83 if (!hash_map_set(bm_alarm_hash_map, work, (void *)alarm)) { in k_delayed_work_init() 90 alarm = hash_map_get(bm_alarm_hash_map, work); in k_delayed_work_init() 91 if (alarm == NULL) { in k_delayed_work_init() 98 osi_alarm_cancel(alarm); in k_delayed_work_init() 111 osi_alarm_t *alarm = hash_map_get(bm_alarm_hash_map, (void *)work); in k_delayed_work_submit() local 112 if (alarm == NULL) { in k_delayed_work_submit() 119 osi_alarm_cancel(alarm); in k_delayed_work_submit() [all …]
|
/hal_espressif-2.7.6/components/bt/common/osi/ |
D | alarm.c | 52 static osi_alarm_err_t alarm_free(osi_alarm_t *alarm); 53 static osi_alarm_err_t alarm_set(osi_alarm_t *alarm, period_ms_t timeout, bool is_periodic); 139 static void alarm_cb_handler(struct alarm_t *alarm) in alarm_cb_handler() argument 141 OSI_TRACE_DEBUG("TimerID %p\n", alarm); in alarm_cb_handler() 150 arg.cb = alarm->cb; in alarm_cb_handler() 151 arg.cb_data = alarm->cb_data; in alarm_cb_handler() 198 static osi_alarm_err_t alarm_free(osi_alarm_t *alarm) in alarm_free() argument 200 if (!alarm || alarm->alarm_hdl == NULL) { in alarm_free() 204 esp_timer_stop(alarm->alarm_hdl); in alarm_free() 205 esp_err_t stat = esp_timer_delete(alarm->alarm_hdl); in alarm_free() [all …]
|
/hal_espressif-2.7.6/components/bt/host/bluedroid/stack/btu/ |
D | btu_task.c | 415 osi_alarm_t *alarm = NULL; in btu_start_timer() local 422 alarm = osi_alarm_new("btu_gen", btu_general_alarm_cb, (void *)p_tle, 0); in btu_start_timer() 423 hash_map_set(btu_general_alarm_hash_map, p_tle, alarm); in btu_start_timer() 427 alarm = hash_map_get(btu_general_alarm_hash_map, p_tle); in btu_start_timer() 428 if (alarm == NULL) { in btu_start_timer() 432 osi_alarm_cancel(alarm); in btu_start_timer() 438 osi_alarm_set(alarm, (period_ms_t)(timeout_sec * 1000)); in btu_start_timer() 461 osi_alarm_t *alarm = hash_map_get(btu_general_alarm_hash_map, p_tle); in btu_stop_timer() local 462 if (alarm == NULL) { in btu_stop_timer() 466 osi_alarm_cancel(alarm); in btu_stop_timer() [all …]
|
/hal_espressif-2.7.6/components/esp_timer/src/ |
D | esp_timer.c | 70 uint64_t alarm; member 159 timer->alarm = esp_timer_get_time() + timeout_us; in esp_timer_start_once() 179 timer->alarm = esp_timer_get_time() + period_us; in esp_timer_start_periodic() 211 timer->alarm = esp_timer_get_time(); in esp_timer_delete() 228 if (timer->alarm < it->alarm) { in timer_insert() 240 esp_timer_impl_set_alarm(timer->alarm); in timer_insert() 249 timer->alarm = 0; in timer_remove() 289 return timer->alarm > 0; in timer_armed() 312 if (it == NULL || it->alarm > now) { in timer_process_alarm() 321 int skipped = (now - it->alarm) / it->period; in timer_process_alarm() [all …]
|
D | esp_timer_impl_lac.c | 180 timer_64b_reg_t alarm = { .val = MAX(timestamp * TICKS_PER_US, now_time + offset) }; in esp_timer_impl_set_alarm() local 183 REG_WRITE(ALARM_LO_REG, alarm.lo); in esp_timer_impl_set_alarm() 184 REG_WRITE(ALARM_HI_REG, alarm.hi); in esp_timer_impl_set_alarm() 187 int64_t delta = (int64_t)alarm.val - (int64_t)now_time; in esp_timer_impl_set_alarm() 191 alarm.val = now_time + offset; in esp_timer_impl_set_alarm() 296 timer_64b_reg_t alarm = { in esp_timer_impl_get_alarm_reg() local 301 return alarm.val; in esp_timer_impl_get_alarm_reg()
|
D | esp_timer_impl_frc_legacy.c | 304 uint32_t alarm = REG_READ(FRC_TIMER_ALARM_REG(1)); in esp_timer_impl_update_apb_freq() local 306 uint64_t ticks_to_alarm = alarm - count; in esp_timer_impl_update_apb_freq() 309 if (alarm > count && new_ticks <= ALARM_OVERFLOW_VAL) { in esp_timer_impl_update_apb_freq() 313 if (alarm != ALARM_OVERFLOW_VAL) { in esp_timer_impl_update_apb_freq()
|
/hal_espressif-2.7.6/examples/peripherals/timer_group/ |
D | README.md | 6 This example uses the timer group driver to generate timer interrupts at two specified alarm interv… 11 * Each timer is set with some sample alarm interval 12 * On reaching the interval value each timer will generate an alarm 13 * One of the timers is configured to automatically reload it's counter value on the alarm 14 …r is configured to keep incrementing and is reloaded by the application each time the alarm happens 19 Group[0], timer[1] alarm event 28 Group[0], timer[0] alarm event
|
/hal_espressif-2.7.6/components/bt/common/osi/include/osi/ |
D | alarm.h | 51 void osi_alarm_free(osi_alarm_t *alarm); 58 osi_alarm_err_t osi_alarm_set(osi_alarm_t *alarm, period_ms_t timeout); 61 osi_alarm_err_t osi_alarm_set_periodic(osi_alarm_t *alarm, period_ms_t period); 67 osi_alarm_err_t osi_alarm_cancel(osi_alarm_t *alarm); 73 period_ms_t osi_alarm_get_remaining_ms(const osi_alarm_t *alarm);
|
/hal_espressif-2.7.6/components/bt/host/bluedroid/bta/sys/ |
D | bta_sys_main.c | 610 osi_alarm_t *alarm = hash_map_get(bta_alarm_hash_map, p_tle); in bta_sys_start_timer() local 611 if (alarm == NULL) { in bta_sys_start_timer() 619 osi_alarm_set(alarm, (period_ms_t)timeout_ms); in bta_sys_start_timer() 624 osi_alarm_t *alarm = (osi_alarm_t *)hash_map_entry->data; in hash_iter_ro_cb() local 626 *p_remaining_ms += osi_alarm_get_remaining_ms(alarm); in hash_iter_ro_cb() 654 osi_alarm_t *alarm = hash_map_get(bta_alarm_hash_map, p_tle); in bta_sys_stop_timer() local 655 if (alarm == NULL) { in bta_sys_stop_timer() 659 osi_alarm_cancel(alarm); in bta_sys_stop_timer() 675 osi_alarm_t *alarm = hash_map_get(bta_alarm_hash_map, p_tle); in bta_sys_free_timer() local 676 if (alarm == NULL) { in bta_sys_free_timer() [all …]
|
/hal_espressif-2.7.6/components/hal/esp32s2/ |
D | systimer_hal.c | 60 …systimer_counter_value_t alarm = { .val = MAX(timestamp * SYSTIMER_TICKS_PER_US, now_time + offset… in systimer_hal_set_alarm_target() local 63 systimer_ll_set_alarm_value(alarm_id, alarm.val); in systimer_hal_set_alarm_target() 66 int64_t delta = (int64_t)alarm.val - (int64_t)now_time; in systimer_hal_set_alarm_target() 70 alarm.val = now_time + offset; in systimer_hal_set_alarm_target()
|
/hal_espressif-2.7.6/docs/en/api-reference/peripherals/ |
D | timer.rst | 37 …should :cpp:member:`auto_reload` the initial counter value on the timer's alarm or continue increm… 38 …* **Interrupt Type**: Select which interrupt type should be triggered on the timer's alarm. Set th… 61 …`timer_set_auto_reload` Set if the initial counter value should be reloaded on the timer's alarm 69 To set an alarm, call the function :cpp:func:`timer_set_alarm_value` and then enable the alarm usin… 71 After the alarm is enabled, and the timer reaches the alarm value, the following two actions can oc… 78 …* If an alarm value is set and the timer has already reached this value, the alarm is triggered im… 79 … * Once triggered, the alarm is disabled automatically and needs to be re-enabled to trigger again. 81 To check the specified alarm value, call :cpp:func:`timer_get_alarm_value`.
|
/hal_espressif-2.7.6/components/hal/esp32s3/ |
D | systimer_hal.c | 57 systimer_counter_value_t alarm = { .val = target * SYSTIMER_TICKS_PER_US}; in systimer_hal_set_alarm_target() local 59 systimer_ll_set_alarm_target(alarm_id, alarm.val); in systimer_hal_set_alarm_target()
|
/hal_espressif-2.7.6/components/hal/esp32c3/ |
D | systimer_hal.c | 60 systimer_counter_value_t alarm = { .val = target * SYSTIMER_TICKS_PER_US}; in systimer_hal_set_alarm_target() local 62 systimer_ll_set_alarm_target(alarm_id, alarm.val); in systimer_hal_set_alarm_target()
|
/hal_espressif-2.7.6/examples/protocols/modbus/tcp/ |
D | README.md | 7 After several successful read attempts slave sets the alarm relay (end of test condition). 8 Once master reads the alarm it stops communication and destroy driver.
|
/hal_espressif-2.7.6/examples/protocols/modbus/serial/ |
D | README.md | 7 After several successful read attempts slave sets the alarm relay (end of test condition). 8 Once master reads the alarm it stops communication and destroy driver.
|
/hal_espressif-2.7.6/examples/protocols/modbus/serial/mb_master/ |
D | README.md | 9 …simple control algorithm and checks parameters from slave device and gets alarm (relay in the slav… 154 The example reads the characteristics from slave device(s), while alarm is not triggered in the sla…
|
/hal_espressif-2.7.6/examples/protocols/modbus/tcp/mb_tcp_master/ |
D | README.md | 6 …simple control algorithm and checks parameters from slave device and gets alarm (relay in the slav… 142 The example reads the characteristics from slave device(s), while alarm is not triggered in the sla…
|
/hal_espressif-2.7.6/docs/en/api-guides/esp-ble-mesh/ |
D | ble-mesh-faq.rst | 493 …formation between nodes is that spray nodes would be triggered once smoke alarm detected high smok… 495 …- Approach 1 is that spray node subscribes to a group address. When smoke alarm detects high smoke… 497 …he unicast address of spray node to the smoke alarm. When high smoke concentration is detected, sm…
|
/hal_espressif-2.7.6/components/bt/ |
D | CMakeLists.txt | 27 "common/osi/alarm.c"
|
/hal_espressif-2.7.6/examples/storage/spiffsgen/spiffs_image/sub/ |
D | alice.txt | 1152 changed into alarm in another moment, when she found that her shoulders 1458 that she looked down into its face in some alarm. This time there could
|
/hal_espressif-2.7.6/components/freertos/ |
D | History.txt | 730 ensure the alarm value (compare match value) cannot be set to zero when a
|