File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 8
8
/dts-v1/;
9
9
10
10
#include <ti/cc2340r5.dtsi>
11
+ #include "boosterpack_connector.dtsi"
12
+ #include <zephyr/dt-bindings/gpio/gpio.h>
13
+ #include <zephyr/dt-bindings/input/input-event-codes.h>
11
14
12
15
/ {
13
16
model = "LP_EM_CC2340R5";
18
21
zephyr,flash = &flash0;
19
22
zephyr,code-partition = &slot0_partition;
20
23
};
24
+
25
+ aliases {
26
+ led0 = &led0;
27
+ led1 = &led1;
28
+ sw0 = &btn0;
29
+ sw1 = &btn1;
30
+ };
31
+
32
+ leds {
33
+ compatible = "gpio-leds";
34
+
35
+ led0: led_0 {
36
+ gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
37
+ label = "Green LED";
38
+ };
39
+
40
+ led1: led_1 {
41
+ gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
42
+ label = "Red LED";
43
+ };
44
+ };
45
+
46
+ keys {
47
+ compatible = "gpio-keys";
48
+
49
+ btn0: btn_0 {
50
+ gpios = <&gpio0 10 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
51
+ label = "Button 1";
52
+ zephyr,code = <INPUT_KEY_0>;
53
+ };
54
+
55
+ btn1: btn_1 {
56
+ gpios = <&gpio0 9 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
57
+ label = "Button 2";
58
+ zephyr,code = <INPUT_KEY_1>;
59
+ };
60
+ };
21
61
};
22
62
23
63
&gpio0 {
You can’t perform that action at this time.
0 commit comments