Home
last modified time | relevance | path

Searched refs:timer (Results 1 – 25 of 57) sorted by relevance

123

/samples/cpp/cpp_synchronization/src/
A Dmain.cpp115 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 Dmain.c26 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 Dsample_driver_foo.c27 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 Dtransition.c160 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 Dtransition.h32 struct k_timer timer; member
/samples/drivers/uart/passthrough/boards/
A Desp32_devkitc_procpu.overlay19 tx-timer = <&timer0>;
20 rx-timer = <&timer1>;
A Dnucleo_l4a6zg.overlay19 tx-timer = <&timers6>;
20 rx-timer = <&timers7>;
/samples/subsys/shell/shell_module/src/
A Duart_reinit.c66 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 Dvnd_sensor.c24 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 Dnucleo_f429zi.overlay9 zephyr,cortex-m-idle-timer = &rtc;
/samples/drivers/mbox/remote/boards/
A Dmimxrt1160_evk_mimxrt1166_cm4.overlay22 /* Replace GPT2 with another GPT kernel timer */
24 compatible = "nxp,gpt-hw-timer";
51 /* Disable primary GPT timer */
A Dmimxrt1170_evk_mimxrt1176_cm4.overlay22 /* Replace GPT2 with another GPT kernel timer */
24 compatible = "nxp,gpt-hw-timer";
51 /* Disable primary GPT timer */
A Dmimxrt1170_evk_mimxrt1176_cm4_B.overlay22 /* 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 Dmimxrt1170_evk_mimxrt1176_cm4.overlay22 /* Replace GPT2 with another GPT kernel timer */
24 compatible = "nxp,gpt-hw-timer";
57 /* Disable primary GPT timer */
A Dmimxrt1170_evk_mimxrt1176_cm4_B.overlay22 /* Replace GPT2 with another GPT kernel timer */
24 compatible = "nxp,gpt-hw-timer";
57 /* Disable primary GPT timer */
A Dmimxrt1160_evk_mimxrt1166_cm4.overlay22 /* 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 Dmimxrt1170_evk_mimxrt1176_cm4_B.overlay19 /* Replace GPT2 with another GPT kernel timer */
21 compatible = "nxp,gpt-hw-timer";
46 /* Disable primary GPT timer */
A Dmimxrt1160_evk_mimxrt1166_cm4.overlay21 /* Replace GPT2 with another GPT kernel timer */
23 compatible = "nxp,gpt-hw-timer";
48 /* Disable primary GPT timer */
A Dmimxrt1170_evk_mimxrt1176_cm4.overlay21 /* 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 Dnucleo_u575zi_q.overlay9 st,lptim-stdby-timer = &rtc;
/samples/subsys/debug/debugmon/src/
A Dmain.c16 void timer_handler(struct k_timer *timer) in timer_handler() argument
/samples/boards/st/power_mgmt/blinky/
A Dsample.yaml16 dt_chosen_enabled("zephyr,cortex-m-idle-timer"))
/samples/subsys/rtio/producer_consumer/src/
A Dmain.c21 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 Dmimxrt1160_evk_mimxrt1166_cm4.overlay42 /* Replace GPT2 with another GPT kernel timer */
44 compatible = "nxp,gpt-hw-timer";
95 /* Disable primary GPT timer */
A Dmimxrt1170_evk_mimxrt1176_cm4_B.overlay42 /* Replace GPT2 with another GPT kernel timer */
44 compatible = "nxp,gpt-hw-timer";
95 /* Disable primary GPT timer */

Completed in 44 milliseconds

123