-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers: stepper: tmc: create rampstat Kconfig template
create rampstat Kconfig template to enable respective tmc drivers to reuse the common configurations Signed-off-by: Jilay Pandya <[email protected]>
- Loading branch information
1 parent
e8a5e97
commit 152ae03
Showing
2 changed files
with
23 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# SPDX-FileCopyrightText: Copyright (c) 2024 Jilay Sandeep Pandya | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
config STEPPER_ADI_$(module)_RAMPSTAT_POLL | ||
bool "$(module-str) poll ramp status" | ||
depends on STEPPER_ADI_$(module) | ||
default y | ||
help | ||
When enabled, the ramp status will be polled on TMC, to check for events: | ||
- TMC_POS_REACHED_EVENT | ||
- TMC_STOP_SG_EVENT | ||
- TMC_STOP_LEFT_EVENT | ||
- TMC_STOP_RIGHT_EVENT | ||
|
||
config STEPPER_ADI_$(module)_RAMPSTAT_POLL_INTERVAL_IN_MSEC | ||
int "$(module-str) poll ramp status interval in ms" | ||
depends on STEPPER_ADI_$(module)_RAMPSTAT_POLL | ||
default 100 | ||
help | ||
The interval in ms to poll the ramp status on TMC. |