Lines Matching refs:timer_dev
41 const struct device **timer_dev) in parse_device() argument
45 *timer_dev = shell_device_get_binding(argv[ARGV_DEV]); in parse_device()
46 if (*timer_dev == NULL) { in parse_device()
56 const struct device *timer_dev; in cmd_timer_free_running() local
57 int err = parse_device(shctx, argc, argv, &timer_dev); in cmd_timer_free_running()
64 err = counter_start(timer_dev); in cmd_timer_free_running()
78 const struct device *timer_dev; in cmd_timer_stop() local
79 int err = parse_device(shctx, argc, argv, &timer_dev); in cmd_timer_stop()
85 counter_stop(timer_dev); in cmd_timer_stop()
87 counter_get_value(timer_dev, &ticks1); in cmd_timer_stop()
88 counter_get_value(timer_dev, &ticks2); in cmd_timer_stop()
104 const struct device *timer_dev; in cmd_timer_oneshot() local
105 int err = parse_device(shctx, argc, argv, &timer_dev); in cmd_timer_oneshot()
133 alarm_cfg.ticks = counter_us_to_ticks(timer_dev, (uint64_t)delay); in cmd_timer_oneshot()
138 err = counter_set_channel_alarm(timer_dev, (uint8_t)channel, &alarm_cfg); in cmd_timer_oneshot()
156 const struct device *timer_dev; in cmd_timer_periodic() local
157 int err = parse_device(shctx, argc, argv, &timer_dev); in cmd_timer_periodic()
176 top_cfg.ticks = counter_us_to_ticks(timer_dev, (uint64_t)delay); in cmd_timer_periodic()
182 err = counter_set_top_value(timer_dev, &top_cfg); in cmd_timer_periodic()