Skip to content

Commit 0ac9a6c

Browse files
faxe1008kartben
authored andcommitted
drivers: stepper: drv8424: Use step_dir common code
Adapt the drv8424 driver to use the common step dir interface. Signed-off-by: Fabian Blatz <[email protected]>
1 parent 39dbd49 commit 0ac9a6c

File tree

3 files changed

+52
-378
lines changed

3 files changed

+52
-378
lines changed

drivers/stepper/ti/Kconfig.drv8424

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,7 @@ config DRV8424
55
bool "TI DRV8424 stepper motor driver"
66
default y
77
depends on DT_HAS_TI_DRV8424_ENABLED
8-
select COUNTER
8+
select STEP_DIR_STEPPER
9+
select STEPPER_STEP_DIR_GENERATE_ISR_SAFE_EVENTS
910
help
1011
Enable driver for TI DRV8424 stepper motor driver.
11-
12-
if DRV8424
13-
14-
config DRV8424_EVENT_QUEUE_LEN
15-
int "Maximum number of pending stepper events"
16-
default 4
17-
help
18-
The maximum number of stepper events that can be pending before new events
19-
are dropped.
20-
21-
endif # DRV8424

0 commit comments

Comments
 (0)