Skip to content

Commit

Permalink
drivers: stepper: Add stepper driver for allegro a4988
Browse files Browse the repository at this point in the history
Adding stepper driver for allegro a4988 DMOS microstepping driver.

Signed-off-by: Armin Kessler <armin.kessler@me.com>
  • Loading branch information
Hallootto1100 committed Sep 27, 2024
1 parent 4cc3134 commit b08b15e
Show file tree
Hide file tree
Showing 5 changed files with 476 additions and 0 deletions.
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

0 comments on commit b08b15e

Please sign in to comment.