Searched refs:counter_dev (Results 1 – 12 of 12) sorted by relevance
/Zephyr-latest/samples/drivers/counter/alarm/src/ |
D | main.c | 72 static void test_counter_interrupt_fn(const struct device *counter_dev, in test_counter_interrupt_fn() argument 82 err = counter_get_value(counter_dev, &now_ticks); in test_counter_interrupt_fn() 83 if (!counter_is_counting_up(counter_dev)) { in test_counter_interrupt_fn() 84 now_ticks = counter_get_top_value(counter_dev) - now_ticks; in test_counter_interrupt_fn() 92 now_usec = counter_ticks_to_us(counter_dev, now_ticks); in test_counter_interrupt_fn() 102 (uint32_t)(counter_ticks_to_us(counter_dev, in test_counter_interrupt_fn() 106 err = counter_set_channel_alarm(counter_dev, ALARM_CHANNEL_ID, in test_counter_interrupt_fn() 115 const struct device *const counter_dev = DEVICE_DT_GET(TIMER); in main() local 120 if (!device_is_ready(counter_dev)) { in main() 125 counter_start(counter_dev); in main() [all …]
|
/Zephyr-latest/drivers/timer/ |
D | mcux_os_timer.c | 45 static const struct device *counter_dev; variable 92 if (counter_dev) { in mcux_lpc_ostick_set_counter_timeout() 98 ticks = counter_us_to_ticks(counter_dev, timeout); in mcux_lpc_ostick_set_counter_timeout() 99 ticks = CLAMP(ticks, 1, counter_get_max_top_value(counter_dev)); in mcux_lpc_ostick_set_counter_timeout() 105 if (counter_set_top_value(counter_dev, &top_cfg) != 0) { in mcux_lpc_ostick_set_counter_timeout() 114 if (counter_set_channel_alarm(counter_dev, 0, &alarm_cfg) != 0) { in mcux_lpc_ostick_set_counter_timeout() 121 if (counter_start(counter_dev) != 0) { in mcux_lpc_ostick_set_counter_timeout() 150 if (!counter_dev) { in mcux_lpc_ostick_compensate_system_timer() 158 counter_stop(counter_dev); in mcux_lpc_ostick_compensate_system_timer() 160 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/ |
D | main.c | 33 #if DT_NODE_EXISTS(DT_NODELABEL(counter_dev)) 34 #define COUNTER_NODE DT_NODELABEL(counter_dev) 86 static const struct device *const counter_dev = variable 352 zassert_true(device_is_ready(counter_dev)); in ZTEST() 354 top_cfg.ticks = counter_us_to_ticks(counter_dev, 1000); in ZTEST() 356 err = counter_set_top_value(counter_dev, &top_cfg); in ZTEST() 359 err = counter_start(counter_dev); in ZTEST() 406 err = counter_stop(counter_dev); in ZTEST()
|
/Zephyr-latest/drivers/counter/ |
D | counter_timer_shell.c | 25 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/ |
D | nrf5340dk_nrf5340_cpuapp.overlay | 38 counter_dev: &timer0 {
|
D | nrf9160dk_nrf9160.overlay | 38 counter_dev: &timer0 {
|
D | nrf54l09pdk_nrf54l09_cpuapp.overlay | 37 counter_dev: &timer00 {
|
D | nrf54l15dk_nrf54l15_cpuapp.overlay | 37 counter_dev: &timer00 {
|
D | nrf54l20pdk_nrf54l20_cpuapp.overlay | 37 counter_dev: &timer00 {
|
D | nrf52840dk_nrf52840.overlay | 67 counter_dev: &timer0 {
|
D | nrf54h20dk_nrf54h20_common.dtsi | 64 counter_dev: &timer137 { label
|
/Zephyr-latest/drivers/watchdog/ |
D | wdt_andes_atcwdt200.c | 97 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()
|