Searched refs:counter_dev (Results 1 – 8 of 8) sorted by relevance
/Zephyr-Core-3.6.0/samples/drivers/counter/alarm/src/ |
D | main.c | 58 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.6.0/tests/drivers/uart/uart_mix_fifo_poll/src/ |
D | main.c | 32 #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.6.0/drivers/counter/ |
D | counter_timer_shell.c | 25 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.6.0/tests/drivers/uart/uart_mix_fifo_poll/boards/ |
D | nrf9160dk_nrf9160.overlay | 38 counter_dev: &timer0 {
|
D | nrf5340dk_nrf5340_cpuapp.overlay | 38 counter_dev: &timer0 {
|
D | nrf54l15pdk_nrf54l15_cpuapp.overlay | 37 counter_dev: &timer00 {
|
D | nrf52840dk_nrf52840.overlay | 67 counter_dev: &timer0 {
|
/Zephyr-Core-3.6.0/drivers/watchdog/ |
D | wdt_andes_atcwdt200.c | 111 static void wdt_counter_cb(const struct device *counter_dev, uint8_t chan_id, in wdt_counter_cb() argument 125 counter_set_channel_alarm(counter_dev, 2, &alarm_cfg); in wdt_counter_cb()
|