Skip to content

Commit 11c1d10

Browse files
committed
boards/arm: Add arduino_header support to nucleo f401re and f411re
Add arduino_header support to nucleo f401re and f411re boards. Signed-off-by: Armando Visconti <[email protected]>
1 parent b68d6a9 commit 11c1d10

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

boards/arm/nucleo_f401re/nucleo_f401re.dts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,33 @@
3939
led0 = &green_led_2;
4040
sw0 = &user_button;
4141
};
42+
43+
arduino_header: connector {
44+
compatible = "arduino-header-r3";
45+
#gpio-cells = <2>;
46+
gpio-map = <0 0 &gpioa 0 0>, /* A0 */
47+
<1 0 &gpioa 1 0>, /* A1 */
48+
<2 0 &gpioa 4 0>, /* A2 */
49+
<3 0 &gpiob 0 0>, /* A3 */
50+
<4 0 &gpioc 1 0>, /* A4 */
51+
<5 0 &gpioc 0 0>, /* A5 */
52+
<6 0 &gpioa 3 0>, /* D0 */
53+
<7 0 &gpioa 2 0>, /* D1 */
54+
<8 0 &gpioa 10 0>, /* D2 */
55+
<9 0 &gpiob 3 0>, /* D3 */
56+
<10 0 &gpiob 5 0>, /* D4 */
57+
<11 0 &gpiob 4 0>, /* D5 */
58+
<12 0 &gpiob 10 0>, /* D6 */
59+
<13 0 &gpioa 8 0>, /* D7 */
60+
<14 0 &gpioa 9 0>, /* D8 */
61+
<15 0 &gpioc 7 0>, /* D9 */
62+
<16 0 &gpiob 6 0>, /* D10 */
63+
<17 0 &gpioa 7 0>, /* D11 */
64+
<18 0 &gpioa 6 0>, /* D12 */
65+
<19 0 &gpioa 5 0>, /* D13 */
66+
<20 0 &gpiob 9 0>, /* D14 */
67+
<21 0 &gpiob 8 0>; /* D15 */
68+
};
4269
};
4370

4471
&usart1 {

boards/arm/nucleo_f411re/nucleo_f411re.dts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,33 @@
3838
led0 = &green_led_2;
3939
sw0 = &user_button;
4040
};
41+
42+
arduino_header: connector {
43+
compatible = "arduino-header-r3";
44+
#gpio-cells = <2>;
45+
gpio-map = <0 0 &gpioa 0 0>, /* A0 */
46+
<1 0 &gpioa 1 0>, /* A1 */
47+
<2 0 &gpioa 4 0>, /* A2 */
48+
<3 0 &gpiob 0 0>, /* A3 */
49+
<4 0 &gpioc 1 0>, /* A4 */
50+
<5 0 &gpioc 0 0>, /* A5 */
51+
<6 0 &gpioa 3 0>, /* D0 */
52+
<7 0 &gpioa 2 0>, /* D1 */
53+
<8 0 &gpioa 10 0>, /* D2 */
54+
<9 0 &gpiob 3 0>, /* D3 */
55+
<10 0 &gpiob 5 0>, /* D4 */
56+
<11 0 &gpiob 4 0>, /* D5 */
57+
<12 0 &gpiob 10 0>, /* D6 */
58+
<13 0 &gpioa 8 0>, /* D7 */
59+
<14 0 &gpioa 9 0>, /* D8 */
60+
<15 0 &gpioc 7 0>, /* D9 */
61+
<16 0 &gpiob 6 0>, /* D10 */
62+
<17 0 &gpioa 7 0>, /* D11 */
63+
<18 0 &gpioa 6 0>, /* D12 */
64+
<19 0 &gpioa 5 0>, /* D13 */
65+
<20 0 &gpiob 9 0>, /* D14 */
66+
<21 0 &gpiob 8 0>; /* D15 */
67+
};
4168
};
4269

4370
&usart1 {

0 commit comments

Comments
 (0)