Skip to content

Conversation

Liam-Ogletree
Copy link

Expose the haptics API (haptics_start_output, haptics_stop_output) through a shell interface. Tested locally with dummy haptics driver.

Copy link

@Copilot Copilot AI left a 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 and stop 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]>
pdgendt
pdgendt previously approved these changes Oct 17, 2025
@pdgendt
Copy link
Contributor

pdgendt commented Oct 17, 2025

Might need a release note entry for

  * :kconfig:option:`CONFIG_HAPTICS_SHELL`

@Liam-Ogletree
Copy link
Author

Might need a release note entry for

  * :kconfig:option:`CONFIG_HAPTICS_SHELL`

Added -- thanks for the feedback!

@zephyrbot zephyrbot added the Release Notes To be mentioned in the release notes label Oct 21, 2025
@zephyrbot zephyrbot requested review from cfriedt and jhedberg October 21, 2025 16:01
Add line documenting CONFIG_HAPTICS_SHELL in 4.3 release notes.

Signed-off-by: Liam Ogletree <[email protected]>
Copy link
Contributor

@rriveramcrus rriveramcrus left a 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!

@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Haptics Release Notes To be mentioned in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants