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