File tree Expand file tree Collapse file tree 3 files changed +18
-3
lines changed Expand file tree Collapse file tree 3 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 26
26
27
27
leds: leds {
28
28
compatible = "gpio-leds";
29
+
29
30
blue_led_1: led_0 {
30
31
gpios = <&gpiob 5 GPIO_ACTIVE_HIGH>;
31
32
label = "User LED1";
32
33
};
34
+
33
35
green_led_2: led_1 {
34
36
gpios = <&gpiob 0 GPIO_ACTIVE_HIGH>;
35
37
label = "User LED2";
36
38
};
39
+
37
40
red_led_3: led_2 {
38
41
gpios = <&gpiob 1 GPIO_ACTIVE_HIGH>;
39
42
label = "User LED3";
42
45
43
46
gpio_keys {
44
47
compatible = "gpio-keys";
48
+
45
49
user_button_1: button_0 {
46
50
label = "SW1";
47
51
gpios = <&gpioc 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
48
52
zephyr,code = <INPUT_KEY_0>;
49
53
};
54
+
50
55
user_button_2: button_1 {
51
56
label = "SW2";
52
57
gpios = <&gpiod 0 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
53
58
zephyr,code = <INPUT_KEY_1>;
54
59
};
60
+
55
61
user_button_3: button_2 {
56
62
label = "SW3";
57
63
gpios = <&gpiod 1 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
162
168
163
169
&timers2 {
164
170
status = "okay";
171
+
165
172
pwm2: pwm {
166
173
status = "okay";
167
174
pinctrl-0 = <&tim2_ch1_pa15>;
@@ -227,23 +234,26 @@ zephyr_udc0: &usb {
227
234
label = "mcuboot";
228
235
reg = <0x00000000 DT_SIZE_K(48)>;
229
236
};
237
+
230
238
slot0_partition: partition@c000 {
231
239
label = "image-0";
232
240
reg = <0x0000c000 DT_SIZE_K(400)>;
233
241
};
242
+
234
243
slot1_partition: partition@70000 {
235
244
label = "image-1";
236
245
reg = <0x00070000 DT_SIZE_K(400)>;
237
246
};
247
+
238
248
scratch_partition: partition@d4000 {
239
249
label = "image-scratch";
240
250
reg = <0x000d4000 DT_SIZE_K(16)>;
241
251
};
252
+
242
253
storage_partition: partition@d8000 {
243
254
label = "storage";
244
255
reg = <0x000d8000 DT_SIZE_K(8)>;
245
256
};
246
-
247
257
};
248
258
};
249
259
Original file line number Diff line number Diff line change 37
37
38
38
buttons {
39
39
compatible = "gpio-keys";
40
+
40
41
button0: button_0 {
41
42
gpios = <&gpioc 12 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
42
43
label = "Push button 1";
43
44
zephyr,code = <INPUT_KEY_0>;
44
45
};
46
+
45
47
button1: button_1 {
46
48
gpios = <&gpioc 13 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
47
49
label = "Push button 2";
@@ -147,23 +149,26 @@ zephyr_udc0: &usb {
147
149
label = "mcuboot";
148
150
reg = <0x00000000 DT_SIZE_K(48)>;
149
151
};
152
+
150
153
slot0_partition: partition@c000 {
151
154
label = "image-0";
152
155
reg = <0x0000c000 DT_SIZE_K(400)>;
153
156
};
157
+
154
158
slot1_partition: partition@70000 {
155
159
label = "image-1";
156
160
reg = <0x00070000 DT_SIZE_K(400)>;
157
161
};
162
+
158
163
scratch_partition: partition@d4000 {
159
164
label = "image-scratch";
160
165
reg = <0x000d4000 DT_SIZE_K(16)>;
161
166
};
167
+
162
168
storage_partition: partition@d8000 {
163
169
label = "storage";
164
170
reg = <0x000d8000 DT_SIZE_K(8)>;
165
171
};
166
-
167
172
};
168
173
};
169
174
Original file line number Diff line number Diff line change @@ -97,10 +97,10 @@ zephyr_udc0: &usb {
97
97
label = "mcuboot";
98
98
reg = <0x00000000 DT_SIZE_K(48)>;
99
99
};
100
+
100
101
slot0_partition: partition@c000 {
101
102
label = "image-0";
102
103
reg = <0x0000c000 DT_SIZE_K(400)>;
103
104
};
104
-
105
105
};
106
106
};
You can’t perform that action at this time.
0 commit comments