File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ CONFIG_LOG_BACKEND_UART=y
2424# Set the application log level.
2525CONFIG_APP_LOG_LEVEL_INF=y
2626
27+ CONFIG_COUNTER=y
28+
2729# Enable Zephyr's generic stepper controller subsystem and the TMC2209 backend.
2830CONFIG_STEPPER=y
2931CONFIG_STEPPER_ADI_TMC2209=y
Original file line number Diff line number Diff line change 88 build_only : true
99 integration_platforms :
1010 - esp32s3_devkitc/esp32s3/procpu
11- - qemu_cortex_m0
1211tests :
1312 app.default : {}
1413 app.debug :
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments