-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers: stepper: gpio: simplify driver
- Singularize instantiation of gpio-stepper driver - Add missing SPDX headers - Document set_event_callback function in steppers.rst - Use the correct dtcompatible in release notes - Rename tests from stepper_api to gpio_steppers Signed-off-by: Jilay Pandya <[email protected]>
- Loading branch information
1 parent
cdf2f9a
commit 7490f6c
Showing
16 changed files
with
100 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 4 additions & 6 deletions
10
...rivers/stepper/stepper_api/CMakeLists.txt → ...ivers/stepper/gpio_stepper/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
) | ||
project(gpio_stepper) | ||
|
||
target_sources(app PRIVATE src/main.c) |
2 changes: 1 addition & 1 deletion
2
...per/stepper_api/boards/nucleo_g071rb.conf → ...er/gpio_stepper/boards/nucleo_g071rb.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
tests/drivers/stepper/gpio_stepper/boards/nucleo_g071rb.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
* SPDX-FileCopyrightText: Copyright (c) 2024 Jilay Sandeep Pandya | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/ { | ||
motor_1: motor_1 { | ||
compatible = "zephyr,gpio-stepper"; | ||
status = "okay"; | ||
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>; | ||
}; | ||
}; |
2 changes: 1 addition & 1 deletion
2
...epper/stepper_api/boards/qemu_x86_64.conf → ...pper/gpio_stepper/boards/qemu_x86_64.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/drivers/stepper/stepper_api/prj.conf → tests/drivers/stepper/gpio_stepper/prj.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...drivers/stepper/stepper_api/testcase.yaml → ...rivers/stepper/gpio_stepper/testcase.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 0 additions & 18 deletions
18
tests/drivers/stepper/stepper_api/boards/nucleo_g071rb.overlay
This file was deleted.
Oops, something went wrong.