Skip to content

Commit 1093619

Browse files
Update device tree overlay for stepper control and adjust project configurations
1 parent 4d26f3e commit 1093619

4 files changed

Lines changed: 13 additions & 12 deletions

File tree

app/boards/qemu_cortex_m0.overlay

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,24 @@
33
*
44
* Devicetree overlay enabling the Moonlite focuser firmware on the
55
* qemu_cortex_m0 board. The design uses the generic GPIO H-bridge stepper
6-
* controller so the application can run entirely in the simulator.
6+
* controller for motion ("stepper" alias) plus the Zephyr fake stepper
7+
* driver ("stepper-drv" alias) so the application can exercise the driver
8+
* enable path under simulation.
79
*/
810

911
/ {
1012
aliases {
1113
stepper = &focuser_stepper;
12-
stepper-drv = &focuser_stepper;
14+
stepper-drv = &focuser_stepper_drv;
15+
};
16+
17+
focuser_stepper_drv: focuser_stepper_drv {
18+
compatible = "zephyr,fake-stepper-driver";
19+
status = "okay";
1320
};
1421

1522
focuser_stepper: focuser_stepper {
16-
compatible = "zephyr,h-bridge-stepper";
17-
/* Four phase outputs feeding a simulated H-bridge. */
18-
gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>,
19-
<&gpio0 2 GPIO_ACTIVE_HIGH>,
20-
<&gpio0 3 GPIO_ACTIVE_HIGH>,
21-
<&gpio0 4 GPIO_ACTIVE_HIGH>;
22-
en-gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
23-
micro-step-res = <1>;
23+
compatible = "zephyr,fake-stepper-controller";
2424
status = "okay";
2525
};
2626

app/prj.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ CONFIG_LOG_BACKEND_UART=y
2424
# Set the application log level.
2525
CONFIG_APP_LOG_LEVEL_INF=y
2626

27+
CONFIG_COUNTER=y
28+
2729
# Enable Zephyr's generic stepper controller subsystem and the TMC2209 backend.
2830
CONFIG_STEPPER=y
2931
CONFIG_STEPPER_ADI_TMC2209=y

app/sample.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ common:
88
build_only: true
99
integration_platforms:
1010
- esp32s3_devkitc/esp32s3/procpu
11-
- qemu_cortex_m0
1211
tests:
1312
app.default: {}
1413
app.debug:

west.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ manifest:
1515

1616
projects:
1717
- name: zephyr
18-
remote: jilaypandya
18+
remote: andre-stefanov
1919
revision: feature/introduce-step-dir-functions
2020
import:
2121
# By using name-allowlist we can clone only the modules that are

0 commit comments

Comments
 (0)