Home
last modified time | relevance | path

Searched refs:alarm_callback (Results 1 – 18 of 18) sorted by relevance

/Zephyr-Core-3.7.0/drivers/counter/
Dcounter_mcux_ctimer.c25 counter_alarm_callback_t alarm_callback; member
107 if (data->channels[chan_id].alarm_callback != NULL) { in mcux_lpc_ctimer_set_alarm()
119 data->channels[chan_id].alarm_callback = alarm_cfg->callback; in mcux_lpc_ctimer_set_alarm()
141 data->channels[chan_id].alarm_callback = NULL; in mcux_lpc_ctimer_cancel_alarm()
233 (data->channels[chan].alarm_callback != NULL)) { in mcux_lpc_ctimer_isr()
234 counter_alarm_callback_t alarm_callback = in mcux_lpc_ctimer_isr() local
235 data->channels[chan].alarm_callback; in mcux_lpc_ctimer_isr()
238 data->channels[chan].alarm_callback = NULL; in mcux_lpc_ctimer_isr()
240 alarm_callback(dev, chan, ticks, alarm_user_data); in mcux_lpc_ctimer_isr()
263 data->channels[chan].alarm_callback = NULL; in mcux_lpc_ctimer_init()
Dcounter_xlnx_axi_timer.c54 counter_alarm_callback_t alarm_callback; member
82 if (data->alarm_callback) { in xlnx_axi_timer_start()
133 if (data->alarm_callback != NULL) { in xlnx_axi_timer_set_alarm()
158 data->alarm_callback = cfg->callback; in xlnx_axi_timer_set_alarm()
181 data->alarm_callback = NULL; in xlnx_axi_timer_cancel_alarm()
199 if (data->alarm_callback) { in xlnx_axi_timer_set_top_value()
273 if (data->alarm_callback) { in xlnx_axi_timer_isr()
275 alarm_cb = data->alarm_callback; in xlnx_axi_timer_isr()
276 data->alarm_callback = NULL; in xlnx_axi_timer_isr()
Dcounter_mcux_gpt.c35 counter_alarm_callback_t alarm_callback; member
90 if (data->alarm_callback) { in mcux_gpt_set_alarm()
94 data->alarm_callback = alarm_cfg->callback; in mcux_gpt_set_alarm()
115 data->alarm_callback = NULL; in mcux_gpt_cancel_alarm()
132 if ((status & kGPT_OutputCompare1Flag) && data->alarm_callback) { in mcux_gpt_isr()
135 counter_alarm_callback_t alarm_cb = data->alarm_callback; in mcux_gpt_isr()
136 data->alarm_callback = NULL; in mcux_gpt_isr()
Dcounter_mcux_tpm.c35 counter_alarm_callback_t alarm_callback; member
99 if (data->alarm_callback) in mcux_tpm_set_alarm()
102 data->alarm_callback = alarm_cfg->callback; in mcux_tpm_set_alarm()
122 data->alarm_callback = NULL; in mcux_tpm_cancel_alarm()
138 if ((status & kTPM_Chnl0Flag) && data->alarm_callback) { in mcux_tpm_isr()
141 counter_alarm_callback_t alarm_cb = data->alarm_callback; in mcux_tpm_isr()
143 data->alarm_callback = NULL; in mcux_tpm_isr()
166 if (data->alarm_callback)
Dcounter_mcux_rtc.c20 counter_alarm_callback_t alarm_callback; member
111 if (data->alarm_callback != NULL) { in mcux_rtc_set_alarm()
124 data->alarm_callback = alarm_cfg->callback; in mcux_rtc_set_alarm()
142 data->alarm_callback = NULL; in mcux_rtc_cancel_alarm()
201 (data->alarm_callback)) { in mcux_rtc_isr()
202 cb = data->alarm_callback; in mcux_rtc_isr()
203 data->alarm_callback = NULL; in mcux_rtc_isr()
Dcounter_mcux_qtmr.c38 counter_alarm_callback_t alarm_callback; member
63 if ((status & kQTMR_Compare1Flag) && data->alarm_callback) { in mcux_qtmr_timer_handler()
67 counter_alarm_callback_t alarm_cb = data->alarm_callback; in mcux_qtmr_timer_handler()
69 data->alarm_callback = NULL; in mcux_qtmr_timer_handler()
163 if (data->alarm_callback) { in mcux_qtmr_set_alarm()
167 data->alarm_callback = alarm_cfg->callback; in mcux_qtmr_set_alarm()
198 data->alarm_callback = NULL; in mcux_qtmr_cancel_alarm()
Dcounter_mcux_lpc_rtc.c16 counter_alarm_callback_t alarm_callback; member
48 (data->alarm_callback)) { in mcux_lpc_rtc_isr()
49 cb = data->alarm_callback; in mcux_lpc_rtc_isr()
50 data->alarm_callback = NULL; in mcux_lpc_rtc_isr()
143 if (data->alarm_callback != NULL) { in mcux_lpc_rtc_set_alarm()
156 data->alarm_callback = alarm_cfg->callback; in mcux_lpc_rtc_set_alarm()
174 data->alarm_callback = NULL; in mcux_lpc_rtc_cancel_alarm()
Dcounter_andes_atcpit100.c60 counter_alarm_callback_t alarm_callback; member
119 cb = data->ch_data[i].alarm_callback; in atcpit100_irq_handler()
120 data->ch_data[i].alarm_callback = NULL; in atcpit100_irq_handler()
235 if (data->ch_data[chan_id].alarm_callback) { in atcpit100_set_alarm()
252 data->ch_data[chan_id].alarm_callback = alarm_cfg->callback; in atcpit100_set_alarm()
275 data->ch_data[chan_id].alarm_callback = NULL; in atcpit100_set_alarm()
337 data->ch_data[chan_id].alarm_callback = NULL; in atcpit100_cancel_alarm()
355 if (data->ch_data[i].alarm_callback) { in atcpit100_set_top_value()
Dcounter_gecko_rtcc.c325 counter_alarm_callback_t alarm_callback; in ISR_DIRECT_DECLARE() local
341 alarm_callback = dev_data->alarm[i].callback; in ISR_DIRECT_DECLARE()
343 alarm_callback(dev, i, count, in ISR_DIRECT_DECLARE()
Dcounter_smartbond_timer.c472 counter_alarm_callback_t alarm_callback = data->callback; in counter_smartbond_irq_handler() local
482 if (alarm_callback != NULL) { in counter_smartbond_irq_handler()
484 alarm_callback(dev, 0, timer->TIMER2_TIMER_VAL_REG, in counter_smartbond_irq_handler()
Dcounter_gecko_stimer.c72 static void alarm_callback(sl_sleeptimer_timer_handle_t *handle, void *data) in alarm_callback() function
220 alarm_callback, (void *)&dev_data->alarm[chan_id], 0, 0); in counter_gecko_set_alarm()
Dcounter_ll_stm32_rtc.c510 counter_alarm_callback_t alarm_callback = data->callback; in rtc_stm32_isr() local
529 if (alarm_callback != NULL) { in rtc_stm32_isr()
531 alarm_callback(dev, 0, now, data->user_data); in rtc_stm32_isr()
/Zephyr-Core-3.7.0/drivers/rtc/
Drtc_rpi_pico.c39 rtc_alarm_callback alarm_callback; member
60 callback = data->alarm_callback; in rtc_rpi_isr()
88 data->alarm_callback = NULL; in rtc_rpi_pico_init()
298 data->alarm_callback = callback; in rtc_rpi_pico_alarm_set_callback()
Drtc_pcf8523.c140 rtc_alarm_callback alarm_callback; member
264 rtc_alarm_callback alarm_callback = NULL; in pcf8523_int1_thread() local
281 if ((control_2 & PCF8523_CONTROL_2_AF) != 0 && data->alarm_callback != NULL) { in pcf8523_int1_thread()
283 alarm_callback = data->alarm_callback; in pcf8523_int1_thread()
309 if (((control_2 & PCF8523_CONTROL_2_AF) != 0U && alarm_callback != NULL) || in pcf8523_int1_thread()
321 if (alarm_callback != NULL) { in pcf8523_int1_thread()
322 alarm_callback(dev, 0U, alarm_user_data); in pcf8523_int1_thread()
323 alarm_callback = NULL; in pcf8523_int1_thread()
611 data->alarm_callback = callback; in pcf8523_alarm_set_callback()
Drtc_rv3028.c162 rtc_alarm_callback alarm_callback; member
418 rtc_alarm_callback alarm_callback = NULL; in rv3028_work_cb() local
433 if ((status & RV3028_STATUS_AF) && data->alarm_callback != NULL) { in rv3028_work_cb()
435 alarm_callback = data->alarm_callback; in rv3028_work_cb()
459 if (((status & RV3028_STATUS_AF) && alarm_callback != NULL) || in rv3028_work_cb()
468 if (alarm_callback != NULL) { in rv3028_work_cb()
469 alarm_callback(dev, 0U, alarm_user_data); in rv3028_work_cb()
470 alarm_callback = NULL; in rv3028_work_cb()
742 data->alarm_callback = callback; in rv3028_alarm_set_callback()
Drtc_pcf8563.c81 rtc_alarm_callback alarm_callback; member
379 if (data->alarm_callback == NULL) { in callback_work_handler()
382 data->alarm_callback(data->dev, 0, data->alarm_user_data); in callback_work_handler()
425 data->alarm_callback = callback; in pcf8563_alarm_set_callback()
Drtc_sam.c44 rtc_alarm_callback alarm_callback; member
199 if (data->alarm_callback != NULL) { in rtc_sam_isr()
200 data->alarm_callback(dev, 0, data->alarm_user_data); in rtc_sam_isr()
452 data->alarm_callback = callback; in rtc_sam_alarm_set_callback()
455 if (data->alarm_callback) { in rtc_sam_alarm_set_callback()
Drtc_numaker.c42 rtc_alarm_callback alarm_callback; member
154 callback = data->alarm_callback; in rtc_numaker_isr()
353 data->alarm_callback = callback; in rtc_numaker_alarm_set_callback()