Skip to content

Refactor tmc5xxx drivers & modules to reuse code #91988

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

Open
wants to merge 8 commits 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
6 changes: 4 additions & 2 deletions drivers/stepper/adi_tmc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ zephyr_library()
zephyr_library_property(ALLOW_EMPTY TRUE)

zephyr_library_sources_ifdef(CONFIG_STEPPER_ADI_TMC2209 tmc22xx.c)
zephyr_library_sources_ifdef(CONFIG_STEPPER_ADI_TMC50XX tmc50xx.c)
add_subdirectory_ifdef(CONFIG_STEPPER_ADI_TMC51XX tmc51xx)

if(CONFIG_STEPPER_ADI_TMC51XX OR CONFIG_STEPPER_ADI_TMC50XX)
add_subdirectory(tmc5xxx)
endif()

add_subdirectory_ifdef(CONFIG_STEPPER_ADI_TMC bus)
2 changes: 1 addition & 1 deletion drivers/stepper/adi_tmc/Kconfig.tmc50xx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
config STEPPER_ADI_TMC50XX
bool "Activate trinamic tmc50xx stepper driver"
depends on DT_HAS_ADI_TMC50XX_ENABLED && STEPPER_ADI_TMC
select STEPPER_ADI_TMC_SPI
select STEPPER_ADI_TMC_SPI if $(dt_compat_on_bus,$(DT_COMPAT_ADI_TMC50XX),spi)
default y

module = TMC50XX
Expand Down
51 changes: 0 additions & 51 deletions drivers/stepper/adi_tmc/adi_tmc5xxx_common.h

This file was deleted.

Loading
Loading