Home
last modified time | relevance | path

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

/Zephyr-Core-3.5.0/samples/drivers/counter/alarm/src/
Dmain.c58 static void test_counter_interrupt_fn(const struct device *counter_dev, in test_counter_interrupt_fn() argument
68 err = counter_get_value(counter_dev, &now_ticks); in test_counter_interrupt_fn()
74 now_usec = counter_ticks_to_us(counter_dev, now_ticks); in test_counter_interrupt_fn()
84 (uint32_t)(counter_ticks_to_us(counter_dev, in test_counter_interrupt_fn()
88 err = counter_set_channel_alarm(counter_dev, ALARM_CHANNEL_ID, in test_counter_interrupt_fn()
97 const struct device *const counter_dev = DEVICE_DT_GET(TIMER); in main() local
102 if (!device_is_ready(counter_dev)) { in main()
107 counter_start(counter_dev); in main()
110 alarm_cfg.ticks = counter_us_to_ticks(counter_dev, DELAY); in main()
114 err = counter_set_channel_alarm(counter_dev, ALARM_CHANNEL_ID, in main()
[all …]
/Zephyr-Core-3.5.0/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-Core-3.5.0/drivers/counter/
Dcounter_timer_shell.c25 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 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-Core-3.5.0/tests/drivers/uart/uart_mix_fifo_poll/boards/
Dnrf5340dk_nrf5340_cpuapp.overlay38 counter_dev: &timer0 {
Dnrf9160dk_nrf9160.overlay38 counter_dev: &timer0 {
Dnrf52840dk_nrf52840.overlay67 counter_dev: &timer0 {
/Zephyr-Core-3.5.0/drivers/watchdog/
Dwdt_andes_atcwdt200.c112 static void wdt_counter_cb(const struct device *counter_dev, uint8_t chan_id, in wdt_counter_cb() argument
126 counter_set_channel_alarm(counter_dev, 2, &alarm_cfg); in wdt_counter_cb()