Skip to content

Commit b07bba9

Browse files
committed
chore: update variants against CubeMX DB release 6.0.110
Signed-off-by: Frederic Pillon <[email protected]>
1 parent 3bdd567 commit b07bba9

File tree

343 files changed

+455
-492
lines changed

Some content is hidden

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

343 files changed

+455
-492
lines changed

variants/STM32C0xx/C011D6Y_C011F(4-6)(P-U)_C031F(4-6)P/PeripheralPins.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/*
1414
* Automatically generated from STM32C011D6Yx.xml, STM32C011F(4-6)Px.xml
1515
* STM32C011F(4-6)Ux.xml, STM32C031F(4-6)Px.xml
16-
* CubeMX DB release 6.0.100
16+
* CubeMX DB release 6.0.110
1717
*/
1818
#if !defined(CUSTOM_PERIPHERAL_PINS)
1919
#include "Arduino.h"

variants/STM32C0xx/C011J(4-6)M/PeripheralPins.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*/
1313
/*
1414
* Automatically generated from STM32C011J(4-6)Mx.xml
15-
* CubeMX DB release 6.0.100
15+
* CubeMX DB release 6.0.110
1616
*/
1717
#if !defined(CUSTOM_PERIPHERAL_PINS)
1818
#include "Arduino.h"

variants/STM32C0xx/C031C(4-6)(T-U)/PeripheralPins.c

+31-37
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*/
1313
/*
1414
* Automatically generated from STM32C031C(4-6)Tx.xml, STM32C031C(4-6)Ux.xml
15-
* CubeMX DB release 6.0.100
15+
* CubeMX DB release 6.0.110
1616
*/
1717
#if !defined(CUSTOM_PERIPHERAL_PINS)
1818
#include "Arduino.h"
@@ -62,23 +62,21 @@ WEAK const PinMap PinMap_ADC[] = {
6262

6363
#ifdef HAL_I2C_MODULE_ENABLED
6464
WEAK const PinMap PinMap_I2C_SDA[] = {
65-
{PA_10, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF6_I2C1)},
66-
{PA_10_R, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF6_I2C1)},
67-
{PB_7, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF6_I2C1)},
68-
{PB_9, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF6_I2C1)},
69-
{PC_14, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF14_I2C1)},
70-
{NC, NP, 0}
65+
{PA_10, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF6_I2C1)},
66+
{PB_7, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF6_I2C1)},
67+
{PB_9, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF6_I2C1)},
68+
{PC_14, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF14_I2C1)},
69+
{NC, NP, 0}
7170
};
7271
#endif
7372

7473
#ifdef HAL_I2C_MODULE_ENABLED
7574
WEAK const PinMap PinMap_I2C_SCL[] = {
76-
{PA_9, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF6_I2C1)},
77-
{PA_9_R, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF6_I2C1)},
78-
{PB_6, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF6_I2C1)},
79-
{PB_7, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF14_I2C1)},
80-
{PB_8, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF6_I2C1)},
81-
{NC, NP, 0}
75+
{PA_9, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF6_I2C1)},
76+
{PB_6, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF6_I2C1)},
77+
{PB_7, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF14_I2C1)},
78+
{PB_8, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF6_I2C1)},
79+
{NC, NP, 0}
8280
};
8381
#endif
8482

@@ -114,9 +112,7 @@ WEAK const PinMap PinMap_TIM[] = {
114112
{PA_8_ALT4, TIM3, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF12_TIM3, 4, 0)}, // TIM3_CH4
115113
{PA_8_ALT5, TIM14, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF13_TIM14, 1, 0)}, // TIM14_CH1
116114
{PA_9, TIM1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM1, 2, 0)}, // TIM1_CH2
117-
{PA_9_R, TIM1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM1, 2, 0)}, // TIM1_CH2
118115
{PA_10, TIM1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM1, 3, 0)}, // TIM1_CH3
119-
{PA_10_R, TIM1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM1, 3, 0)}, // TIM1_CH3
120116
{PA_11, TIM1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM1, 4, 0)}, // TIM1_CH4
121117
{PA_14, TIM1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF10_TIM1, 1, 0)}, // TIM1_CH1
122118
{PA_15, TIM1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM1, 1, 0)}, // TIM1_CH1
@@ -168,33 +164,31 @@ WEAK const PinMap PinMap_TIM[] = {
168164

169165
#ifdef HAL_UART_MODULE_ENABLED
170166
WEAK const PinMap PinMap_UART_TX[] = {
171-
{PA_0, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART1)},
172-
{PA_2, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART2)},
173-
{PA_4, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART2)},
174-
{PA_8, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART2)},
175-
{PA_9, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART1)},
176-
{PA_9_R, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART1)},
177-
{PA_14, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART2)},
178-
{PB_6, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_USART1)},
179-
{PC_14, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_USART1)},
180-
{NC, NP, 0}
167+
{PA_0, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART1)},
168+
{PA_2, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART2)},
169+
{PA_4, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART2)},
170+
{PA_8, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART2)},
171+
{PA_9, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART1)},
172+
{PA_14, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART2)},
173+
{PB_6, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_USART1)},
174+
{PC_14, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_USART1)},
175+
{NC, NP, 0}
181176
};
182177
#endif
183178

184179
#ifdef HAL_UART_MODULE_ENABLED
185180
WEAK const PinMap PinMap_UART_RX[] = {
186-
{PA_1, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART1)},
187-
{PA_3, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART2)},
188-
{PA_5, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART2)},
189-
{PA_8, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF14_USART1)},
190-
{PA_10, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART1)},
191-
{PA_10_R, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART1)},
192-
{PA_13, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART2)},
193-
{PA_14, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF9_USART2)},
194-
{PA_15, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART2)},
195-
{PB_2, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_USART1)},
196-
{PB_7, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_USART1)},
197-
{NC, NP, 0}
181+
{PA_1, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART1)},
182+
{PA_3, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART2)},
183+
{PA_5, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART2)},
184+
{PA_8, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF14_USART1)},
185+
{PA_10, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART1)},
186+
{PA_13, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART2)},
187+
{PA_14, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF9_USART2)},
188+
{PA_15, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART2)},
189+
{PB_2, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_USART1)},
190+
{PB_7, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_USART1)},
191+
{NC, NP, 0}
198192
};
199193
#endif
200194

variants/STM32C0xx/C031C(4-6)(T-U)/PinNamesVar.h

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
/* Remap pin name */
2-
PA_9_R = PA_9 | PREMAP,
3-
PA_10_R = PA_10 | PREMAP,
4-
51
/* Alternate pin name */
62
PA_0_ALT1 = PA_0 | ALT1,
73
PA_1_ALT1 = PA_1 | ALT1,

variants/STM32C0xx/C031C(4-6)(T-U)/variant_generic.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,7 @@ const PinName digitalPin[] = {
6060
PF_0, // D41
6161
PF_1, // D42
6262
PF_2, // D43
63-
PF_3, // D44
64-
PA_9_R, // D45
65-
PA_10_R // D46
63+
PF_3 // D44
6664
};
6765

6866
// Analog (Ax) pin number array

variants/STM32C0xx/C031C(4-6)(T-U)/variant_generic.h

+1-4
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@
6060
#define PF1 42
6161
#define PF2 43
6262
#define PF3 44
63-
#define PA9_R 45
64-
#define PA10_R 46
6563

6664
// Alternate pins number
6765
#define PA0_ALT1 (PA0 | ALT1)
@@ -99,8 +97,7 @@
9997
#define PB9_ALT1 (PB9 | ALT1)
10098
#define PC14_ALT1 (PC14 | ALT1)
10199

102-
#define NUM_DIGITAL_PINS 47
103-
#define NUM_REMAP_PINS 2
100+
#define NUM_DIGITAL_PINS 45
104101
#define NUM_ANALOG_INPUTS 19
105102

106103
// On-board LED pin number

variants/STM32C0xx/C031G(4-6)U/PeripheralPins.c

+25-31
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*/
1313
/*
1414
* Automatically generated from STM32C031G(4-6)Ux.xml
15-
* CubeMX DB release 6.0.100
15+
* CubeMX DB release 6.0.110
1616
*/
1717
#if !defined(CUSTOM_PERIPHERAL_PINS)
1818
#include "Arduino.h"
@@ -58,20 +58,18 @@ WEAK const PinMap PinMap_ADC[] = {
5858

5959
#ifdef HAL_I2C_MODULE_ENABLED
6060
WEAK const PinMap PinMap_I2C_SDA[] = {
61-
{PA_10_R, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF6_I2C1)},
62-
{PB_7, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF6_I2C1)},
63-
{PC_14, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF14_I2C1)},
64-
{NC, NP, 0}
61+
{PB_7, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF6_I2C1)},
62+
{PC_14, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF14_I2C1)},
63+
{NC, NP, 0}
6564
};
6665
#endif
6766

6867
#ifdef HAL_I2C_MODULE_ENABLED
6968
WEAK const PinMap PinMap_I2C_SCL[] = {
70-
{PA_9_R, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF6_I2C1)},
71-
{PB_6, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF6_I2C1)},
72-
{PB_7, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF14_I2C1)},
73-
{PB_8, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF6_I2C1)},
74-
{NC, NP, 0}
69+
{PB_6, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF6_I2C1)},
70+
{PB_7, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF14_I2C1)},
71+
{PB_8, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF6_I2C1)},
72+
{NC, NP, 0}
7573
};
7674
#endif
7775

@@ -106,8 +104,6 @@ WEAK const PinMap PinMap_TIM[] = {
106104
{PA_8_ALT3, TIM3, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF11_TIM3, 3, 0)}, // TIM3_CH3
107105
{PA_8_ALT4, TIM3, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF12_TIM3, 4, 0)}, // TIM3_CH4
108106
{PA_8_ALT5, TIM14, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF13_TIM14, 1, 0)}, // TIM14_CH1
109-
{PA_9_R, TIM1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM1, 2, 0)}, // TIM1_CH2
110-
{PA_10_R, TIM1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM1, 3, 0)}, // TIM1_CH3
111107
{PA_11, TIM1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM1, 4, 0)}, // TIM1_CH4
112108
{PA_14, TIM1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF10_TIM1, 1, 0)}, // TIM1_CH1
113109
{PA_15, TIM1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM1, 1, 0)}, // TIM1_CH1
@@ -148,30 +144,28 @@ WEAK const PinMap PinMap_TIM[] = {
148144

149145
#ifdef HAL_UART_MODULE_ENABLED
150146
WEAK const PinMap PinMap_UART_TX[] = {
151-
{PA_0, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART1)},
152-
{PA_2, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART2)},
153-
{PA_4, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART2)},
154-
{PA_8, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART2)},
155-
{PA_9_R, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART1)},
156-
{PA_14, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART2)},
157-
{PB_6, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_USART1)},
158-
{PC_14, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_USART1)},
159-
{NC, NP, 0}
147+
{PA_0, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART1)},
148+
{PA_2, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART2)},
149+
{PA_4, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART2)},
150+
{PA_8, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART2)},
151+
{PA_14, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART2)},
152+
{PB_6, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_USART1)},
153+
{PC_14, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_USART1)},
154+
{NC, NP, 0}
160155
};
161156
#endif
162157

163158
#ifdef HAL_UART_MODULE_ENABLED
164159
WEAK const PinMap PinMap_UART_RX[] = {
165-
{PA_1, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART1)},
166-
{PA_3, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART2)},
167-
{PA_5, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART2)},
168-
{PA_8, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF14_USART1)},
169-
{PA_10_R, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART1)},
170-
{PA_13, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART2)},
171-
{PA_14, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF9_USART2)},
172-
{PA_15, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART2)},
173-
{PB_7, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_USART1)},
174-
{NC, NP, 0}
160+
{PA_1, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART1)},
161+
{PA_3, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART2)},
162+
{PA_5, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART2)},
163+
{PA_8, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF14_USART1)},
164+
{PA_13, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART2)},
165+
{PA_14, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF9_USART2)},
166+
{PA_15, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART2)},
167+
{PB_7, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_USART1)},
168+
{NC, NP, 0}
175169
};
176170
#endif
177171

variants/STM32C0xx/C031G(4-6)U/PinNamesVar.h

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
/* Remap pin name */
2-
PA_9_R = PA_9 | PREMAP,
3-
PA_10_R = PA_10 | PREMAP,
4-
51
/* Alternate pin name */
62
PA_0_ALT1 = PA_0 | ALT1,
73
PA_1_ALT1 = PA_1 | ALT1,

variants/STM32C0xx/C031G(4-6)U/variant_generic.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ const PinName digitalPin[] = {
4040
PC_6, // D22
4141
PC_14, // D23
4242
PC_15, // D24
43-
PF_2, // D25
44-
PA_9_R, // D26
45-
PA_10_R // D27
43+
PF_2 // D25
4644
};
4745

4846
// Analog (Ax) pin number array

variants/STM32C0xx/C031G(4-6)U/variant_generic.h

+3-6
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@
4141
#define PC14 23
4242
#define PC15 24
4343
#define PF2 25
44-
#define PA9_R 26
45-
#define PA10_R 27
4644

4745
// Alternate pins number
4846
#define PA0_ALT1 (PA0 | ALT1)
@@ -79,8 +77,7 @@
7977
#define PB8_ALT1 (PB8 | ALT1)
8078
#define PC14_ALT1 (PC14 | ALT1)
8179

82-
#define NUM_DIGITAL_PINS 28
83-
#define NUM_REMAP_PINS 2
80+
#define NUM_DIGITAL_PINS 26
8481
#define NUM_ANALOG_INPUTS 15
8582

8683
// On-board LED pin number
@@ -118,10 +115,10 @@
118115

119116
// I2C definitions
120117
#ifndef PIN_WIRE_SDA
121-
#define PIN_WIRE_SDA PA10_R
118+
#define PIN_WIRE_SDA PB7
122119
#endif
123120
#ifndef PIN_WIRE_SCL
124-
#define PIN_WIRE_SCL PA9_R
121+
#define PIN_WIRE_SCL PB6
125122
#endif
126123

127124
// Timer Definitions

0 commit comments

Comments
 (0)