File tree Expand file tree Collapse file tree 5 files changed +60
-0
lines changed Expand file tree Collapse file tree 5 files changed +60
-0
lines changed Original file line number Diff line number Diff line change @@ -23,3 +23,16 @@ test_tmc2209: tmc2209_motor {
23
23
step-gpios = <&test_gpio 0 0>;
24
24
dir-gpios = <&test_gpio 0 0>;
25
25
};
26
+
27
+ drv8424: drv8424 {
28
+ status = "okay";
29
+ compatible = "ti,drv8424";
30
+
31
+ dir-gpios = <&test_gpio 0 0>;
32
+ step-gpios = <&test_gpio 0 0>;
33
+ sleep-gpios = <&test_gpio 0 0>;
34
+ en-gpios = <&test_gpio 0 0>;
35
+ m0-gpios = <&test_gpio 0 0>;
36
+ m1-gpios = <&test_gpio 0 0>;
37
+ counter = <&counter0>;
38
+ };
Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2024 Navimatix GmbH
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ CONFIG_GPIO=y
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2024 Navimatix GmbH
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ */
5
+
6
+ #include <zephyr/dt-bindings/gpio/gpio.h>
7
+
8
+ / {
9
+ zephyr,user {
10
+ stepper-motors = <&motor_1 0>;
11
+ };
12
+ };
13
+
14
+ / {
15
+
16
+ motor_1: motor_1 {
17
+ status = "okay";
18
+ compatible = "ti,drv8424";
19
+
20
+
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>;
27
+ counter = <&counter2>;
28
+
29
+ #address-cells = <1>;
30
+ #size-cells = <0>;
31
+ #stepper-motor-cells = <0>;
32
+
33
+ };
34
+ };
35
+
36
+ &timers2 {
37
+ status = "okay";
38
+ counter2: counter {
39
+ status = "okay";
40
+ };
41
+ };
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ static void *stepper_setup(void)
50
50
& stepper_signal );
51
51
user_data_received = NULL ;
52
52
zassert_not_null (fixture .dev );
53
+ (void )stepper_enable (fixture .dev , true);
53
54
return & fixture ;
54
55
}
55
56
Original file line number Diff line number Diff line change 9
9
- api
10
10
platform_allow :
11
11
- nucleo_g071rb
12
+ - nucleo_f767zi
12
13
- qemu_x86_64
You can’t perform that action at this time.
0 commit comments