-
Notifications
You must be signed in to change notification settings - Fork 8.1k
drivers: haptics: Add Shell support for haptics drivers #97744
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
base: main
Are you sure you want to change the base?
drivers: haptics: Add Shell support for haptics drivers #97744
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds shell command support for the haptics subsystem, allowing developers to interact with haptic devices through the command line interface. The implementation exposes the existing haptics_start_output
and haptics_stop_output
APIs through shell commands.
- Adds a new shell interface with
start
andstop
commands for haptic devices - Provides dynamic device name completion for haptics-compatible devices
- Includes proper Kconfig option to enable/disable the shell functionality
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
File | Description |
---|---|
drivers/haptics/haptics_shell.c | New shell command implementation with start/stop operations and device filtering |
drivers/haptics/Kconfig | Adds HAPTICS_SHELL configuration option dependent on SHELL |
drivers/haptics/CMakeLists.txt | Conditionally compiles the shell module when enabled |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Expose the haptics API through a shell interface. Tested locally with dummy haptics driver. Signed-off-by: Liam Ogletree <[email protected]>
910e074
to
bf5f793
Compare
Might need a release note entry for * :kconfig:option:`CONFIG_HAPTICS_SHELL` |
Added -- thanks for the feedback! |
Add line documenting CONFIG_HAPTICS_SHELL in 4.3 release notes. Signed-off-by: Liam Ogletree <[email protected]>
1c8959c
to
2382670
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution!
|
Expose the haptics API (
haptics_start_output
,haptics_stop_output
) through a shell interface. Tested locally with dummy haptics driver.