File tree Expand file tree Collapse file tree 7 files changed +36
-1
lines changed Expand file tree Collapse file tree 7 files changed +36
-1
lines changed Original file line number Diff line number Diff line change 22
22
23
23
leds: leds {
24
24
compatible = "gpio-leds";
25
+
25
26
green_led_3: led_3 {
26
27
gpios = <&gpioc 6 GPIO_ACTIVE_HIGH>;
27
28
label = "User LD3";
Original file line number Diff line number Diff line change 25
25
26
26
leds: leds {
27
27
compatible = "gpio-leds";
28
+
28
29
green_led_1: led_4 {
29
30
gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
30
31
label = "User LD4";
33
34
34
35
gpio_keys {
35
36
compatible = "gpio-keys";
37
+
36
38
user_button: button {
37
39
label = "User";
38
40
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>;
101
103
&timers3 {
102
104
st,prescaler = <10000>;
103
105
status = "okay";
106
+
104
107
pwm3: pwm {
105
108
status = "okay";
106
109
pinctrl-0 = <&tim3_ch1_pa6>;
Original file line number Diff line number Diff line change 23
23
zephyr,flash = &flash0;
24
24
};
25
25
26
-
27
26
leds: leds {
28
27
compatible = "gpio-leds";
28
+
29
29
green_led_1: led_4 {
30
30
gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
31
31
label = "User LD4";
34
34
35
35
gpio_keys {
36
36
compatible = "gpio-keys";
37
+
37
38
user_button: button {
38
39
label = "User";
39
40
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>;
107
108
&timers3 {
108
109
st,prescaler = <10000>;
109
110
status = "okay";
111
+
110
112
pwm3: pwm {
111
113
status = "okay";
112
114
pinctrl-0 = <&tim3_ch1_pa6>;
Original file line number Diff line number Diff line change 27
27
28
28
leds: leds {
29
29
compatible = "gpio-leds";
30
+
30
31
green_led_1: led_4 {
31
32
gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
32
33
label = "User LD4";
35
36
36
37
gpio_keys {
37
38
compatible = "gpio-keys";
39
+
38
40
user_button: button {
39
41
label = "User";
40
42
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>;
@@ -115,6 +117,7 @@ zephyr_udc0: &usb {
115
117
&timers3 {
116
118
st,prescaler = <10000>;
117
119
status = "okay";
120
+
118
121
pwm3: pwm {
119
122
status = "okay";
120
123
pinctrl-0 = <&tim3_ch1_pb4>;
@@ -125,6 +128,7 @@ zephyr_udc0: &usb {
125
128
&timers15 {
126
129
st,prescaler = <10000>;
127
130
status = "okay";
131
+
128
132
pwm15: pwm {
129
133
status = "okay";
130
134
pinctrl-0 = <&tim15_ch1_pb14>;
@@ -205,14 +209,17 @@ zephyr_udc0: &usb {
205
209
reg = <0x00000000 DT_SIZE_K(48)>;
206
210
read-only;
207
211
};
212
+
208
213
slot0_partition: partition@C000 {
209
214
label = "image-0";
210
215
reg = <0x0000C000 DT_SIZE_K(200)>;
211
216
};
217
+
212
218
slot1_partition: partition@3E000 {
213
219
label = "image-1";
214
220
reg = <0x0003E000 DT_SIZE_K(200)>;
215
221
};
222
+
216
223
/* final 64KiB reserved for app storage partition */
217
224
storage_partition: partition@70000 {
218
225
label = "storage";
Original file line number Diff line number Diff line change 28
28
29
29
leds {
30
30
compatible = "gpio-leds";
31
+
31
32
green_led_1: led_2 {
32
33
gpios = <&gpioa 12 GPIO_ACTIVE_LOW>;
33
34
label = "User LD2";
36
37
37
38
gpio_keys {
38
39
compatible = "gpio-keys";
40
+
39
41
user_button: button {
40
42
label = "User";
41
43
gpios = <&gpioa 0 GPIO_ACTIVE_LOW>;
Original file line number Diff line number Diff line change 23
23
24
24
leds {
25
25
compatible = "gpio-leds";
26
+
26
27
red_led_4: led4 {
27
28
gpios = <&gpiod 9 GPIO_ACTIVE_HIGH>;
28
29
label = "TO_REC";
29
30
};
31
+
30
32
red_led_5: led5 {
31
33
gpios = <&gpiod 8 GPIO_ACTIVE_HIGH>;
32
34
label = "TO_PLUG";
33
35
};
36
+
34
37
green_led_6: led6 {
35
38
gpios = <&gpiod 5 GPIO_ACTIVE_HIGH>;
36
39
label = "SINK_SPY";
37
40
};
41
+
38
42
green_led_7: led7 {
39
43
gpios = <&gpioc 12 GPIO_ACTIVE_HIGH>;
40
44
label = "SOURCE";
43
47
44
48
gpio_keys {
45
49
compatible = "gpio-keys";
50
+
46
51
joy_sel: button0 {
47
52
label = "JOY_SEL";
48
53
gpios = <&gpioc 0 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
49
54
zephyr,code = <INPUT_KEY_ENTER>;
50
55
};
56
+
51
57
joy_left: button1 {
52
58
label = "JOY_LEFT";
53
59
gpios = <&gpioc 1 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
54
60
zephyr,code = <INPUT_KEY_LEFT>;
55
61
};
62
+
56
63
joy_down: button2 {
57
64
label = "JOY_DOWN";
58
65
gpios = <&gpioc 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
59
66
zephyr,code = <INPUT_KEY_DOWN>;
60
67
};
68
+
61
69
joy_right: button3 {
62
70
label = "JOY_RIGHT";
63
71
gpios = <&gpioc 3 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
64
72
zephyr,code = <INPUT_KEY_RIGHT>;
65
73
};
74
+
66
75
joy_up: button4 {
67
76
label = "JOY_UP";
68
77
gpios = <&gpioc 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
72
81
73
82
cc_config {
74
83
compatible = "gpio-leds";
84
+
75
85
encc1 {
76
86
gpios = <&gpiob 10 GPIO_ACTIVE_HIGH>;
77
87
label = "ENCC1";
Original file line number Diff line number Diff line change 22
22
23
23
leds {
24
24
compatible = "gpio-leds";
25
+
25
26
led_1: led1 {
26
27
gpios = <&gpiod 5 GPIO_ACTIVE_HIGH>;
27
28
label = "LED1";
28
29
};
30
+
29
31
led_2: led2 {
30
32
gpios = <&gpiod 6 GPIO_ACTIVE_HIGH>;
31
33
label = "LED2";
32
34
};
35
+
33
36
led_3: led3 {
34
37
gpios = <&gpiod 8 GPIO_ACTIVE_HIGH>;
35
38
label = "LED3";
36
39
};
40
+
37
41
led_4: led4 {
38
42
gpios = <&gpiod 9 GPIO_ACTIVE_HIGH>;
39
43
label = "LED4";
42
46
43
47
gpio_keys {
44
48
compatible = "gpio-keys";
49
+
45
50
joy_sel: button0 {
46
51
label = "JOY_SEL";
47
52
gpios = <&gpioa 0 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
48
53
zephyr,code = <INPUT_KEY_ENTER>;
49
54
};
55
+
50
56
joy_left: button1 {
51
57
label = "JOY_LEFT";
52
58
gpios = <&gpioc 8 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
53
59
zephyr,code = <INPUT_KEY_LEFT>;
54
60
};
61
+
55
62
joy_down: button2 {
56
63
label = "JOY_DOWN";
57
64
gpios = <&gpioc 3 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
58
65
zephyr,code = <INPUT_KEY_DOWN>;
59
66
};
67
+
60
68
joy_right: button3 {
61
69
label = "JOY_RIGHT";
62
70
gpios = <&gpioc 7 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
63
71
zephyr,code = <INPUT_KEY_RIGHT>;
64
72
};
73
+
65
74
joy_up: button4 {
66
75
label = "JOY_UP";
67
76
gpios = <&gpioc 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
121
130
122
131
&timers15 {
123
132
status = "okay";
133
+
124
134
pwm15: pwm {
125
135
status = "okay";
126
136
pinctrl-0 = <&tim15_ch1_pc1>;
You can’t perform that action at this time.
0 commit comments