Skip to content

drivers: counter: adopt SHELL_HELP #91458

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 18, 2025

Conversation

kartben
Copy link
Contributor

@kartben kartben commented Jun 11, 2025

Adopt SHELL_HELP macro for counter_timer_shell

uart:~$ timer --help
timer - Timer commands
Subcommands:
  periodic  : Start a periodic timer with specified interval
              Usage: periodic <timer_instance_node_id> <time_in_us>
  oneshot   : Set a one-shot alarm on specified channel
              Usage: oneshot <timer_instance_node_id> <channel_id> <time_in_us>
  freerun   : Start a timer in free-running mode
              Usage: freerun <timer_instance_node_id>
  stop      : Stop a timer
              Usage: stop <timer_instance_node_id>

before was looking like this:

uart:~$ timer --help
timer - Timer commands
Subcommands:
  periodic  : timer periodic <timer_instance_node_id> <time_in_us>
  oneshot   : timer oneshot <timer_instance_node_id> <channel_id> <time_in_us>
  freerun   : timer freerun <timer_instance_node_id>
  stop      : timer stop <timer_instance_node_id>

kartben added 2 commits June 11, 2025 17:17
Run clang-format on this file

Signed-off-by: Benjamin Cabé <[email protected]>
Adopt SHELL_HELP macro for counter_timer_shell

Signed-off-by: Benjamin Cabé <[email protected]>
@kartben kartben marked this pull request as ready for review June 11, 2025 15:20
@github-actions github-actions bot requested a review from nordic-krch June 11, 2025 15:21
Copy link

@kartben
Copy link
Contributor Author

kartben commented Jun 18, 2025

@nordic-krch looking good to you?

@nashif nashif merged commit 47108c3 into zephyrproject-rtos:main Jun 18, 2025
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants