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>
17 lines
668 B
CMake
17 lines
668 B
CMake
# SPDX-FileCopyrightText: Copyright (c) 2023 Carl Zeiss Meditec AG
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
zephyr_syscall_header(${ZEPHYR_BASE}/include/zephyr/drivers/stepper.h)
|
|
|
|
# zephyr-keep-sorted-start
|
|
add_subdirectory_ifdef(CONFIG_STEPPER_ADI_TMC adi_tmc)
|
|
add_subdirectory_ifdef(CONFIG_STEPPER_TI ti)
|
|
add_subdirectory_ifdef(CONFIG_STEP_DIR_STEPPER step_dir)
|
|
# zephyr-keep-sorted-stop
|
|
|
|
zephyr_library()
|
|
zephyr_library_property(ALLOW_EMPTY TRUE)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_FAKE_STEPPER fake_stepper_controller.c)
|
|
zephyr_library_sources_ifdef(CONFIG_GPIO_STEPPER gpio_stepper_controller.c)
|
|
zephyr_library_sources_ifdef(CONFIG_STEPPER_SHELL stepper_shell.c)
|