File tree Expand file tree Collapse file tree 3 files changed +17
-6
lines changed Expand file tree Collapse file tree 3 files changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,9 @@ zephyr_library()
5
5
zephyr_library_property (ALLOW_EMPTY TRUE )
6
6
7
7
zephyr_library_sources_ifdef (CONFIG_STEPPER_ADI_TMC2209 tmc22xx.c )
8
- zephyr_library_sources_ifdef (CONFIG_STEPPER_ADI_TMC50XX tmc50xx.c )
9
- add_subdirectory_ifdef (CONFIG_STEPPER_ADI_TMC51XX tmc51xx )
8
+
9
+ if (CONFIG_STEPPER_ADI_TMC51XX OR CONFIG_STEPPER_ADI_TMC50XX )
10
+ add_subdirectory (tmc5xxx )
11
+ endif ()
10
12
11
13
add_subdirectory_ifdef (CONFIG_STEPPER_ADI_TMC bus )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ # SPDX-FileCopyrightText: Copyright (c) 2025 Dipak Shetty
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ zephyr_library_sources (adi_tmc5xxx_core.c )
5
+
6
+ # Common bus implementation sources
7
+ zephyr_library_sources_ifdef (CONFIG_STEPPER_ADI_TMC_SPI tmc5xxx_spi.c )
8
+ zephyr_library_sources_ifdef (CONFIG_STEPPER_ADI_TMC_UART tmc5xxx_uart.c )
9
+
10
+ # Device-specific implementations
11
+ zephyr_library_sources_ifdef (CONFIG_STEPPER_ADI_TMC50XX tmc50xx.c )
12
+ zephyr_library_sources_ifdef (CONFIG_STEPPER_ADI_TMC51XX tmc51xx.c )
13
+
You can’t perform that action at this time.
0 commit comments