Skip to content

Commit 9f34a6e

Browse files
committed
variants: L1: update generated files to STM32_open_pin_data v6.0.30
Using a fix to remove GPIO_AF10_USB from all L1 GPIO config files. Fixes #1451 Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent fe58f14 commit 9f34a6e

File tree

18 files changed

+52
-53
lines changed

18 files changed

+52
-53
lines changed

variants/STM32L1xx/L100C6Ux(A)_L151C(6-8-B)(T-U)x(A)_L152C(6-8-B)(T-U)x(A)/PeripheralPins.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* STM32L151C(6-8-B)Ux.xml, STM32L151C(6-8-B)UxA.xml
1717
* STM32L152C(6-8-B)Tx.xml, STM32L152C(6-8-B)TxA.xml
1818
* STM32L152C(6-8-B)Ux.xml, STM32L152C(6-8-B)UxA.xml
19-
* CubeMX DB release 6.0.21
19+
* CubeMX DB release 6.0.30
2020
*/
2121
#if !defined(CUSTOM_PERIPHERAL_PINS)
2222
#include "Arduino.h"
@@ -212,8 +212,8 @@ WEAK const PinMap PinMap_SPI_SSEL[] = {
212212

213213
#if defined(HAL_PCD_MODULE_ENABLED) || defined(HAL_HCD_MODULE_ENABLED)
214214
WEAK const PinMap PinMap_USB[] = {
215-
{PA_11, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DM
216-
{PA_12, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DP
215+
{PA_11, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DM
216+
{PA_12, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DP
217217
{NC, NP, 0}
218218
};
219219
#endif

variants/STM32L1xx/L100R(8-B)Tx(A)_L151R(6-8-B)Tx(A)_L152R(6-8-B)Tx(A)/PeripheralPins.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* Automatically generated from STM32L100R(8-B)Tx.xml, STM32L100R(8-B)TxA.xml
1515
* STM32L151R(6-8-B)Tx.xml, STM32L151R(6-8-B)TxA.xml
1616
* STM32L152R(6-8-B)Tx.xml, STM32L152R(6-8-B)TxA.xml
17-
* CubeMX DB release 6.0.21
17+
* CubeMX DB release 6.0.30
1818
*/
1919
#if !defined(CUSTOM_PERIPHERAL_PINS)
2020
#include "Arduino.h"
@@ -222,8 +222,8 @@ WEAK const PinMap PinMap_SPI_SSEL[] = {
222222

223223
#if defined(HAL_PCD_MODULE_ENABLED) || defined(HAL_HCD_MODULE_ENABLED)
224224
WEAK const PinMap PinMap_USB[] = {
225-
{PA_11, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DM
226-
{PA_12, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DP
225+
{PA_11, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DM
226+
{PA_12, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DP
227227
{NC, NP, 0}
228228
};
229229
#endif

variants/STM32L1xx/L100RCT/PeripheralPins.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*/
1313
/*
1414
* Automatically generated from STM32L100RCTx.xml
15-
* CubeMX DB release 6.0.21
15+
* CubeMX DB release 6.0.30
1616
*/
1717
#if !defined(CUSTOM_PERIPHERAL_PINS)
1818
#include "Arduino.h"
@@ -228,8 +228,8 @@ WEAK const PinMap PinMap_SPI_SSEL[] = {
228228

229229
#if defined(HAL_PCD_MODULE_ENABLED) || defined(HAL_HCD_MODULE_ENABLED)
230230
WEAK const PinMap PinMap_USB[] = {
231-
{PA_11, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DM
232-
{PA_12, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DP
231+
{PA_11, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DM
232+
{PA_12, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DP
233233
{NC, NP, 0}
234234
};
235235
#endif

variants/STM32L1xx/L151CC(T-U)_L152CC(T-U)/PeripheralPins.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/*
1414
* Automatically generated from STM32L151CCTx.xml, STM32L151CCUx.xml
1515
* STM32L152CCTx.xml, STM32L152CCUx.xml
16-
* CubeMX DB release 6.0.21
16+
* CubeMX DB release 6.0.30
1717
*/
1818
#if !defined(CUSTOM_PERIPHERAL_PINS)
1919
#include "Arduino.h"
@@ -218,8 +218,8 @@ WEAK const PinMap PinMap_SPI_SSEL[] = {
218218

219219
#if defined(HAL_PCD_MODULE_ENABLED) || defined(HAL_HCD_MODULE_ENABLED)
220220
WEAK const PinMap PinMap_USB[] = {
221-
{PA_11, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DM
222-
{PA_12, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DP
221+
{PA_11, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DM
222+
{PA_12, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DP
223223
{NC, NP, 0}
224224
};
225225
#endif

variants/STM32L1xx/L151QCH_L152QCH_L162QCH/PeripheralPins.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/*
1414
* Automatically generated from STM32L151QCHx.xml, STM32L152QCHx.xml
1515
* STM32L162QCHx.xml
16-
* CubeMX DB release 6.0.21
16+
* CubeMX DB release 6.0.30
1717
*/
1818
#if !defined(CUSTOM_PERIPHERAL_PINS)
1919
#include "Arduino.h"
@@ -288,8 +288,8 @@ WEAK const PinMap PinMap_SPI_SSEL[] = {
288288

289289
#if defined(HAL_PCD_MODULE_ENABLED) || defined(HAL_HCD_MODULE_ENABLED)
290290
WEAK const PinMap PinMap_USB[] = {
291-
{PA_11, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DM
292-
{PA_12, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DP
291+
{PA_11, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DM
292+
{PA_12, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DP
293293
{NC, NP, 0}
294294
};
295295
#endif

variants/STM32L1xx/L151QDH_L152QDH_L162QDH/PeripheralPins.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/*
1414
* Automatically generated from STM32L151QDHx.xml, STM32L152QDHx.xml
1515
* STM32L162QDHx.xml
16-
* CubeMX DB release 6.0.21
16+
* CubeMX DB release 6.0.30
1717
*/
1818
#if !defined(CUSTOM_PERIPHERAL_PINS)
1919
#include "Arduino.h"
@@ -292,8 +292,8 @@ WEAK const PinMap PinMap_SPI_SSEL[] = {
292292

293293
#if defined(HAL_PCD_MODULE_ENABLED) || defined(HAL_HCD_MODULE_ENABLED)
294294
WEAK const PinMap PinMap_USB[] = {
295-
{PA_11, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DM
296-
{PA_12, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DP
295+
{PA_11, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DM
296+
{PA_12, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DP
297297
{NC, NP, 0}
298298
};
299299
#endif

variants/STM32L1xx/L151QEH_L152QEH/PeripheralPins.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*/
1313
/*
1414
* Automatically generated from STM32L151QEHx.xml, STM32L152QEHx.xml
15-
* CubeMX DB release 6.0.21
15+
* CubeMX DB release 6.0.30
1616
*/
1717
#if !defined(CUSTOM_PERIPHERAL_PINS)
1818
#include "Arduino.h"
@@ -291,8 +291,8 @@ WEAK const PinMap PinMap_SPI_SSEL[] = {
291291

292292
#if defined(HAL_PCD_MODULE_ENABLED) || defined(HAL_HCD_MODULE_ENABLED)
293293
WEAK const PinMap PinMap_USB[] = {
294-
{PA_11, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DM
295-
{PA_12, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DP
294+
{PA_11, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DM
295+
{PA_12, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DP
296296
{NC, NP, 0}
297297
};
298298
#endif

variants/STM32L1xx/L151R(6-8-B)Hx(A)_L152R(6-8-B)Hx(A)/PeripheralPins.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/*
1414
* Automatically generated from STM32L151R(6-8-B)Hx.xml, STM32L151R(6-8-B)HxA.xml
1515
* STM32L152R(6-8-B)Hx.xml, STM32L152R(6-8-B)HxA.xml
16-
* CubeMX DB release 6.0.21
16+
* CubeMX DB release 6.0.30
1717
*/
1818
#if !defined(CUSTOM_PERIPHERAL_PINS)
1919
#include "Arduino.h"
@@ -220,8 +220,8 @@ WEAK const PinMap PinMap_SPI_SSEL[] = {
220220

221221
#if defined(HAL_PCD_MODULE_ENABLED) || defined(HAL_HCD_MODULE_ENABLED)
222222
WEAK const PinMap PinMap_USB[] = {
223-
{PA_11, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DM
224-
{PA_12, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DP
223+
{PA_11, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DM
224+
{PA_12, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DP
225225
{NC, NP, 0}
226226
};
227227
#endif

variants/STM32L1xx/L151RC(T-Y)x(A)_L151UCY_L152RCTx(A)_L152UCY_L162RCTx(A)/PeripheralPins.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* STM32L152RCTx.xml, STM32L152RCTxA.xml
1717
* STM32L152UCYx.xml, STM32L162RCTx.xml
1818
* STM32L162RCTxA.xml
19-
* CubeMX DB release 6.0.21
19+
* CubeMX DB release 6.0.30
2020
*/
2121
#if !defined(CUSTOM_PERIPHERAL_PINS)
2222
#include "Arduino.h"
@@ -236,8 +236,8 @@ WEAK const PinMap PinMap_SPI_SSEL[] = {
236236

237237
#if defined(HAL_PCD_MODULE_ENABLED) || defined(HAL_HCD_MODULE_ENABLED)
238238
WEAK const PinMap PinMap_USB[] = {
239-
{PA_11, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DM
240-
{PA_12, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DP
239+
{PA_11, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DM
240+
{PA_12, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DP
241241
{NC, NP, 0}
242242
};
243243
#endif

variants/STM32L1xx/L151RD(T-Y)_L152RD(T-Y)_L162RD(T-Y)/PeripheralPins.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* Automatically generated from STM32L151RDTx.xml, STM32L151RDYx.xml
1515
* STM32L152RDTx.xml, STM32L152RDYx.xml
1616
* STM32L162RDTx.xml, STM32L162RDYx.xml
17-
* CubeMX DB release 6.0.21
17+
* CubeMX DB release 6.0.30
1818
*/
1919
#if !defined(CUSTOM_PERIPHERAL_PINS)
2020
#include "Arduino.h"
@@ -238,8 +238,8 @@ WEAK const PinMap PinMap_SPI_SSEL[] = {
238238

239239
#if defined(HAL_PCD_MODULE_ENABLED) || defined(HAL_HCD_MODULE_ENABLED)
240240
WEAK const PinMap PinMap_USB[] = {
241-
{PA_11, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DM
242-
{PA_12, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DP
241+
{PA_11, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DM
242+
{PA_12, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DP
243243
{NC, NP, 0}
244244
};
245245
#endif

variants/STM32L1xx/L151RET_L152RET_L162RET/PeripheralPins.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/*
1414
* Automatically generated from STM32L151RETx.xml, STM32L152RETx.xml
1515
* STM32L162RETx.xml
16-
* CubeMX DB release 6.0.21
16+
* CubeMX DB release 6.0.30
1717
*/
1818
#if !defined(CUSTOM_PERIPHERAL_PINS)
1919
#include "Arduino.h"
@@ -238,7 +238,6 @@ WEAK const PinMap PinMap_SPI_SSEL[] = {
238238

239239
#if defined(HAL_PCD_MODULE_ENABLED) || defined(HAL_HCD_MODULE_ENABLED)
240240
WEAK const PinMap PinMap_USB[] = {
241-
// GPIO_AF10_USB defined in the xml file anyway no AF.
242241
{PA_11, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DM
243242
{PA_12, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DP
244243
{NC, NP, 0}

variants/STM32L1xx/L151V(8-B)(H-T)x(A)_L152V(8-B)(H-T)x(A)/PeripheralPins.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* STM32L151V(8-B)Tx.xml, STM32L151V(8-B)TxA.xml
1616
* STM32L152V(8-B)Hx.xml, STM32L152V(8-B)HxA.xml
1717
* STM32L152V(8-B)Tx.xml, STM32L152V(8-B)TxA.xml
18-
* CubeMX DB release 6.0.21
18+
* CubeMX DB release 6.0.30
1919
*/
2020
#if !defined(CUSTOM_PERIPHERAL_PINS)
2121
#include "Arduino.h"
@@ -259,8 +259,8 @@ WEAK const PinMap PinMap_SPI_SSEL[] = {
259259

260260
#if defined(HAL_PCD_MODULE_ENABLED) || defined(HAL_HCD_MODULE_ENABLED)
261261
WEAK const PinMap PinMap_USB[] = {
262-
{PA_11, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DM
263-
{PA_12, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DP
262+
{PA_11, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DM
263+
{PA_12, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DP
264264
{NC, NP, 0}
265265
};
266266
#endif

variants/STM32L1xx/L151VC(H-T)x(A)_L152VC(H-T)x(A)_L162VC(H-T)x(A)/PeripheralPins.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* STM32L152VCTx.xml, STM32L152VCTxA.xml
1717
* STM32L162VCHx.xml, STM32L162VCTx.xml
1818
* STM32L162VCTxA.xml
19-
* CubeMX DB release 6.0.21
19+
* CubeMX DB release 6.0.30
2020
*/
2121
#if !defined(CUSTOM_PERIPHERAL_PINS)
2222
#include "Arduino.h"
@@ -272,8 +272,8 @@ WEAK const PinMap PinMap_SPI_SSEL[] = {
272272

273273
#if defined(HAL_PCD_MODULE_ENABLED) || defined(HAL_HCD_MODULE_ENABLED)
274274
WEAK const PinMap PinMap_USB[] = {
275-
{PA_11, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DM
276-
{PA_12, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DP
275+
{PA_11, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DM
276+
{PA_12, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DP
277277
{NC, NP, 0}
278278
};
279279
#endif

variants/STM32L1xx/L151VD(T-Y)xX_L151VE(T-Y)_L152VDTxX_L152VE(T-Y)_L162VDYxX_L162VE(T-Y)/PeripheralPins.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* STM32L152VDTxX.xml, STM32L152VETx.xml
1717
* STM32L152VEYx.xml, STM32L162VDYxX.xml
1818
* STM32L162VETx.xml, STM32L162VEYx.xml
19-
* CubeMX DB release 6.0.21
19+
* CubeMX DB release 6.0.30
2020
*/
2121
#if !defined(CUSTOM_PERIPHERAL_PINS)
2222
#include "Arduino.h"
@@ -277,8 +277,8 @@ WEAK const PinMap PinMap_SPI_SSEL[] = {
277277

278278
#if defined(HAL_PCD_MODULE_ENABLED) || defined(HAL_HCD_MODULE_ENABLED)
279279
WEAK const PinMap PinMap_USB[] = {
280-
{PA_11, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DM
281-
{PA_12, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DP
280+
{PA_11, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DM
281+
{PA_12, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DP
282282
{NC, NP, 0}
283283
};
284284
#endif

variants/STM32L1xx/L151VDT_L152VDT_L162VDT/PeripheralPins.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/*
1414
* Automatically generated from STM32L151VDTx.xml, STM32L152VDTx.xml
1515
* STM32L162VDTx.xml
16-
* CubeMX DB release 6.0.21
16+
* CubeMX DB release 6.0.30
1717
*/
1818
#if !defined(CUSTOM_PERIPHERAL_PINS)
1919
#include "Arduino.h"
@@ -273,8 +273,8 @@ WEAK const PinMap PinMap_SPI_SSEL[] = {
273273

274274
#if defined(HAL_PCD_MODULE_ENABLED) || defined(HAL_HCD_MODULE_ENABLED)
275275
WEAK const PinMap PinMap_USB[] = {
276-
{PA_11, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DM
277-
{PA_12, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DP
276+
{PA_11, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DM
277+
{PA_12, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DP
278278
{NC, NP, 0}
279279
};
280280
#endif

variants/STM32L1xx/L151ZCT_L152ZCT_L162ZCT/PeripheralPins.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/*
1414
* Automatically generated from STM32L151ZCTx.xml, STM32L152ZCTx.xml
1515
* STM32L162ZCTx.xml
16-
* CubeMX DB release 6.0.21
16+
* CubeMX DB release 6.0.30
1717
*/
1818
#if !defined(CUSTOM_PERIPHERAL_PINS)
1919
#include "Arduino.h"
@@ -289,8 +289,8 @@ WEAK const PinMap PinMap_SPI_SSEL[] = {
289289

290290
#if defined(HAL_PCD_MODULE_ENABLED) || defined(HAL_HCD_MODULE_ENABLED)
291291
WEAK const PinMap PinMap_USB[] = {
292-
{PA_11, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DM
293-
{PA_12, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DP
292+
{PA_11, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DM
293+
{PA_12, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DP
294294
{NC, NP, 0}
295295
};
296296
#endif

variants/STM32L1xx/L151ZDT_L152ZDT_L162ZDT/PeripheralPins.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/*
1414
* Automatically generated from STM32L151ZDTx.xml, STM32L152ZDTx.xml
1515
* STM32L162ZDTx.xml
16-
* CubeMX DB release 6.0.21
16+
* CubeMX DB release 6.0.30
1717
*/
1818
#if !defined(CUSTOM_PERIPHERAL_PINS)
1919
#include "Arduino.h"
@@ -293,8 +293,8 @@ WEAK const PinMap PinMap_SPI_SSEL[] = {
293293

294294
#if defined(HAL_PCD_MODULE_ENABLED) || defined(HAL_HCD_MODULE_ENABLED)
295295
WEAK const PinMap PinMap_USB[] = {
296-
{PA_11, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DM
297-
{PA_12, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DP
296+
{PA_11, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DM
297+
{PA_12, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DP
298298
{NC, NP, 0}
299299
};
300300
#endif

variants/STM32L1xx/L151ZET_L152ZET_L162ZET/PeripheralPins.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/*
1414
* Automatically generated from STM32L151ZETx.xml, STM32L152ZETx.xml
1515
* STM32L162ZETx.xml
16-
* CubeMX DB release 6.0.21
16+
* CubeMX DB release 6.0.30
1717
*/
1818
#if !defined(CUSTOM_PERIPHERAL_PINS)
1919
#include "Arduino.h"
@@ -293,8 +293,8 @@ WEAK const PinMap PinMap_SPI_SSEL[] = {
293293

294294
#if defined(HAL_PCD_MODULE_ENABLED) || defined(HAL_HCD_MODULE_ENABLED)
295295
WEAK const PinMap PinMap_USB[] = {
296-
{PA_11, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DM
297-
{PA_12, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DP
296+
{PA_11, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DM
297+
{PA_12, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DP
298298
{NC, NP, 0}
299299
};
300300
#endif

0 commit comments

Comments
 (0)