Searched refs:timer_dev (Results 1 – 2 of 2) sorted by relevance
/Zephyr-Core-3.5.0/drivers/counter/ |
D | counter_timer_shell.c | 44 const struct device *timer_dev; in cmd_timer_free_running() local 46 timer_dev = device_get_binding(argv[ARGV_DEV]); in cmd_timer_free_running() 47 if (!timer_dev) { in cmd_timer_free_running() 53 err = counter_start(timer_dev); in cmd_timer_free_running() 68 const struct device *timer_dev; in cmd_timer_stop() local 70 timer_dev = device_get_binding(argv[ARGV_DEV]); in cmd_timer_stop() 71 if (!timer_dev) { in cmd_timer_stop() 76 counter_stop(timer_dev); in cmd_timer_stop() 78 counter_get_value(timer_dev, &ticks1); in cmd_timer_stop() 79 counter_get_value(timer_dev, &ticks2); in cmd_timer_stop() [all …]
|
D | counter_dw_timer.c | 18 static int counter_dw_timer_get_value(const struct device *timer_dev, uint32_t *ticks); 84 static void counter_dw_timer_irq_handler(const struct device *timer_dev) in counter_dw_timer_irq_handler() argument 87 uintptr_t reg_base = DEVICE_MMIO_NAMED_GET(timer_dev, timer_mmio); in counter_dw_timer_irq_handler() 88 struct counter_dw_timer_drv_data *const data = DEV_DATA(timer_dev); in counter_dw_timer_irq_handler() 95 counter_dw_timer_get_value(timer_dev, &ticks); in counter_dw_timer_irq_handler() 106 alarm_cb(timer_dev, 0, ticks, data->prv_data); in counter_dw_timer_irq_handler() 109 data->top_cb(timer_dev, data->prv_data); in counter_dw_timer_irq_handler() 141 static uint32_t counter_dw_timer_get_top_value(const struct device *timer_dev) in counter_dw_timer_get_top_value() argument 144 uintptr_t reg_base = DEVICE_MMIO_NAMED_GET(timer_dev, timer_mmio); in counter_dw_timer_get_top_value() 152 static int counter_dw_timer_get_value(const struct device *timer_dev, uint32_t *ticks) in counter_dw_timer_get_value() argument [all …]
|