Skip to content

Commit 1b9cffa

Browse files
committed
variants: U5: add all generated STM32U5xx generic variant files
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 365a0d7 commit 1b9cffa

File tree

78 files changed

+13851
-0
lines changed

Some content is hidden

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

78 files changed

+13851
-0
lines changed

variants/STM32U5xx/U575A(G-I)I_U585AII/PeripheralPins.c

Lines changed: 561 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 166 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,166 @@
1+
/* Alternate pin name */
2+
PA_0_ALT1 = PA_0 | ALT1,
3+
PA_1_ALT1 = PA_1 | ALT1,
4+
PA_1_ALT2 = PA_1 | ALT2,
5+
PA_2_ALT1 = PA_2 | ALT1,
6+
PA_2_ALT2 = PA_2 | ALT2,
7+
PA_3_ALT1 = PA_3 | ALT1,
8+
PA_3_ALT2 = PA_3 | ALT2,
9+
PA_4_ALT1 = PA_4 | ALT1,
10+
PA_5_ALT1 = PA_5 | ALT1,
11+
PA_6_ALT1 = PA_6 | ALT1,
12+
PA_7_ALT1 = PA_7 | ALT1,
13+
PA_7_ALT2 = PA_7 | ALT2,
14+
PA_7_ALT3 = PA_7 | ALT3,
15+
PA_15_ALT1 = PA_15 | ALT1,
16+
PB_0_ALT1 = PB_0 | ALT1,
17+
PB_0_ALT2 = PB_0 | ALT2,
18+
PB_1_ALT1 = PB_1 | ALT1,
19+
PB_1_ALT2 = PB_1 | ALT2,
20+
PB_3_ALT1 = PB_3 | ALT1,
21+
PB_4_ALT1 = PB_4 | ALT1,
22+
PB_5_ALT1 = PB_5 | ALT1,
23+
PB_6_ALT1 = PB_6 | ALT1,
24+
PB_7_ALT1 = PB_7 | ALT1,
25+
PB_8_ALT1 = PB_8 | ALT1,
26+
PB_8_ALT2 = PB_8 | ALT2,
27+
PB_9_ALT1 = PB_9 | ALT1,
28+
PB_9_ALT2 = PB_9 | ALT2,
29+
PB_10_ALT1 = PB_10 | ALT1,
30+
PB_11_ALT1 = PB_11 | ALT1,
31+
PB_13_ALT1 = PB_13 | ALT1,
32+
PB_14_ALT1 = PB_14 | ALT1,
33+
PB_14_ALT2 = PB_14 | ALT2,
34+
PB_15_ALT1 = PB_15 | ALT1,
35+
PB_15_ALT2 = PB_15 | ALT2,
36+
PC_0_ALT1 = PC_0 | ALT1,
37+
PC_1_ALT1 = PC_1 | ALT1,
38+
PC_2_ALT1 = PC_2 | ALT1,
39+
PC_3_ALT1 = PC_3 | ALT1,
40+
PC_4_ALT1 = PC_4 | ALT1,
41+
PC_5_ALT1 = PC_5 | ALT1,
42+
PC_6_ALT1 = PC_6 | ALT1,
43+
PC_6_ALT2 = PC_6 | ALT2,
44+
PC_7_ALT1 = PC_7 | ALT1,
45+
PC_7_ALT2 = PC_7 | ALT2,
46+
PC_8_ALT1 = PC_8 | ALT1,
47+
PC_9_ALT1 = PC_9 | ALT1,
48+
PC_10_ALT1 = PC_10 | ALT1,
49+
PC_11_ALT1 = PC_11 | ALT1,
50+
PF_9_ALT1 = PF_9 | ALT1,
51+
PH_12_ALT1 = PH_12 | ALT1,
52+
53+
/* SYS_WKUP */
54+
#ifdef PWR_WAKEUP_PIN1
55+
SYS_WKUP1 = PE_4,
56+
#endif
57+
#ifdef PWR_WAKEUP_PIN2
58+
SYS_WKUP2 = NC,
59+
#endif
60+
#ifdef PWR_WAKEUP_PIN3
61+
SYS_WKUP3 = NC,
62+
#endif
63+
#ifdef PWR_WAKEUP_PIN4
64+
SYS_WKUP4 = NC,
65+
#endif
66+
#ifdef PWR_WAKEUP_PIN5
67+
SYS_WKUP5 = NC,
68+
#endif
69+
#ifdef PWR_WAKEUP_PIN6
70+
SYS_WKUP6 = NC,
71+
#endif
72+
#ifdef PWR_WAKEUP_PIN7
73+
SYS_WKUP7 = NC,
74+
#endif
75+
#ifdef PWR_WAKEUP_PIN8
76+
SYS_WKUP8 = NC,
77+
#endif
78+
#ifdef PWR_WAKEUP_PIN9
79+
SYS_WKUP9 = PA_0,
80+
#endif
81+
#ifdef PWR_WAKEUP_PIN10
82+
SYS_WKUP10 = PB_2,
83+
#endif
84+
#ifdef PWR_WAKEUP_PIN11
85+
SYS_WKUP11 = PE_5,
86+
#endif
87+
#ifdef PWR_WAKEUP_PIN12
88+
SYS_WKUP12 = PC_13,
89+
#endif
90+
#ifdef PWR_WAKEUP_PIN13
91+
SYS_WKUP13 = PA_4,
92+
#endif
93+
#ifdef PWR_WAKEUP_PIN14
94+
SYS_WKUP14 = PB_6,
95+
#endif
96+
#ifdef PWR_WAKEUP_PIN15
97+
SYS_WKUP15 = PE_6,
98+
#endif
99+
#ifdef PWR_WAKEUP_PIN16
100+
SYS_WKUP16 = PA_1,
101+
#endif
102+
#ifdef PWR_WAKEUP_PIN17
103+
SYS_WKUP17 = PB_7,
104+
#endif
105+
#ifdef PWR_WAKEUP_PIN18
106+
SYS_WKUP18 = PA_2,
107+
#endif
108+
#ifdef PWR_WAKEUP_PIN19
109+
SYS_WKUP19 = PB_1,
110+
#endif
111+
#ifdef PWR_WAKEUP_PIN20
112+
SYS_WKUP20 = PB_8,
113+
#endif
114+
#ifdef PWR_WAKEUP_PIN21
115+
SYS_WKUP21 = PC_5,
116+
#endif
117+
#ifdef PWR_WAKEUP_PIN22
118+
SYS_WKUP22 = PA_3,
119+
#endif
120+
#ifdef PWR_WAKEUP_PIN23
121+
SYS_WKUP23 = PB_5,
122+
#endif
123+
#ifdef PWR_WAKEUP_PIN24
124+
SYS_WKUP24 = PA_5,
125+
#endif
126+
#ifdef PWR_WAKEUP_PIN25
127+
SYS_WKUP25 = PE_7,
128+
#endif
129+
#ifdef PWR_WAKEUP_PIN26
130+
SYS_WKUP26 = PE_8,
131+
#endif
132+
#ifdef PWR_WAKEUP_PIN27
133+
SYS_WKUP27 = PB_15,
134+
#endif
135+
#ifdef PWR_WAKEUP_PIN28
136+
SYS_WKUP28 = PA_6,
137+
#endif
138+
#ifdef PWR_WAKEUP_PIN29
139+
SYS_WKUP29 = PF_2,
140+
#endif
141+
#ifdef PWR_WAKEUP_PIN30
142+
SYS_WKUP30 = PA_7,
143+
#endif
144+
#ifdef PWR_WAKEUP_PIN31
145+
SYS_WKUP31 = PB_10,
146+
#endif
147+
148+
/* USB */
149+
#ifdef USBCON
150+
USB_OTG_FS_DM = PA_11,
151+
USB_OTG_FS_DP = PA_12,
152+
USB_OTG_FS_ID = PA_10,
153+
#ifdef USB_OTG_FS_NOE_PA_13
154+
USB_OTG_FS_NOE = PA_13,
155+
#endif
156+
#ifdef USB_OTG_FS_NOE_PC_9
157+
USB_OTG_FS_NOE = PC_9,
158+
#endif
159+
#ifdef USB_OTG_FS_SOF_PA_8
160+
USB_OTG_FS_SOF = PA_8,
161+
#endif
162+
#ifdef USB_OTG_FS_SOF_PA_14
163+
USB_OTG_FS_SOF = PA_14,
164+
#endif
165+
USB_OTG_FS_VBUS = PA_9,
166+
#endif
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# This file help to add generic board entry.
2+
# upload.maximum_size and product_line have to be verified
3+
# and changed if needed.
4+
# See: https://github.com/stm32duino/wiki/wiki/Add-a-new-variant-%28board%29
5+
6+
# Generic U575AGIx
7+
GenU5.menu.pnum.GENERIC_U575AGIX=Generic U575AGIx
8+
GenU5.menu.pnum.GENERIC_U575AGIX.upload.maximum_size=1048576
9+
GenU5.menu.pnum.GENERIC_U575AGIX.upload.maximum_data_size=262144
10+
GenU5.menu.pnum.GENERIC_U575AGIX.build.board=GENERIC_U575AGIX
11+
GenU5.menu.pnum.GENERIC_U575AGIX.build.product_line=STM32U575xx
12+
GenU5.menu.pnum.GENERIC_U575AGIX.build.variant=STM32U5xx/U575A(G-I)I_U585AII
13+
14+
# Generic U575AIIx
15+
GenU5.menu.pnum.GENERIC_U575AIIX=Generic U575AIIx
16+
GenU5.menu.pnum.GENERIC_U575AIIX.upload.maximum_size=2097152
17+
GenU5.menu.pnum.GENERIC_U575AIIX.upload.maximum_data_size=262144
18+
GenU5.menu.pnum.GENERIC_U575AIIX.build.board=GENERIC_U575AIIX
19+
GenU5.menu.pnum.GENERIC_U575AIIX.build.product_line=STM32U575xx
20+
GenU5.menu.pnum.GENERIC_U575AIIX.build.variant=STM32U5xx/U575A(G-I)I_U585AII
21+
22+
# Generic U585AIIx
23+
GenU5.menu.pnum.GENERIC_U585AIIX=Generic U585AIIx
24+
GenU5.menu.pnum.GENERIC_U585AIIX.upload.maximum_size=2097152
25+
GenU5.menu.pnum.GENERIC_U585AIIX.upload.maximum_data_size=262144
26+
GenU5.menu.pnum.GENERIC_U585AIIX.build.board=GENERIC_U585AIIX
27+
GenU5.menu.pnum.GENERIC_U585AIIX.build.product_line=STM32U585xx
28+
GenU5.menu.pnum.GENERIC_U585AIIX.build.variant=STM32U5xx/U575A(G-I)I_U585AII
29+
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/*
2+
*******************************************************************************
3+
* Copyright (c) 2020-2021, STMicroelectronics
4+
* All rights reserved.
5+
*
6+
* This software component is licensed by ST under BSD 3-Clause license,
7+
* the "License"; You may not use this file except in compliance with the
8+
* License. You may obtain a copy of the License at:
9+
* opensource.org/licenses/BSD-3-Clause
10+
*
11+
*******************************************************************************
12+
*/
13+
#if defined(ARDUINO_GENERIC_U575AGIX) || defined(ARDUINO_GENERIC_U575AIIX) ||\
14+
defined(ARDUINO_GENERIC_U585AIIX)
15+
#include "pins_arduino.h"
16+
17+
/**
18+
* @brief System Clock Configuration
19+
* @param None
20+
* @retval None
21+
*/
22+
WEAK void SystemClock_Config(void)
23+
{
24+
/* SystemClock_Config can be generated by STM32CubeMX */
25+
#warning "SystemClock_Config() is empty. Default clock at reset is used."
26+
}
27+
28+
#endif /* ARDUINO_GENERIC_* */

0 commit comments

Comments
 (0)