drivers: stepper: change gpio-stepper dt-compatible
This commit changes compatible of gpio-stepper in driver Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
This commit is contained in:
parent
df3b76b55a
commit
843625a29b
13 changed files with 73 additions and 104 deletions
|
@ -1,10 +1,8 @@
|
|||
# Copyright (c) 2024 Jilay Sandeep Pandya
|
||||
# SPDX-FileCopyrightText: Copyright (c) 2024 Jilay Sandeep Pandya
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
cmake_minimum_required(VERSION 3.20.0)
|
||||
|
||||
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||
project(stepper_api)
|
||||
target_sources(app PRIVATE
|
||||
src/main.c
|
||||
)
|
||||
|
||||
target_sources(app PRIVATE src/main.c)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright (c) 2024 Jilay Sandeep Pandya
|
||||
# SPDX-FileCopyrightText: Copyright (c) 2024 Jilay Sandeep Pandya
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
CONFIG_GPIO=y
|
||||
|
|
|
@ -4,15 +4,13 @@
|
|||
*/
|
||||
|
||||
/ {
|
||||
uln2003_motor: uln2003_1 {
|
||||
compatible = "zephyr,gpio-steppers";
|
||||
motor_1: motor_1 {
|
||||
compatible = "zephyr,gpio-stepper";
|
||||
status = "okay";
|
||||
motor_1: motor_1 {
|
||||
micro-step-res = <1>;
|
||||
gpios = <&gpioa 9 GPIO_ACTIVE_HIGH>,
|
||||
<&gpioc 7 GPIO_ACTIVE_HIGH>,
|
||||
<&gpiob 0 GPIO_ACTIVE_HIGH>,
|
||||
<&gpioa 7 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
micro-step-res = <1>;
|
||||
gpios = <&gpioa 9 GPIO_ACTIVE_HIGH>,
|
||||
<&gpioc 7 GPIO_ACTIVE_HIGH>,
|
||||
<&gpiob 0 GPIO_ACTIVE_HIGH>,
|
||||
<&gpioa 7 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright (c) 2024 Jilay Sandeep Pandya
|
||||
# SPDX-FileCopyrightText: Copyright (c) 2024 Jilay Sandeep Pandya
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
CONFIG_GPIO=y
|
||||
|
|
|
@ -19,16 +19,13 @@
|
|||
};
|
||||
|
||||
/ {
|
||||
test_uln2003_motor_cluster: uln2003_motor_cluster {
|
||||
compatible = "zephyr,gpio-steppers";
|
||||
motor_1: motor_1 {
|
||||
compatible = "zephyr,gpio-stepper";
|
||||
status = "okay";
|
||||
|
||||
motor_1: motor_1 {
|
||||
micro-step-res = <1>;
|
||||
gpios = <&test_gpio 0 0>,
|
||||
<&test_gpio 0 0>,
|
||||
<&test_gpio 0 0>,
|
||||
<&test_gpio 0 0>;
|
||||
};
|
||||
micro-step-res = <1>;
|
||||
gpios = <&test_gpio 0 0>,
|
||||
<&test_gpio 0 0>,
|
||||
<&test_gpio 0 0>,
|
||||
<&test_gpio 0 0>;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright (c) 2024 Jilay Sandeep Pandya
|
||||
# SPDX-FileCopyrightText: Copyright (c) 2024 Jilay Sandeep Pandya
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
CONFIG_ZTEST=y
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright (c) 2024 Jilay Sandeep Pandya
|
||||
# SPDX-FileCopyrightText: Copyright (c) 2024 Jilay Sandeep Pandya
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
tests:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue