File tree Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 28
28
29
29
leds: leds {
30
30
compatible ="gpio-leds";
31
+
31
32
blue_led_1: led_0 {
32
33
gpios = <&gpiob 1 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
33
34
};
35
+
34
36
green_led_1: led_1 {
35
37
gpios = <&gpiob 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
36
38
};
39
+
37
40
red_led_1: led_2 {
38
41
gpios = <&gpiob 2 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
39
42
};
42
45
pwmleds: pwmleds {
43
46
compatible = "pwm-leds";
44
47
status = "okay";
48
+
45
49
pwm_red_led_1: pwm_led_1 {
46
50
pwms = <&pwm2 3 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
47
51
};
48
52
};
49
53
50
54
gpio_keys {
51
55
compatible = "gpio-keys";
56
+
52
57
user_button_1: button_0 {
53
58
label = "SW1";
54
59
gpios = <&gpioa 0 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
55
60
zephyr,code = <INPUT_KEY_0>;
56
61
};
62
+
57
63
user_button_2: button_1 {
58
64
label = "SW2";
59
65
gpios = <&gpiob 5 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
60
66
zephyr,code = <INPUT_KEY_1>;
61
67
};
68
+
62
69
user_button_3: button_2 {
63
70
label = "SW3";
64
71
gpios = <&gpiob 14 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
165
172
compatible = "fixed-partitions";
166
173
#address-cells = <1>;
167
174
#size-cells = <1>;
175
+
168
176
/* Set 8KB of storage at the end of 192KB flash */
169
177
storage_partition: partition@2e000 {
170
178
label = "storage";
Original file line number Diff line number Diff line change 28
28
29
29
leds: leds {
30
30
compatible ="gpio-leds";
31
+
31
32
blue_led_1: led_0 {
32
33
gpios = <&gpiob 0 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
33
34
};
35
+
34
36
green_led_1: led_1 {
35
37
gpios = <&gpiob 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
36
38
};
39
+
37
40
red_led_1: led_2 {
38
41
gpios = <&gpiob 2 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
39
42
};
40
43
};
41
44
42
45
pwmleds: pwmleds {
43
46
compatible = "pwm-leds";
47
+
44
48
pwm_red_led_1: pwm_red_led_1 {
45
49
pwms = <&pwm1 3 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
46
50
};
47
51
};
48
52
49
53
gpio_keys {
50
54
compatible = "gpio-keys";
55
+
51
56
user_button_1: button_0 {
52
57
label = "SW1";
53
58
gpios = <&gpioa 0 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
54
59
zephyr,code = <INPUT_KEY_0>;
55
60
};
61
+
56
62
user_button_2: button_1 {
57
63
label = "SW2";
58
64
gpios = <&gpiob 5 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
59
65
zephyr,code = <INPUT_KEY_1>;
60
66
};
67
+
61
68
user_button_3: button_2 {
62
69
label = "SW3";
63
70
gpios = <&gpiob 9 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
162
169
compatible = "fixed-partitions";
163
170
#address-cells = <1>;
164
171
#size-cells = <1>;
172
+
165
173
/* Set aside 16KB of storage at the end of 256KB flash */
166
174
storage_partition: partition@3c000 {
167
175
label = "storage";
Original file line number Diff line number Diff line change 28
28
29
29
leds: leds {
30
30
compatible ="gpio-leds";
31
+
31
32
blue_led_1: led_0 {
32
33
gpios = <&gpiob 1 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
33
34
};
35
+
34
36
green_led_1: led_1 {
35
37
gpios = <&gpiob 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
36
38
};
39
+
37
40
red_led_1: led_2 {
38
41
gpios = <&gpiob 2 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
39
42
};
42
45
pwmleds: pwmleds {
43
46
compatible = "pwm-leds";
44
47
status = "okay";
48
+
45
49
pwm_red_led_1: pwm_led_1 {
46
50
pwms = <&pwm2 3 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
47
51
};
48
52
};
49
53
50
54
gpio_keys {
51
55
compatible = "gpio-keys";
56
+
52
57
user_button_1: button_0 {
53
58
label = "SW1";
54
59
gpios = <&gpioa 0 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
55
60
zephyr,code = <INPUT_KEY_0>;
56
61
};
62
+
57
63
user_button_2: button_1 {
58
64
label = "SW2";
59
65
gpios = <&gpiob 5 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
60
66
zephyr,code = <INPUT_KEY_1>;
61
67
};
68
+
62
69
user_button_3: button_2 {
63
70
label = "SW3";
64
71
gpios = <&gpiob 14 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
164
171
compatible = "fixed-partitions";
165
172
#address-cells = <1>;
166
173
#size-cells = <1>;
174
+
167
175
/* Set 32KB of storage at the end of 512KB flash */
168
176
storage_partition: partition@78000 {
169
177
label = "storage";
You can’t perform that action at this time.
0 commit comments