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: Add stepper driver for allegro a4988 #79120

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions drivers/stepper/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ zephyr_syscall_header(${ZEPHYR_BASE}/include/zephyr/drivers/stepper.h)

zephyr_library()

zephyr_library_sources_ifdef(CONFIG_A4988_STEPPER a4988_stepper_controller.c)
zephyr_library_sources_ifdef(CONFIG_FAKE_STEPPER fake_stepper_controller.c)
zephyr_library_sources_ifdef(CONFIG_GPIO_STEPPER gpio_stepper_controller.c)

Expand Down
1 change: 1 addition & 0 deletions drivers/stepper/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ config STEPPER_SHELL_THREAD_PRIORITY

comment "Stepper Drivers"

rsource "Kconfig.a4988"
rsource "Kconfig.fake"
rsource "Kconfig.gpio"

Expand Down
14 changes: 14 additions & 0 deletions drivers/stepper/Kconfig.a4988
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright (c) 2024 Armin Kessler
# SPDX-License-Identifier: Apache-2.0

menu "A4988 stepper driver"

config A4988_STEPPER
bool "Activate driver for A4988 stepper motor driver"
depends on DT_HAS_ALLEGRO_A4988_ENABLED
select POLL
default y
help
Microstepping motor driver for stepper motors.

endmenu
Loading
Loading