Commit 77e5bec3 authored by Benjamin Cabé's avatar Benjamin Cabé Committed by Anas Nashif
Browse files

drivers; counter: run clang-format on counter_timer_shell.c

Run clang-format on this file

Signed-off-by: default avatarBenjamin Cabé <benjamin@zephyrproject.org>
parent 3c97bf10
Loading
Loading
Loading
Loading
+8 −9
Changes for drivers/counter/counter_timer_shell.c: 8 added lines, 9 removed lines.
Original line number Diff line number Diff line
@@ -29,8 +29,8 @@ static void timer_top_handler(const struct device *counter_dev, void *user_data)
	k_sem_give(&timer_sem);
}

static void timer_alarm_handler(const struct device *counter_dev, uint8_t chan_id,
				uint32_t ticks, void *user_data)
static void timer_alarm_handler(const struct device *counter_dev, uint8_t chan_id, uint32_t ticks,
				void *user_data)
{
	ARG_UNUSED(counter_dev);

@@ -215,18 +215,17 @@ static void device_name_get(size_t idx, struct shell_static_entry *entry)

SHELL_DYNAMIC_CMD_CREATE(dsub_device_name, device_name_get);

SHELL_STATIC_SUBCMD_SET_CREATE(sub_timer,
SHELL_STATIC_SUBCMD_SET_CREATE(
	sub_timer,
	SHELL_CMD_ARG(periodic, &dsub_device_name,
			"timer periodic <timer_instance_node_id> <time_in_us>",
			cmd_timer_periodic, 3, 0),
		      "timer periodic <timer_instance_node_id> <time_in_us>", cmd_timer_periodic, 3,
		      0),
	SHELL_CMD_ARG(oneshot, &dsub_device_name,
		      "timer oneshot <timer_instance_node_id> <channel_id> <time_in_us>",
		      cmd_timer_oneshot, 4, 0),
			SHELL_CMD_ARG(freerun, &dsub_device_name,
			"timer freerun <timer_instance_node_id>",
	SHELL_CMD_ARG(freerun, &dsub_device_name, "timer freerun <timer_instance_node_id>",
		      cmd_timer_free_running, 2, 0),
			SHELL_CMD_ARG(stop, &dsub_device_name,
			"timer stop <timer_instance_node_id>",
	SHELL_CMD_ARG(stop, &dsub_device_name, "timer stop <timer_instance_node_id>",
		      cmd_timer_stop, 2, 0),
	SHELL_SUBCMD_SET_END /* array terminated. */
);