Skip to content
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

drivers: stepper: Added fault event #87479

Merged
merged 1 commit into from
Mar 25, 2025

Conversation

jbehrensnx
Copy link
Collaborator

The stepper api currently lacks an event for issues unrelated to motor stalls, e.g. power supply issues or thermal shutdown. This PR adds a corresponding fault event.

Adds a fault event to stepper_event for stall unrelated problems.

Signed-off-by: Jan Behrens <jan.behrens@navimatix.de>
@@ -95,6 +95,8 @@ enum stepper_event {
STEPPER_EVENT_RIGHT_END_STOP_DETECTED = 3,
/** Stepper has stopped */
STEPPER_EVENT_STOPPED = 4,
/** Fault with the stepper controller detected */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit

Suggested change
/** Fault with the stepper controller detected */
/** Fault detected with the stepper controller */

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jbehrensnx would you also be implementing this interrupt based fault detection for ti drv8424 driver?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's the plan, but as there will be some other changes to the drv8424 driver, it will definitely be a separate PR.

@kartben kartben merged commit 411ca58 into zephyrproject-rtos:main Mar 25, 2025
24 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.

7 participants