-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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: Add stepper driver for allegro a4988 #79120
base: main
Are you sure you want to change the base?
drivers: stepper: Add stepper driver for allegro a4988 #79120
Conversation
Hello @Hallootto1100, and thank you very much for your first pull request to the Zephyr project! |
Thanks for the contribution,
|
3e5b337
to
74fd2dc
Compare
Adding stepper driver for allegro a4988 DMOS microstepping driver. Signed-off-by: Armin Kessler <armin.kessler@me.com>
74fd2dc
to
b08b15e
Compare
In theory I think yes.
That came also to my mind during development. However, I haven't used the pwm api as much and wanted to finish this for now.
Yes, that would make sense since a lot of the code is shared. |
Add an entry to |
@jilaypandya I might find some time next Friday. |
A minor correction on my side, this selection would have to be in device tree. Because in theory you could have two different types of gpio driver and selection of interface would have to be device driver specific. |
This PR adds a stepper driver for allegro a4988 DMOS microstepping driver.
It has manly be copied from the
gpio_stepper_controller
and adapted where needed.I've tested it using the
stepper_shell
.One can enable this driver in an overlay like follow:
en-gpios
andmsx-gpios
(used for selecting micro stepping mode) are optional and can be left away.