Home
last modified time | relevance | path

Searched refs:counter_dev (Results 1 – 11 of 11) sorted by relevance

/Zephyr-latest/samples/drivers/counter/alarm/src/
Dmain.c66 static void test_counter_interrupt_fn(const struct device *counter_dev, in test_counter_interrupt_fn() argument
76 err = counter_get_value(counter_dev, &now_ticks); in test_counter_interrupt_fn()
77 if (!counter_is_counting_up(counter_dev)) { in test_counter_interrupt_fn()
78 now_ticks = counter_get_top_value(counter_dev) - now_ticks; in test_counter_interrupt_fn()
86 now_usec = counter_ticks_to_us(counter_dev, now_ticks); in test_counter_interrupt_fn()
96 (uint32_t)(counter_ticks_to_us(counter_dev, in test_counter_interrupt_fn()
100 err = counter_set_channel_alarm(counter_dev, ALARM_CHANNEL_ID, in test_counter_interrupt_fn()
109 const struct device *const counter_dev = DEVICE_DT_GET(TIMER); in main() local
114 if (!device_is_ready(counter_dev)) { in main()
119 counter_start(counter_dev); in main()
[all …]
/Zephyr-latest/drivers/timer/
Dmcux_os_timer.c40 static const struct device *counter_dev; variable
85 if (counter_dev) { in mcux_lpc_ostick_set_counter_timeout()
92 ticks = counter_us_to_ticks(counter_dev, timeout); in mcux_lpc_ostick_set_counter_timeout()
93 ticks = CLAMP(ticks, 1, counter_get_max_top_value(counter_dev)); in mcux_lpc_ostick_set_counter_timeout()
99 if (counter_set_top_value(counter_dev, &top_cfg) != 0) { in mcux_lpc_ostick_set_counter_timeout()
108 if (counter_set_channel_alarm(counter_dev, 0, &alarm_cfg) != 0) { in mcux_lpc_ostick_set_counter_timeout()
122 if (counter_start(counter_dev) != 0) { in mcux_lpc_ostick_set_counter_timeout()
142 if (counter_dev) { in mcux_lpc_ostick_compensate_system_timer()
146 counter_stop(counter_dev); in mcux_lpc_ostick_compensate_system_timer()
148 counter_get_value(counter_dev, &slept_time_ticks); in mcux_lpc_ostick_compensate_system_timer()
[all …]
/Zephyr-latest/tests/drivers/uart/uart_mix_fifo_poll/src/
Dmain.c32 #if DT_NODE_EXISTS(DT_NODELABEL(counter_dev))
33 #define COUNTER_NODE DT_NODELABEL(counter_dev)
67 static const struct device *const counter_dev = variable
155 zassert_true(device_is_ready(counter_dev)); in init_test()
157 top_cfg.ticks = counter_us_to_ticks(counter_dev, 1000); in init_test()
159 err = counter_set_top_value(counter_dev, &top_cfg); in init_test()
162 err = counter_start(counter_dev); in init_test()
/Zephyr-latest/drivers/counter/
Dcounter_timer_shell.c25 static void timer_top_handler(const struct device *counter_dev, void *user_data) in timer_top_handler() argument
27 ARG_UNUSED(counter_dev); in timer_top_handler()
32 static void timer_alarm_handler(const struct device *counter_dev, uint8_t chan_id, in timer_alarm_handler() argument
35 ARG_UNUSED(counter_dev); in timer_alarm_handler()
/Zephyr-latest/tests/drivers/uart/uart_mix_fifo_poll/boards/
Dnrf5340dk_nrf5340_cpuapp.overlay38 counter_dev: &timer0 {
Dnrf9160dk_nrf9160.overlay38 counter_dev: &timer0 {
Dnrf54l15dk_nrf54l15_cpuapp.overlay37 counter_dev: &timer00 {
Dnrf54l20pdk_nrf54l20_cpuapp.overlay37 counter_dev: &timer00 {
Dnrf54h20dk_nrf54h20_common.dtsi34 counter_dev: &timer137 { label
Dnrf52840dk_nrf52840.overlay67 counter_dev: &timer0 {
/Zephyr-latest/drivers/watchdog/
Dwdt_andes_atcwdt200.c97 static void wdt_counter_cb(const struct device *counter_dev, uint8_t chan_id, in wdt_counter_cb() argument
111 counter_set_channel_alarm(counter_dev, 2, &alarm_cfg); in wdt_counter_cb()