Skip to content

Commit 1398b02

Browse files
committed
[USB] Update PeripheralPins.c and PinNamesVar.h
Signed-off-by: Frederic Pillon <[email protected]>
1 parent 9ecef7c commit 1398b02

File tree

70 files changed

+7349
-6200
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+7349
-6200
lines changed

variants/ARMED_V1/PeripheralPins.c

+277-204
Large diffs are not rendered by default.

variants/ARMED_V1/PinNamesVar.h

+34-9
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,50 @@
1-
/* SYS_WKUP */
1+
/* SYS_WKUP */
22
#ifdef PWR_WAKEUP_PIN1
3-
SYS_WKUP1 = PA_0,
3+
SYS_WKUP1 = PA_0,
44
#endif
55
#ifdef PWR_WAKEUP_PIN2
6-
SYS_WKUP2 = NC,
6+
SYS_WKUP2 = NC,
77
#endif
88
#ifdef PWR_WAKEUP_PIN3
9-
SYS_WKUP3 = NC,
9+
SYS_WKUP3 = NC,
1010
#endif
1111
#ifdef PWR_WAKEUP_PIN4
12-
SYS_WKUP4 = NC,
12+
SYS_WKUP4 = NC,
1313
#endif
1414
#ifdef PWR_WAKEUP_PIN5
15-
SYS_WKUP5 = NC,
15+
SYS_WKUP5 = NC,
1616
#endif
1717
#ifdef PWR_WAKEUP_PIN6
18-
SYS_WKUP6 = NC,
18+
SYS_WKUP6 = NC,
1919
#endif
2020
#ifdef PWR_WAKEUP_PIN7
21-
SYS_WKUP7 = NC,
21+
SYS_WKUP7 = NC,
2222
#endif
2323
#ifdef PWR_WAKEUP_PIN8
24-
SYS_WKUP8 = NC,
24+
SYS_WKUP8 = NC,
25+
#endif
26+
/* USB */
27+
#ifdef USBCON
28+
USB_OTG_FS_SOF = PA_8,
29+
USB_OTG_FS_VBUS = PA_9,
30+
USB_OTG_FS_ID = PA_10,
31+
USB_OTG_FS_DM = PA_11,
32+
USB_OTG_FS_DP = PA_12,
33+
USB_OTG_HS_ULPI_D0 = PA_3,
34+
USB_OTG_HS_SOF = PA_4,
35+
USB_OTG_HS_ULPI_CK = PA_5,
36+
USB_OTG_HS_ULPI_D1 = PB_0,
37+
USB_OTG_HS_ULPI_D2 = PB_1,
38+
USB_OTG_HS_ULPI_D7 = PB_5,
39+
USB_OTG_HS_ULPI_D3 = PB_10,
40+
USB_OTG_HS_ULPI_D4 = PB_11,
41+
USB_OTG_HS_ID = PB_12,
42+
USB_OTG_HS_ULPI_D5 = PB_12,
43+
USB_OTG_HS_ULPI_D6 = PB_13,
44+
USB_OTG_HS_VBUS = PB_13,
45+
USB_OTG_HS_DM = PB_14,
46+
USB_OTG_HS_DP = PB_15,
47+
USB_OTG_HS_ULPI_STP = PC_0,
48+
USB_OTG_HS_ULPI_DIR = PC_2,
49+
USB_OTG_HS_ULPI_NXT = PC_3,
2550
#endif

variants/BLACK_F407VE/PeripheralPins.c

+262-223
Large diffs are not rendered by default.

variants/BLACK_F407VE/PinNamesVar.h

+34-9
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,50 @@
1-
/* SYS_WKUP */
1+
/* SYS_WKUP */
22
#ifdef PWR_WAKEUP_PIN1
3-
SYS_WKUP1 = PA_0,
3+
SYS_WKUP1 = PA_0,
44
#endif
55
#ifdef PWR_WAKEUP_PIN2
6-
SYS_WKUP2 = NC,
6+
SYS_WKUP2 = NC,
77
#endif
88
#ifdef PWR_WAKEUP_PIN3
9-
SYS_WKUP3 = NC,
9+
SYS_WKUP3 = NC,
1010
#endif
1111
#ifdef PWR_WAKEUP_PIN4
12-
SYS_WKUP4 = NC,
12+
SYS_WKUP4 = NC,
1313
#endif
1414
#ifdef PWR_WAKEUP_PIN5
15-
SYS_WKUP5 = NC,
15+
SYS_WKUP5 = NC,
1616
#endif
1717
#ifdef PWR_WAKEUP_PIN6
18-
SYS_WKUP6 = NC,
18+
SYS_WKUP6 = NC,
1919
#endif
2020
#ifdef PWR_WAKEUP_PIN7
21-
SYS_WKUP7 = NC,
21+
SYS_WKUP7 = NC,
2222
#endif
2323
#ifdef PWR_WAKEUP_PIN8
24-
SYS_WKUP8 = NC,
24+
SYS_WKUP8 = NC,
25+
#endif
26+
/* USB */
27+
#ifdef USBCON
28+
USB_OTG_FS_SOF = PA_8,
29+
USB_OTG_FS_VBUS = PA_9,
30+
USB_OTG_FS_ID = PA_10,
31+
USB_OTG_FS_DM = PA_11,
32+
USB_OTG_FS_DP = PA_12,
33+
USB_OTG_HS_ULPI_D0 = PA_3,
34+
USB_OTG_HS_SOF = PA_4,
35+
USB_OTG_HS_ULPI_CK = PA_5,
36+
USB_OTG_HS_ULPI_D1 = PB_0,
37+
USB_OTG_HS_ULPI_D2 = PB_1,
38+
USB_OTG_HS_ULPI_D7 = PB_5,
39+
USB_OTG_HS_ULPI_D3 = PB_10,
40+
USB_OTG_HS_ULPI_D4 = PB_11,
41+
USB_OTG_HS_ID = PB_12,
42+
USB_OTG_HS_ULPI_D5 = PB_12,
43+
USB_OTG_HS_ULPI_D6 = PB_13,
44+
USB_OTG_HS_VBUS = PB_13,
45+
USB_OTG_HS_DM = PB_14,
46+
USB_OTG_HS_DP = PB_15,
47+
USB_OTG_HS_ULPI_STP = PC_0,
48+
USB_OTG_HS_ULPI_DIR = PC_2,
49+
USB_OTG_HS_ULPI_NXT = PC_3,
2550
#endif

variants/BLUEPILL_F103C8/PeripheralPins.c

+133-124
Large diffs are not rendered by default.
+14-9
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,30 @@
1-
/* SYS_WKUP */
1+
/* SYS_WKUP */
22
#ifdef PWR_WAKEUP_PIN1
3-
SYS_WKUP1 = PA_0,
3+
SYS_WKUP1 = PA_0,
44
#endif
55
#ifdef PWR_WAKEUP_PIN2
6-
SYS_WKUP2 = NC,
6+
SYS_WKUP2 = NC,
77
#endif
88
#ifdef PWR_WAKEUP_PIN3
9-
SYS_WKUP3 = NC,
9+
SYS_WKUP3 = NC,
1010
#endif
1111
#ifdef PWR_WAKEUP_PIN4
12-
SYS_WKUP4 = NC,
12+
SYS_WKUP4 = NC,
1313
#endif
1414
#ifdef PWR_WAKEUP_PIN5
15-
SYS_WKUP5 = NC,
15+
SYS_WKUP5 = NC,
1616
#endif
1717
#ifdef PWR_WAKEUP_PIN6
18-
SYS_WKUP6 = NC,
18+
SYS_WKUP6 = NC,
1919
#endif
2020
#ifdef PWR_WAKEUP_PIN7
21-
SYS_WKUP7 = NC,
21+
SYS_WKUP7 = NC,
2222
#endif
2323
#ifdef PWR_WAKEUP_PIN8
24-
SYS_WKUP8 = NC,
24+
SYS_WKUP8 = NC,
25+
#endif
26+
/* USB */
27+
#ifdef USBCON
28+
USB_DM = PA_11,
29+
USB_DP = PA_12,
2530
#endif

variants/BLUE_F407VE_Mini/PeripheralPins.c

+262-223
Large diffs are not rendered by default.
+34-9
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,50 @@
1-
/* SYS_WKUP */
1+
/* SYS_WKUP */
22
#ifdef PWR_WAKEUP_PIN1
3-
SYS_WKUP1 = PA_0,
3+
SYS_WKUP1 = PA_0,
44
#endif
55
#ifdef PWR_WAKEUP_PIN2
6-
SYS_WKUP2 = NC,
6+
SYS_WKUP2 = NC,
77
#endif
88
#ifdef PWR_WAKEUP_PIN3
9-
SYS_WKUP3 = NC,
9+
SYS_WKUP3 = NC,
1010
#endif
1111
#ifdef PWR_WAKEUP_PIN4
12-
SYS_WKUP4 = NC,
12+
SYS_WKUP4 = NC,
1313
#endif
1414
#ifdef PWR_WAKEUP_PIN5
15-
SYS_WKUP5 = NC,
15+
SYS_WKUP5 = NC,
1616
#endif
1717
#ifdef PWR_WAKEUP_PIN6
18-
SYS_WKUP6 = NC,
18+
SYS_WKUP6 = NC,
1919
#endif
2020
#ifdef PWR_WAKEUP_PIN7
21-
SYS_WKUP7 = NC,
21+
SYS_WKUP7 = NC,
2222
#endif
2323
#ifdef PWR_WAKEUP_PIN8
24-
SYS_WKUP8 = NC,
24+
SYS_WKUP8 = NC,
25+
#endif
26+
/* USB */
27+
#ifdef USBCON
28+
USB_OTG_FS_SOF = PA_8,
29+
USB_OTG_FS_VBUS = PA_9,
30+
USB_OTG_FS_ID = PA_10,
31+
USB_OTG_FS_DM = PA_11,
32+
USB_OTG_FS_DP = PA_12,
33+
USB_OTG_HS_ULPI_D0 = PA_3,
34+
USB_OTG_HS_SOF = PA_4,
35+
USB_OTG_HS_ULPI_CK = PA_5,
36+
USB_OTG_HS_ULPI_D1 = PB_0,
37+
USB_OTG_HS_ULPI_D2 = PB_1,
38+
USB_OTG_HS_ULPI_D7 = PB_5,
39+
USB_OTG_HS_ULPI_D3 = PB_10,
40+
USB_OTG_HS_ULPI_D4 = PB_11,
41+
USB_OTG_HS_ID = PB_12,
42+
USB_OTG_HS_ULPI_D5 = PB_12,
43+
USB_OTG_HS_ULPI_D6 = PB_13,
44+
USB_OTG_HS_VBUS = PB_13,
45+
USB_OTG_HS_DM = PB_14,
46+
USB_OTG_HS_DP = PB_15,
47+
USB_OTG_HS_ULPI_STP = PC_0,
48+
USB_OTG_HS_ULPI_DIR = PC_2,
49+
USB_OTG_HS_ULPI_NXT = PC_3,
2550
#endif

0 commit comments

Comments
 (0)