| /samples/cpp/cpp_synchronization/src/ |
| A D | main.cpp | 115 struct k_timer timer; in coop_thread_entry() local 117 k_timer_init(&timer, NULL, NULL); in coop_thread_entry() 127 k_timer_start(&timer, K_MSEC(SLEEPTIME), K_NO_WAIT); in coop_thread_entry() 128 k_timer_status_sync(&timer); in coop_thread_entry() 135 struct k_timer timer; in main() local 140 k_timer_init(&timer, NULL, NULL); in main() 147 k_timer_start(&timer, K_MSEC(SLEEPTIME), K_NO_WAIT); in main() 148 k_timer_status_sync(&timer); in main()
|
| /samples/boards/nordic/nrf53_sync_rtc/src/ |
| A D | main.c | 26 static void timeout_handler(struct k_timer *timer) in timeout_handler() argument 38 k_timer_stop(timer); in timeout_handler() 42 K_TIMER_DEFINE(timer, timeout_handler, NULL); 47 k_timer_start(&timer, K_MSEC(50), K_MSEC(50)); in main()
|
| /samples/userspace/prod_consumer/src/ |
| A D | sample_driver_foo.c | 27 struct k_timer timer; /* to fake 'interrupts' */ member 58 data->timer.user_data = data; in sample_driver_foo_state_set() 60 k_timer_start(&data->timer, K_MSEC(100), K_MSEC(100)); in sample_driver_foo_state_set() 62 k_timer_stop(&data->timer); in sample_driver_foo_state_set() 91 static void sample_driver_timer_cb(struct k_timer *timer) in sample_driver_timer_cb() argument 93 sample_driver_foo_isr(timer->user_data); in sample_driver_timer_cb() 100 k_timer_init(&data->timer, sample_driver_timer_cb, NULL); in sample_driver_foo_init()
|
| /samples/boards/nordic/mesh/onoff_level_lighting_vnd_app/src/mesh/ |
| A D | transition.c | 160 k_timer_stop(&ctl->transition->timer); in onoff_work_handler() 175 k_timer_stop(&ctl->transition->timer); in onoff_work_handler() 206 k_timer_stop(&ctl->transition->timer); in level_move_lightness_work_handler() 237 k_timer_stop(&ctl->transition->timer); in level_lightness_work_handler() 268 k_timer_stop(&ctl->transition->timer); in level_move_temp_work_handler() 475 k_timer_start(&ctl->transition->timer, in onoff_handler() 487 k_timer_init(&ctl->transition->timer, in level_lightness_handler() 490 k_timer_start(&ctl->transition->timer, in level_lightness_handler() 516 k_timer_init(&ctl->transition->timer, in light_lightness_actual_handler() 531 k_timer_init(&ctl->transition->timer, in light_lightness_linear_handler() [all …]
|
| A D | transition.h | 32 struct k_timer timer; member
|
| /samples/drivers/uart/passthrough/boards/ |
| A D | esp32_devkitc_procpu.overlay | 19 tx-timer = <&timer0>; 20 rx-timer = <&timer1>;
|
| A D | nucleo_l4a6zg.overlay | 19 tx-timer = <&timers6>; 20 rx-timer = <&timers7>;
|
| /samples/subsys/shell/shell_module/src/ |
| A D | uart_reinit.c | 66 static void uart_poll_timer_stopped(struct k_timer *timer) in uart_poll_timer_stopped() argument 71 static void uart_poll_timeout(struct k_timer *timer) in uart_poll_timeout() argument 74 const struct device *dev = k_timer_user_data_get(timer); in uart_poll_timeout() 80 k_timer_stop(timer); in uart_poll_timeout()
|
| /samples/subsys/rtio/sensor_batch_processing/src/ |
| A D | vnd_sensor.c | 24 struct k_timer timer; member 104 static void vnd_sensor_timer_expiry(struct k_timer *timer) in vnd_sensor_timer_expiry() argument 107 CONTAINER_OF(timer, struct vnd_sensor_data, timer); in vnd_sensor_timer_expiry() 122 k_timer_init(&data->timer, vnd_sensor_timer_expiry, NULL); in vnd_sensor_init() 124 k_timer_start(&data->timer, K_MSEC(sample_period), in vnd_sensor_init()
|
| /samples/boards/st/power_mgmt/blinky/boards/ |
| A D | nucleo_f429zi.overlay | 9 zephyr,cortex-m-idle-timer = &rtc;
|
| /samples/drivers/mbox/remote/boards/ |
| A D | mimxrt1160_evk_mimxrt1166_cm4.overlay | 22 /* Replace GPT2 with another GPT kernel timer */ 24 compatible = "nxp,gpt-hw-timer"; 51 /* Disable primary GPT timer */
|
| A D | mimxrt1170_evk_mimxrt1176_cm4.overlay | 22 /* Replace GPT2 with another GPT kernel timer */ 24 compatible = "nxp,gpt-hw-timer"; 51 /* Disable primary GPT timer */
|
| A D | mimxrt1170_evk_mimxrt1176_cm4_B.overlay | 22 /* Replace GPT2 with another GPT kernel timer */ 24 compatible = "nxp,gpt-hw-timer"; 52 /* Disable primary GPT timer */
|
| /samples/drivers/mbox_data/remote/boards/ |
| A D | mimxrt1170_evk_mimxrt1176_cm4.overlay | 22 /* Replace GPT2 with another GPT kernel timer */ 24 compatible = "nxp,gpt-hw-timer"; 57 /* Disable primary GPT timer */
|
| A D | mimxrt1170_evk_mimxrt1176_cm4_B.overlay | 22 /* Replace GPT2 with another GPT kernel timer */ 24 compatible = "nxp,gpt-hw-timer"; 57 /* Disable primary GPT timer */
|
| A D | mimxrt1160_evk_mimxrt1166_cm4.overlay | 22 /* Replace GPT2 with another GPT kernel timer */ 24 compatible = "nxp,gpt-hw-timer"; 57 /* Disable primary GPT timer */
|
| /samples/subsys/ipc/openamp/remote/boards/ |
| A D | mimxrt1170_evk_mimxrt1176_cm4_B.overlay | 19 /* Replace GPT2 with another GPT kernel timer */ 21 compatible = "nxp,gpt-hw-timer"; 46 /* Disable primary GPT timer */
|
| A D | mimxrt1160_evk_mimxrt1166_cm4.overlay | 21 /* Replace GPT2 with another GPT kernel timer */ 23 compatible = "nxp,gpt-hw-timer"; 48 /* Disable primary GPT timer */
|
| A D | mimxrt1170_evk_mimxrt1176_cm4.overlay | 21 /* Replace GPT2 with another GPT kernel timer */ 23 compatible = "nxp,gpt-hw-timer"; 48 /* Disable primary GPT timer */
|
| /samples/boards/st/power_mgmt/stop3/boards/ |
| A D | nucleo_u575zi_q.overlay | 9 st,lptim-stdby-timer = &rtc;
|
| /samples/subsys/debug/debugmon/src/ |
| A D | main.c | 16 void timer_handler(struct k_timer *timer) in timer_handler() argument
|
| /samples/boards/st/power_mgmt/blinky/ |
| A D | sample.yaml | 16 dt_chosen_enabled("zephyr,cortex-m-idle-timer"))
|
| /samples/subsys/rtio/producer_consumer/src/ |
| A D | main.c | 21 static void producer_periodic(struct k_timer *timer) in producer_periodic() argument 23 struct producer *p = timer->user_data; in producer_periodic()
|
| /samples/subsys/ipc/ipc_service/static_vrings/remote/boards/ |
| A D | mimxrt1160_evk_mimxrt1166_cm4.overlay | 42 /* Replace GPT2 with another GPT kernel timer */ 44 compatible = "nxp,gpt-hw-timer"; 95 /* Disable primary GPT timer */
|
| A D | mimxrt1170_evk_mimxrt1176_cm4_B.overlay | 42 /* Replace GPT2 with another GPT kernel timer */ 44 compatible = "nxp,gpt-hw-timer"; 95 /* Disable primary GPT timer */
|