Skip to content

Commit

Permalink
drivers: stepper: drv8424: Use step_dir common code
Browse files Browse the repository at this point in the history
Adapt the drv8424 driver to use the common step dir interface.

(cherry picked from commit 0ac9a6c)

Original-Signed-off-by: Fabian Blatz <fabianblatz@gmail.com>
GitOrigin-RevId: 0ac9a6c
Cr-Build-Id: 8726951618076939153
Cr-Build-Url: https://cr-buildbucket.appspot.com/build/8726951618076939153
Copybot-Job-Name: zephyr-main-copybot-downstream
Change-Id: I30f44e8234f365146cf6a85f56b361fc7dc5bede
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/6136547
Bot-Commit: ChromeOS Prod (Robot) <chromeos-ci-prod@chromeos-bot.iam.gserviceaccount.com>
Tested-by: ChromeOS Prod (Robot) <chromeos-ci-prod@chromeos-bot.iam.gserviceaccount.com>
Commit-Queue: ChromeOS Prod (Robot) <chromeos-ci-prod@chromeos-bot.iam.gserviceaccount.com>
  • Loading branch information
Fabian Blatz authored and Chromeos LUCI committed Jan 1, 2025
1 parent 9676400 commit 715433a
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 378 deletions.
14 changes: 2 additions & 12 deletions drivers/stepper/ti/Kconfig.drv8424
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,7 @@ config DRV8424
bool "TI DRV8424 stepper motor driver"
default y
depends on DT_HAS_TI_DRV8424_ENABLED
select COUNTER
select STEP_DIR_STEPPER
select STEPPER_STEP_DIR_GENERATE_ISR_SAFE_EVENTS
help
Enable driver for TI DRV8424 stepper motor driver.

if DRV8424

config DRV8424_EVENT_QUEUE_LEN
int "Maximum number of pending stepper events"
default 4
help
The maximum number of stepper events that can be pending before new events
are dropped.

endif # DRV8424
Loading

0 comments on commit 715433a

Please sign in to comment.