zephyr/drivers/stepper/Kconfig.stepper_event_template
Fabian Blatz 0b124a2ff6 drivers: stepper: Add timing source for step dir stepper
Adds a timing source api which is used by the step-dir stepper common code.
This allows the reusable common code to configure different timing sources,
since the initial delayable work implementation was inacurate for higher
maximum velocities.

Signed-off-by: Fabian Blatz <fabianblatz@gmail.com>
2024-12-28 04:37:05 +01:00

18 lines
721 B
Text

# Copyright (c) 2024 Fabian Blatz <fabianblatz@gmail.com>
# SPDX-License-Identifier: Apache-2.0
config STEPPER_$(module)_GENERATE_ISR_SAFE_EVENTS
bool "$(module-str) guarantee non ISR callbacks upon stepper events"
help
Enable the dispatch of stepper generated events via
a message queue to guarantee that the event handler
code is not run inside of an ISR. Can be disabled, but
then registered stepper event callback must be ISR safe.
config STEPPER_$(module)_EVENT_QUEUE_LEN
int "$(module-str) maximum number of pending stepper events"
default 4
depends on STEPPER_$(module)_GENERATE_ISR_SAFE_EVENTS
help
The maximum number of stepper events that can be pending before new events
are dropped.