Skip to content

Commit 8486dd6

Browse files
committed
x
1 parent 5d36380 commit 8486dd6

File tree

8 files changed

+5
-180
lines changed

8 files changed

+5
-180
lines changed

cores/arduino/Arduino.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,12 @@ enum digitalPins {
5555
#define ZARD_CONNECTOR arduino_header
5656
#elif DT_NODE_EXISTS(DT_NODELABEL(arduino_mkr_header))
5757
#define ZARD_CONNECTOR arduino_mkr_header
58-
#elif DT_NODE_EXISTS(DT_NODELABEL(arduino__header))
58+
#elif DT_NODE_EXISTS(DT_NODELABEL(arduino_nano_header))
5959
#define ZARD_CONNECTOR arduino_nano_header
60+
#elif DT_NODE_EXISTS(DT_NODELABEL(pico_header))
61+
#define ZARD_CONNECTOR pico_header
62+
#elif DT_NODE_EXISTS(DT_NODELABEL(boosterpack_header))
63+
#define ZARD_CONNECTOR boosterpack_header
6064
#endif
6165

6266
#ifdef ZARD_CONNECTOR

variants/arduino_nano_33_ble_nrf52840/arduino_nano_33_ble_nrf52840.overlay

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,5 @@
11
/ {
22
zephyr,user {
3-
digital-pin-gpios = <&arduino_nano_header 0 0>,
4-
<&arduino_nano_header 1 0>,
5-
<&arduino_nano_header 2 0>,
6-
<&arduino_nano_header 3 0>,
7-
<&arduino_nano_header 4 0>,
8-
<&arduino_nano_header 5 0>,
9-
<&arduino_nano_header 6 0>,
10-
<&arduino_nano_header 7 0>,
11-
<&arduino_nano_header 8 0>,
12-
<&arduino_nano_header 9 0>,
13-
<&arduino_nano_header 10 0>,
14-
<&arduino_nano_header 11 0>,
15-
<&arduino_nano_header 12 0>,
16-
<&arduino_nano_header 13 0>,
17-
<&arduino_nano_header 14 0>, /* D14 / A0 */
18-
<&arduino_nano_header 15 0>,
19-
<&arduino_nano_header 16 0>,
20-
<&arduino_nano_header 17 0>,
21-
<&arduino_nano_header 18 0>, /* D18 / A4 / I2C-SDA */
22-
<&arduino_nano_header 19 0>, /* D19 / A5 / I2C-SCL */
23-
<&arduino_nano_header 20 0>,
24-
<&arduino_nano_header 21 0>;
25-
263
pwm-pin-gpios = <&arduino_nano_header 3 0>,
274
<&arduino_nano_header 5 0>,
285
<&arduino_nano_header 6 0>,

variants/arduino_nano_33_ble_nrf52840_sense/arduino_nano_33_ble_nrf52840_sense.overlay

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,5 @@
11
/ {
22
zephyr,user {
3-
digital-pin-gpios = <&arduino_nano_header 0 0>,
4-
<&arduino_nano_header 1 0>,
5-
<&arduino_nano_header 2 0>,
6-
<&arduino_nano_header 3 0>,
7-
<&arduino_nano_header 4 0>,
8-
<&arduino_nano_header 5 0>,
9-
<&arduino_nano_header 6 0>,
10-
<&arduino_nano_header 7 0>,
11-
<&arduino_nano_header 8 0>,
12-
<&arduino_nano_header 9 0>,
13-
<&arduino_nano_header 10 0>,
14-
<&arduino_nano_header 11 0>,
15-
<&arduino_nano_header 12 0>,
16-
<&arduino_nano_header 13 0>,
17-
<&arduino_nano_header 14 0>, /* D14 / A0 */
18-
<&arduino_nano_header 15 0>,
19-
<&arduino_nano_header 16 0>,
20-
<&arduino_nano_header 17 0>,
21-
<&arduino_nano_header 18 0>, /* D18 / A4 / I2C-SDA */
22-
<&arduino_nano_header 19 0>, /* D19 / A5 / I2C-SCL */
23-
<&arduino_nano_header 20 0>,
24-
<&arduino_nano_header 21 0>;
25-
263
pwm-pin-gpios = <&arduino_nano_header 3 0>,
274
<&arduino_nano_header 5 0>,
285
<&arduino_nano_header 6 0>,

variants/arduino_nano_33_iot_samd21g18a/arduino_nano_33_iot_samd21g18a.overlay

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,6 @@
22

33
/ {
44
zephyr,user {
5-
digital-pin-gpios = <&arduino_nano_header 0 0>,
6-
<&arduino_nano_header 1 0>,
7-
<&arduino_nano_header 2 0>,
8-
<&arduino_nano_header 3 0>,
9-
<&arduino_nano_header 4 0>,
10-
<&arduino_nano_header 5 0>,
11-
<&arduino_nano_header 6 0>,
12-
<&arduino_nano_header 7 0>,
13-
<&arduino_nano_header 8 0>,
14-
<&arduino_nano_header 9 0>,
15-
<&arduino_nano_header 10 0>,
16-
<&arduino_nano_header 11 0>,
17-
<&arduino_nano_header 12 0>,
18-
<&arduino_nano_header 13 0>,
19-
<&arduino_nano_header 14 0>, /* D14 / A0 */
20-
<&arduino_nano_header 15 0>,
21-
<&arduino_nano_header 16 0>,
22-
<&arduino_nano_header 17 0>,
23-
<&arduino_nano_header 18 0>, /* D18 / A4 / I2C-SDA */
24-
<&arduino_nano_header 19 0>, /* D19 / A5 / I2C-SCL */
25-
<&arduino_nano_header 20 0>,
26-
<&arduino_nano_header 21 0>;
27-
285
pwm-pin-gpios = <&arduino_nano_header 6 0>,
296
<&arduino_nano_header 5 0>,
307
<&arduino_nano_header 17 0>,

variants/cc3220sf_launchxl_cc3220sf/cc3220sf_launchxl_cc3220sf.overlay

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,6 @@
66

77
/ {
88
zephyr,user {
9-
digital-pin-gpios = <&boosterpack_header 4 0>, /* GPIO_12 */
10-
<&boosterpack_header 5 0>, /* GPIO_06 */
11-
<&boosterpack_header 7 0>, /* GPIO_14 */
12-
<&boosterpack_header 9 0>, /* I2C_SCL | YELLOW_LED */
13-
<&boosterpack_header 10 0>, /* I2C_SDA | GREEN_LED */
14-
<&boosterpack_header 11 0>, /* GPIO_22 */
15-
<&boosterpack_header 12 0>, /* GPIO_01 */
16-
<&boosterpack_header 13 0>, /* GPIO_25 */
17-
<&boosterpack_header 14 0>, /* GPIO_15 */
18-
<&boosterpack_header 15 0>, /* GPIO_16 */
19-
<&boosterpack_header 17 0>, /* GPIO_31 */
20-
<&boosterpack_header 18 0>, /* GPIO_17 */
21-
<&boosterpack_header 19 0>, /* GPIO_28 */
22-
<&boosterpack_header 23 0>, /* GPIO_02 | AIN0 */
23-
<&boosterpack_header 24 0>, /* GPIO_05 | AIN3 */
24-
<&boosterpack_header 25 0>, /* GPIO_03 | AIN1 */
25-
<&boosterpack_header 26 0>, /* GPIO_04 | AIN2 */
26-
<&boosterpack_header 27 0>, /* GPIO_08 */
27-
<&boosterpack_header 28 0>, /* GPIO_30 */
28-
<&boosterpack_header 29 0>, /* GPIO_09 | RED_LED | I2S_DOUT*/
29-
<&boosterpack_header 30 0>, /* GPIO_00 */
30-
<&boosterpack_header 31 0>, /* GPIO_24 */
31-
<&boosterpack_header 32 0>; /* GPIO_23 */
329
builtin-led-gpios = <&boosterpack_header 10 0>; /* GREEN_LED */
3310

3411
gpio-ports = <&gpioa0>, <&gpioa1>, <&gpioa2>, <&gpioa3>;

variants/nrf52840dk_nrf52840/nrf52840dk_nrf52840.overlay

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,5 @@
11
/ {
22
zephyr,user {
3-
digital-pin-gpios = <&arduino_header 6 0>, /* Digital */
4-
<&arduino_header 7 0>,
5-
<&arduino_header 8 0>,
6-
<&arduino_header 9 0>,
7-
<&arduino_header 10 0>,
8-
<&arduino_header 11 0>,
9-
<&arduino_header 12 0>,
10-
<&arduino_header 13 0>,
11-
<&arduino_header 14 0>,
12-
<&arduino_header 15 0>,
13-
<&arduino_header 16 0>,
14-
<&arduino_header 17 0>,
15-
<&arduino_header 18 0>,
16-
<&arduino_header 19 0>,
17-
<&arduino_header 20 0>,
18-
<&arduino_header 21 0>,
19-
<&arduino_header 0 0>, /* Analog */
20-
<&arduino_header 1 0>,
21-
<&arduino_header 2 0>,
22-
<&arduino_header 3 0>,
23-
<&arduino_header 4 0>,
24-
<&arduino_header 5 0>,
25-
<&gpio0 13 GPIO_ACTIVE_LOW>;
26-
27-
pwm-pin-gpios = <&gpio0 13 GPIO_ACTIVE_LOW>,
28-
<&arduino_header 9 0>,
29-
<&arduino_header 11 0>,
30-
<&arduino_header 12 0>,
31-
<&arduino_header 15 0>,
32-
<&arduino_header 16 0>,
33-
<&arduino_header 17 0>;
34-
353
adc-pin-gpios = <&arduino_header 0 0>,
364
<&arduino_header 1 0>,
375
<&arduino_header 2 0>,

variants/nrf9160dk_nrf9160/nrf9160dk_nrf9160.overlay

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,5 @@
11
/ {
22
zephyr,user {
3-
digital-pin-gpios =
4-
<&arduino_header 6 0>, /* Digital */
5-
<&arduino_header 7 0>,
6-
<&arduino_header 8 0>,
7-
<&arduino_header 9 0>,
8-
<&arduino_header 10 0>,
9-
<&arduino_header 11 0>,
10-
<&arduino_header 12 0>,
11-
<&arduino_header 13 0>,
12-
<&arduino_header 14 0>,
13-
<&arduino_header 15 0>,
14-
<&arduino_header 16 0>,
15-
<&arduino_header 17 0>,
16-
<&arduino_header 18 0>,
17-
<&arduino_header 19 0>,
18-
<&arduino_header 20 0>,
19-
<&arduino_header 21 0>,
20-
<&arduino_header 0 0>, /* Analog */
21-
<&arduino_header 1 0>,
22-
<&arduino_header 2 0>,
23-
<&arduino_header 3 0>,
24-
<&arduino_header 4 0>,
25-
<&arduino_header 5 0>,
26-
<&gpio0 13 GPIO_ACTIVE_LOW>;
27-
283
pwm-pin-gpios =
294
<&gpio0 13 GPIO_ACTIVE_LOW>,
305
<&arduino_header 9 0>,

variants/rpi_pico_rp2040/rpi_pico_rp2040.overlay

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -8,36 +8,6 @@
88

99
/ {
1010
zephyr,user {
11-
digital-pin-gpios = <&pico_header 0 0>,
12-
<&pico_header 1 0>,
13-
<&pico_header 2 0>,
14-
<&pico_header 3 0>,
15-
<&pico_header 4 0>,
16-
<&pico_header 5 0>,
17-
<&pico_header 6 0>,
18-
<&pico_header 7 0>,
19-
<&pico_header 8 0>,
20-
<&pico_header 9 0>,
21-
<&pico_header 10 0>,
22-
<&pico_header 11 0>,
23-
<&pico_header 12 0>,
24-
<&pico_header 13 0>,
25-
<&pico_header 14 0>,
26-
<&pico_header 15 0>,
27-
<&pico_header 16 0>,
28-
<&pico_header 17 0>,
29-
<&pico_header 18 0>,
30-
<&pico_header 19 0>,
31-
<&pico_header 20 0>,
32-
<&pico_header 21 0>,
33-
<&pico_header 22 0>,
34-
<&gpio0 23 0>,
35-
<&gpio0 24 0>,
36-
<&gpio0 25 0>,
37-
<&pico_header 26 0>,
38-
<&pico_header 27 0>,
39-
<&pico_header 28 0>;
40-
4111
builtin-led-gpios = <&gpio0 25 0>;
4212

4313
pwm-pin-gpios = <&pico_header 2 0>,

0 commit comments

Comments
 (0)