/Zephyr-latest/dts/bindings/stepper/ |
D | zephyr,gpio-stepper.yaml | 1 # SPDX-FileCopyrightText: Copyright (c) 2024 Carl Zeiss Meditec AG 2 # SPDX-FileCopyrightText: Copyright (c) 2024 Jilay Sandeep Pandya 3 # SPDX-License-Identifier: Apache-2.0 6 GPIO Stepper Controller for darlington transistor arrays or dual H-bridge 10 stepper: stepper { 11 compatible = "zephyr,gpio-stepper"; 18 compatible: "zephyr,gpio-stepper" 20 include: stepper-controller.yaml 24 type: phandle-array 27 The gpio pin array on which the stepper inputs are to be connected
|
D | stepper-controller.yaml | 1 # SPDX-FileCopyrightText: Copyright (c) 2024 Carl Zeiss Meditec AG 2 # SPDX-License-Identifier: Apache-2.0 4 description: Stepper Controller 7 invert-direction: 12 micro-step-res: 16 - 1 17 - 2 18 - 4 19 - 8 20 - 16 [all …]
|
/Zephyr-latest/drivers/stepper/ |
D | Kconfig.gpio | 1 # SPDX-FileCopyrightText: Copyright (c) 2024 Carl Zeiss Meditec AG 2 # SPDX-FileCopyrightText: Copyright (c) 2024 Jilay Sandeep Pandya 3 # SPDX-License-Identifier: Apache-2.0 5 menu "GPIO stepper driver" 8 bool "Activate driver for gpio stepper control" 12 GPIO Stepper driver for stepper motor control with darlington arrays or dual H-bridge.
|
D | Kconfig | 1 # SPDX-FileCopyrightText: Copyright (c) 2023 Carl Zeiss Meditec AG 2 # SPDX-License-Identifier: Apache-2.0 4 menuconfig STEPPER config 5 bool "Stepper Controller" 7 Enable stepper controller 9 if STEPPER 11 module = STEPPER 12 module-str = stepper 16 int "Stepper Motor Controller init priority" 19 Stepper motor controller initialization priority. [all …]
|
D | gpio_stepper_controller.c | 2 * SPDX-FileCopyrightText: Copyright (c) 2024 Carl Zeiss Meditec AG 3 * SPDX-FileCopyrightText: Copyright (c) 2024 Jilay Sandeep Pandya 4 * SPDX-License-Identifier: Apache-2.0 9 #include <zephyr/drivers/gpio.h> 12 #include <zephyr/drivers/stepper.h> 49 struct gpio_stepper_data *data = dev->data; in stepper_motor_set_coil_charge() 50 const struct gpio_stepper_config *config = dev->config; in stepper_motor_set_coil_charge() 53 (void)gpio_pin_set_dt(&config->control_pins[i], in stepper_motor_set_coil_charge() 54 half_step_lookup_table[data->coil_charge][i]); in stepper_motor_set_coil_charge() 61 struct gpio_stepper_data *data = dev->data; in increment_coil_charge() [all …]
|
/Zephyr-latest/include/zephyr/drivers/stepper/ |
D | stepper_drv8424.h | 2 * @file drivers/stepper/stepper_drv8424.h 4 * @brief Public API for DRV8424 Stepper Controller Specific Functions 9 * SPDX-FileCopyrightText: Copyright (c) 2024 Navimatix GmbH 11 * SPDX-License-Identifier: Apache-2.0 15 #include <zephyr/drivers/stepper.h> 24 * @param dev Pointer to the stepper motor controller instance 27 * @retval <0 Error code dependent on the gpio controller of the microstep pins
|
/Zephyr-latest/doc/hardware/peripherals/ |
D | stepper.rst | 6 The stepper driver API provides a set of functions for controlling and configuring stepper drivers. 8 Configure Stepper Driver 11 - Configure **micro-stepping resolution** using :c:func:`stepper_set_micro_step_res` 13 - Configure **reference position** in microsteps using :c:func:`stepper_set_reference_position` 15 - Set **max velocity** in micro-steps per second using :c:func:`stepper_set_max_velocity` 16 - **Enable** the stepper driver using :c:func:`stepper_enable`. 18 Control Stepper 21 - **Move by** +/- micro-steps also known as **relative movement** using :c:func:`stepper_move_by`. 22 - **Move to** a specific position also known as **absolute movement** using :c:func:`stepper_move_t… 23 - Run continuously with a **constant velocity** in a specific direction until [all …]
|
/Zephyr-latest/tests/drivers/stepper/drv8424/api/boards/ |
D | nucleo_f767zi.overlay | 3 * SPDX-License-Identifier: Apache-2.0 6 #include <zephyr/dt-bindings/gpio/gpio.h> 10 stepper-motors = <&drv8424 0>; 23 gpio-controller; 25 #gpio-cells = <2>; 27 gpio-reserved-ranges = <7 1>; 29 gpio-line-names = 45 dir-gpios = <&arduino_header 18 0>; /* D12 */ 46 step-gpios = <&arduino_header 19 0>; /* D13 */ 47 sleep-gpios = <&arduino_header 15 GPIO_ACTIVE_LOW>; /* D9 */ [all …]
|
D | mimxrt1060_evk_mimxrt1062_qspi_B.overlay | 3 * SPDX-License-Identifier: Apache-2.0 6 #include <zephyr/dt-bindings/gpio/gpio.h> 10 stepper-motors = <&drv8424 0>; 23 gpio-controller; 25 #gpio-cells = <2>; 27 gpio-reserved-ranges = <7 1>; 29 gpio-line-names = 45 dir-gpios = <&arduino_header 9 0>; /* D3 */ 46 step-gpios = <&arduino_header 10 0>; /* D4 */ 47 sleep-gpios = <&arduino_header 8 GPIO_ACTIVE_LOW>; /* D2 */ [all …]
|
D | native_sim.overlay | 3 * SPDX-License-Identifier: Apache-2.0 6 #include <zephyr/dt-bindings/gpio/gpio.h> 14 dir-gpios = <&gpio1 0 0>; /* D3 */ 15 step-gpios = <&gpio1 1 0>; /* D4 */ 16 sleep-gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; /* D2 */ 17 en-gpios = <&gpio2 1 0>; /* 5 */ 18 m0-gpios = <&gpio3 0 0>; 19 m1-gpios = <&gpio3 1 0>; 22 #address-cells = <1>; 23 #size-cells = <0>; [all …]
|
/Zephyr-latest/dts/bindings/stepper/adi/ |
D | adi,tmc2209.yaml | 1 # SPDX-FileCopyrightText: Copyright (c) 2024 Fabian Blatz <fabianblatz@gmail.com> 2 # SPDX-License-Identifier: Apache-2.0 5 Analog Devices TMC2209 stepper motor driver. 10 enable-gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; 11 msx-gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>, 13 step-gpios = <&gpio0 3 GPIO_ACTIVE_HIGH>; 14 dir-gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>; 15 dual-edge-step; 21 - name: stepper-controller.yaml 22 property-allowlist: [all …]
|
/Zephyr-latest/tests/drivers/stepper/stepper_api/boards/ |
D | nucleo_f767zi.overlay | 3 * SPDX-License-Identifier: Apache-2.0 6 #include <zephyr/dt-bindings/gpio/gpio.h> 10 stepper-motors = <&motor_1 0>; 21 dir-gpios = <&arduino_header 18 0>; /* D12 */ 22 step-gpios = <&arduino_header 19 0>; /* D13 */ 23 sleep-gpios = <&arduino_header 15 GPIO_ACTIVE_LOW>; /* D9 */ 24 en-gpios = <&arduino_header 14 0>; /* D8 */ 25 m0-gpios = <&arduino_header 16 0>; 26 m1-gpios = <&arduino_header 17 0>; 29 #address-cells = <1>; [all …]
|
D | qemu_x86_64.overlay | 2 * SPDX-FileCopyrightText: Copyright (c) 2024 Jilay Sandeep Pandya 3 * SPDX-License-Identifier: Apache-2.0 8 #address-cells = <1>; 9 #size-cells = <1>; 11 test_gpio: gpio@deadbeef { 12 compatible = "vnd,gpio"; 13 gpio-controller; 15 #gpio-cells = <0x2>; 23 compatible = "zephyr,gpio-stepper"; 25 micro-step-res = <1>;
|
D | nucleo_g071rb.overlay | 2 * SPDX-FileCopyrightText: Copyright (c) 2024 Jilay Sandeep Pandya 3 * SPDX-License-Identifier: Apache-2.0 8 compatible = "zephyr,gpio-stepper"; 10 micro-step-res = <1>;
|
/Zephyr-latest/drivers/stepper/step_dir/ |
D | step_dir_stepper_common.h | 4 * SPDX-License-Identifier: Apache-2.0 11 * @brief Stepper Driver APIs 12 * @defgroup step_dir_stepper Stepper Driver APIs 18 #include <zephyr/drivers/gpio.h> 19 #include <zephyr/drivers/stepper.h> 25 * @brief Common step direction stepper config. 38 * @brief Initialize common step direction stepper config from devicetree instance. 56 * @brief Initialize common step direction stepper config from devicetree instance. 63 * @brief Common step direction stepper data. 94 * @brief Initialize common step direction stepper data from devicetree instance. [all …]
|
/Zephyr-latest/dts/bindings/stepper/ti/ |
D | ti,drv8424.yaml | 1 # SPDX-FileCopyrightText: Copyright (c) 2024 Navimatix GmbH 2 # SPDX-License-Identifier: Apache-2.0 5 TI DRV8424 stepper motor driver. 10 The step gpio pin needs to be connected directly to the SOC GPIO controller, connecting the 18 dir-gpios = <&arduino_header 18 0>; 19 step-gpios = <&arduino_header 19 0>; 20 sleep-gpios = <&arduino_header 15 GPIO_ACTIVE_LOW>; 21 en-gpios = <&arduino_header 14 0>; 22 m0-gpios = <&mikroe_stepper_gpios 0 0>; 23 m1-gpios = <&mikroe_stepper_gpios 1 0>; [all …]
|
/Zephyr-latest/tests/drivers/stepper/drv8424/emul/boards/ |
D | native_sim.overlay | 3 * SPDX-License-Identifier: Apache-2.0 6 #include <zephyr/dt-bindings/gpio/gpio.h> 14 dir-gpios = <&gpio1 0 0>; /* D3 */ 15 step-gpios = <&gpio1 1 0>; /* D4 */ 16 sleep-gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; /* D2 */ 17 en-gpios = <&gpio2 1 0>; /* 5 */ 18 m0-gpios = <&gpio3 0 0>; 19 m1-gpios = <&gpio3 1 0>; 22 #address-cells = <1>; 23 #size-cells = <0>; [all …]
|
/Zephyr-latest/drivers/stepper/ti/ |
D | drv8424.c | 2 * SPDX-FileCopyrightText: Copyright (c) 2024 Navimatix GmbH 3 * SPDX-License-Identifier: Apache-2.0 9 #include <zephyr/drivers/stepper.h> 10 #include <zephyr/drivers/gpio.h> 11 #include <zephyr/drivers/stepper/stepper_drv8424.h> 18 * @brief DRV8424 stepper driver configuration data. 21 * needed by a given DRV8424 stepper driver. 40 * @brief DRV8424 stepper driver data. 42 * This structure contains mutable data used by a DRV8424 stepper driver. 61 LOG_ERR("%s: Failed to reset micro-step pin (error: %d)", dev->name, ret); in drv8424_set_microstep_pin() [all …]
|
/Zephyr-latest/tests/drivers/build_all/stepper/ |
D | gpio.dtsi | 3 * SPDX-License-Identifier: Apache-2.0 7 compatible = "zephyr,gpio-stepper"; 9 micro-step-res = <1>; 19 micro-step-res = <1>; 20 msx-gpios = <&test_gpio 0 0>, 22 en-gpios = <&test_gpio 0 0>; 23 step-gpios = <&test_gpio 0 0>; 24 dir-gpios = <&test_gpio 0 0>; 32 dir-gpios = <&test_gpio 0 0>; 33 step-gpios = <&test_gpio 0 0>; [all …]
|
/Zephyr-latest/drivers/stepper/adi_tmc/ |
D | adi_tmc22xx_stepper_controller.c | 2 * SPDX-FileCopyrightText: Copyright (c) 2024 Fabian Blatz <fabianblatz@gmail.com> 3 * SPDX-License-Identifier: Apache-2.0 30 const struct tmc22xx_config *config = dev->config; in tmc22xx_stepper_enable() 32 LOG_DBG("Stepper motor controller %s %s", dev->name, enable ? "enabled" : "disabled"); in tmc22xx_stepper_enable() 34 return gpio_pin_set_dt(&config->enable_pin, 1); in tmc22xx_stepper_enable() 36 return gpio_pin_set_dt(&config->enable_pin, 0); in tmc22xx_stepper_enable() 43 struct tmc22xx_data *data = dev->data; in tmc22xx_stepper_set_micro_step_res() 44 const struct tmc22xx_config *config = dev->config; in tmc22xx_stepper_set_micro_step_res() 47 if (!config->msx_pins) { in tmc22xx_stepper_set_micro_step_res() 49 return -ENODEV; in tmc22xx_stepper_set_micro_step_res() [all …]
|
/Zephyr-latest/tests/drivers/stepper/drv8424/emul/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 7 #include <zephyr/drivers/gpio.h> 13 #include <zephyr/drivers/stepper.h> 14 #include <zephyr/drivers/gpio/gpio_emul.h> 36 (void)stepper_set_reference_position(fixture->dev, 0); in drv8424_emul_before() 37 (void)stepper_set_micro_step_res(fixture->dev, 1); in drv8424_emul_before() 43 (void)stepper_run(fixture->dev, STEPPER_DIRECTION_POSITIVE, 0); in drv8424_emul_after() 49 (void)stepper_enable(fixture->dev, true); in ZTEST_F() 67 (void)stepper_enable(fixture->dev, true); in ZTEST_F() 68 (void)stepper_enable(fixture->dev, false); in ZTEST_F()
|
/Zephyr-latest/drivers/ |
D | CMakeLists.txt | 1 # SPDX-License-Identifier: Apache-2.0 3 # FIXME: SHADOW_VARS: Remove this once we have enabled -Wshadow globally. 6 add_definitions(-D__ZEPHYR_SUPERVISOR__) 8 # zephyr-keep-sorted-start 46 add_subdirectory_ifdef(CONFIG_GPIO gpio) 87 add_subdirectory_ifdef(CONFIG_STEPPER stepper) 97 # zephyr-keep-sorted-stop
|
D | Kconfig | 4 # SPDX-License-Identifier: Apache-2.0 8 # zephyr-keep-sorted-start 39 source "drivers/gpio/Kconfig" 85 source "drivers/stepper/Kconfig" 96 # zephyr-keep-sorted-stop
|
/Zephyr-latest/doc/releases/ |
D | release-notes-4.0.rst | 15 is now the standard way to provide device-specific protection to data at rest. (:github:`76222`) 18 :ref:`ZMS <zms_api>` is a new key-value storage subsystem compatible with all non-volatile storage 25 runtime configuration through vendor specific APIs. Initially the :dtcompatible:`nordic,nrf-comp`, 26 :dtcompatible:`nordic,nrf-lpcomp` and :dtcompatible:`nxp,kinetis-acmp` are supported. 28 * **Stepper Motors**: 29 It is now possible to interact with stepper motors using a standard API thanks to the new 30 :ref:`stepper<stepper_api>` device driver subsystem, which also comes with shell support. 31 Initially implemented drivers include a simple :dtcompatible:`zephyr,gpio-steppers` and a complex 32 sensor-less stall-detection capable with integrated ramp-controller :dtcompatible:`adi,tmc5041`. 50 directory for :zephyr:code-sample-category:`code samples <samples>`. [all …]
|
D | migration-guide-4.1.rst | 25 perform a full erase, pass the ``--erase`` option when executing ``west flash``. 35 compiler option ``-fstack-protector-all``. Users who wish to use this option must now enable 52 array property ``input-codes``. 54 If the devicetree property ``int-gpios`` is present, interrupt mode is used 57 the devicetree property ``poll-interval-ms``. 84 * The newly-added Kconfig option :kconfig:option:`CONFIG_MBEDTLS_PSA_KEY_SLOT_COUNT` 92 Trusted Firmware-M 107 The :c:macro:`DEVICE_API()` macro should be used by out-of-tree driver implementations for 116 * Renamed the ``compatible`` from ``nxp,kinetis-adc12`` to :dtcompatible:`nxp,adc12`. 125 ``mipi-mode`` property in devicetree should now use a string property of [all …]
|