Lines Matching +full:timer +full:- +full:triggered
4 * SPDX-License-Identifier: Apache-2.0
47 shell_error(shctx, "Timer: Device %s not found", argv[ARGV_DEV]); in parse_device()
48 return -ENODEV; in parse_device()
63 /* start timer in free running mode */ in cmd_timer_free_running()
70 shell_info(shctx, "%s: Timer is freerunning", argv[ARGV_DEV]); in cmd_timer_free_running()
91 shell_info(shctx, "Timer Stopped"); in cmd_timer_stop()
93 shell_error(shctx, "Failed to stop timer"); in cmd_timer_stop()
94 return -EIO; in cmd_timer_stop()
120 return -ERANGE; in cmd_timer_oneshot()
129 return -ERANGE; in cmd_timer_oneshot()
146 shell_info(shctx, "%s: Alarm triggered", argv[ARGV_DEV]); in cmd_timer_oneshot()
172 return -ERANGE; in cmd_timer_periodic()
177 /* interrupt will be triggered periodically */ in cmd_timer_periodic()
189 * Timer is still running and interrupt is triggered periodically. in cmd_timer_periodic()
195 shell_info(shctx, "%s: periodic timer triggered for %d times", argv[ARGV_DEV], count); in cmd_timer_periodic()
203 const struct device *dev = shell_device_lookup(idx, "timer"); in device_name_get()
205 entry->syntax = (dev != NULL) ? dev->name : NULL; in device_name_get()
206 entry->handler = NULL; in device_name_get()
207 entry->help = NULL; in device_name_get()
208 entry->subcmd = NULL; in device_name_get()
215 "timer periodic <timer_instance_node_id> <time_in_us>",
218 "timer oneshot <timer_instance_node_id> <channel_id> <time_in_us>",
221 "timer freerun <timer_instance_node_id>",
224 "timer stop <timer_instance_node_id>",
229 SHELL_CMD_REGISTER(timer, &sub_timer, "Timer commands", NULL);