Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* STM32L151C(6-8-B)Ux.xml, STM32L151C(6-8-B)UxA.xml
* STM32L152C(6-8-B)Tx.xml, STM32L152C(6-8-B)TxA.xml
* STM32L152C(6-8-B)Ux.xml, STM32L152C(6-8-B)UxA.xml
* CubeMX DB release 6.0.21
* CubeMX DB release 6.0.30
*/
#if !defined(CUSTOM_PERIPHERAL_PINS)
#include "Arduino.h"
Expand Down Expand Up @@ -212,8 +212,8 @@ WEAK const PinMap PinMap_SPI_SSEL[] = {

#if defined(HAL_PCD_MODULE_ENABLED) || defined(HAL_HCD_MODULE_ENABLED)
WEAK const PinMap PinMap_USB[] = {
{PA_11, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DM
{PA_12, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DP
{PA_11, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DM
{PA_12, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DP
{NC, NP, 0}
};
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* Automatically generated from STM32L100R(8-B)Tx.xml, STM32L100R(8-B)TxA.xml
* STM32L151R(6-8-B)Tx.xml, STM32L151R(6-8-B)TxA.xml
* STM32L152R(6-8-B)Tx.xml, STM32L152R(6-8-B)TxA.xml
* CubeMX DB release 6.0.21
* CubeMX DB release 6.0.30
*/
#if !defined(CUSTOM_PERIPHERAL_PINS)
#include "Arduino.h"
Expand Down Expand Up @@ -222,8 +222,8 @@ WEAK const PinMap PinMap_SPI_SSEL[] = {

#if defined(HAL_PCD_MODULE_ENABLED) || defined(HAL_HCD_MODULE_ENABLED)
WEAK const PinMap PinMap_USB[] = {
{PA_11, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DM
{PA_12, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DP
{PA_11, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DM
{PA_12, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DP
{NC, NP, 0}
};
#endif
Expand Down
6 changes: 3 additions & 3 deletions variants/STM32L1xx/L100RCT/PeripheralPins.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/
/*
* Automatically generated from STM32L100RCTx.xml
* CubeMX DB release 6.0.21
* CubeMX DB release 6.0.30
*/
#if !defined(CUSTOM_PERIPHERAL_PINS)
#include "Arduino.h"
Expand Down Expand Up @@ -228,8 +228,8 @@ WEAK const PinMap PinMap_SPI_SSEL[] = {

#if defined(HAL_PCD_MODULE_ENABLED) || defined(HAL_HCD_MODULE_ENABLED)
WEAK const PinMap PinMap_USB[] = {
{PA_11, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DM
{PA_12, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DP
{PA_11, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DM
{PA_12, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DP
{NC, NP, 0}
};
#endif
Expand Down
6 changes: 3 additions & 3 deletions variants/STM32L1xx/L151CC(T-U)_L152CC(T-U)/PeripheralPins.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/*
* Automatically generated from STM32L151CCTx.xml, STM32L151CCUx.xml
* STM32L152CCTx.xml, STM32L152CCUx.xml
* CubeMX DB release 6.0.21
* CubeMX DB release 6.0.30
*/
#if !defined(CUSTOM_PERIPHERAL_PINS)
#include "Arduino.h"
Expand Down Expand Up @@ -218,8 +218,8 @@ WEAK const PinMap PinMap_SPI_SSEL[] = {

#if defined(HAL_PCD_MODULE_ENABLED) || defined(HAL_HCD_MODULE_ENABLED)
WEAK const PinMap PinMap_USB[] = {
{PA_11, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DM
{PA_12, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DP
{PA_11, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DM
{PA_12, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DP
{NC, NP, 0}
};
#endif
Expand Down
6 changes: 3 additions & 3 deletions variants/STM32L1xx/L151QCH_L152QCH_L162QCH/PeripheralPins.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/*
* Automatically generated from STM32L151QCHx.xml, STM32L152QCHx.xml
* STM32L162QCHx.xml
* CubeMX DB release 6.0.21
* CubeMX DB release 6.0.30
*/
#if !defined(CUSTOM_PERIPHERAL_PINS)
#include "Arduino.h"
Expand Down Expand Up @@ -288,8 +288,8 @@ WEAK const PinMap PinMap_SPI_SSEL[] = {

#if defined(HAL_PCD_MODULE_ENABLED) || defined(HAL_HCD_MODULE_ENABLED)
WEAK const PinMap PinMap_USB[] = {
{PA_11, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DM
{PA_12, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DP
{PA_11, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DM
{PA_12, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DP
{NC, NP, 0}
};
#endif
Expand Down
6 changes: 3 additions & 3 deletions variants/STM32L1xx/L151QDH_L152QDH_L162QDH/PeripheralPins.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/*
* Automatically generated from STM32L151QDHx.xml, STM32L152QDHx.xml
* STM32L162QDHx.xml
* CubeMX DB release 6.0.21
* CubeMX DB release 6.0.30
*/
#if !defined(CUSTOM_PERIPHERAL_PINS)
#include "Arduino.h"
Expand Down Expand Up @@ -292,8 +292,8 @@ WEAK const PinMap PinMap_SPI_SSEL[] = {

#if defined(HAL_PCD_MODULE_ENABLED) || defined(HAL_HCD_MODULE_ENABLED)
WEAK const PinMap PinMap_USB[] = {
{PA_11, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DM
{PA_12, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DP
{PA_11, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DM
{PA_12, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DP
{NC, NP, 0}
};
#endif
Expand Down
6 changes: 3 additions & 3 deletions variants/STM32L1xx/L151QEH_L152QEH/PeripheralPins.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/
/*
* Automatically generated from STM32L151QEHx.xml, STM32L152QEHx.xml
* CubeMX DB release 6.0.21
* CubeMX DB release 6.0.30
*/
#if !defined(CUSTOM_PERIPHERAL_PINS)
#include "Arduino.h"
Expand Down Expand Up @@ -291,8 +291,8 @@ WEAK const PinMap PinMap_SPI_SSEL[] = {

#if defined(HAL_PCD_MODULE_ENABLED) || defined(HAL_HCD_MODULE_ENABLED)
WEAK const PinMap PinMap_USB[] = {
{PA_11, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DM
{PA_12, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DP
{PA_11, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DM
{PA_12, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DP
{NC, NP, 0}
};
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/*
* Automatically generated from STM32L151R(6-8-B)Hx.xml, STM32L151R(6-8-B)HxA.xml
* STM32L152R(6-8-B)Hx.xml, STM32L152R(6-8-B)HxA.xml
* CubeMX DB release 6.0.21
* CubeMX DB release 6.0.30
*/
#if !defined(CUSTOM_PERIPHERAL_PINS)
#include "Arduino.h"
Expand Down Expand Up @@ -220,8 +220,8 @@ WEAK const PinMap PinMap_SPI_SSEL[] = {

#if defined(HAL_PCD_MODULE_ENABLED) || defined(HAL_HCD_MODULE_ENABLED)
WEAK const PinMap PinMap_USB[] = {
{PA_11, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DM
{PA_12, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DP
{PA_11, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DM
{PA_12, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DP
{NC, NP, 0}
};
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* STM32L152RCTx.xml, STM32L152RCTxA.xml
* STM32L152UCYx.xml, STM32L162RCTx.xml
* STM32L162RCTxA.xml
* CubeMX DB release 6.0.21
* CubeMX DB release 6.0.30
*/
#if !defined(CUSTOM_PERIPHERAL_PINS)
#include "Arduino.h"
Expand Down Expand Up @@ -236,8 +236,8 @@ WEAK const PinMap PinMap_SPI_SSEL[] = {

#if defined(HAL_PCD_MODULE_ENABLED) || defined(HAL_HCD_MODULE_ENABLED)
WEAK const PinMap PinMap_USB[] = {
{PA_11, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DM
{PA_12, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DP
{PA_11, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DM
{PA_12, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DP
{NC, NP, 0}
};
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* Automatically generated from STM32L151RDTx.xml, STM32L151RDYx.xml
* STM32L152RDTx.xml, STM32L152RDYx.xml
* STM32L162RDTx.xml, STM32L162RDYx.xml
* CubeMX DB release 6.0.21
* CubeMX DB release 6.0.30
*/
#if !defined(CUSTOM_PERIPHERAL_PINS)
#include "Arduino.h"
Expand Down Expand Up @@ -238,8 +238,8 @@ WEAK const PinMap PinMap_SPI_SSEL[] = {

#if defined(HAL_PCD_MODULE_ENABLED) || defined(HAL_HCD_MODULE_ENABLED)
WEAK const PinMap PinMap_USB[] = {
{PA_11, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DM
{PA_12, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DP
{PA_11, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DM
{PA_12, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DP
{NC, NP, 0}
};
#endif
Expand Down
3 changes: 1 addition & 2 deletions variants/STM32L1xx/L151RET_L152RET_L162RET/PeripheralPins.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/*
* Automatically generated from STM32L151RETx.xml, STM32L152RETx.xml
* STM32L162RETx.xml
* CubeMX DB release 6.0.21
* CubeMX DB release 6.0.30
*/
#if !defined(CUSTOM_PERIPHERAL_PINS)
#include "Arduino.h"
Expand Down Expand Up @@ -238,7 +238,6 @@ WEAK const PinMap PinMap_SPI_SSEL[] = {

#if defined(HAL_PCD_MODULE_ENABLED) || defined(HAL_HCD_MODULE_ENABLED)
WEAK const PinMap PinMap_USB[] = {
// GPIO_AF10_USB defined in the xml file anyway no AF.
{PA_11, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DM
{PA_12, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DP
{NC, NP, 0}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* STM32L151V(8-B)Tx.xml, STM32L151V(8-B)TxA.xml
* STM32L152V(8-B)Hx.xml, STM32L152V(8-B)HxA.xml
* STM32L152V(8-B)Tx.xml, STM32L152V(8-B)TxA.xml
* CubeMX DB release 6.0.21
* CubeMX DB release 6.0.30
*/
#if !defined(CUSTOM_PERIPHERAL_PINS)
#include "Arduino.h"
Expand Down Expand Up @@ -259,8 +259,8 @@ WEAK const PinMap PinMap_SPI_SSEL[] = {

#if defined(HAL_PCD_MODULE_ENABLED) || defined(HAL_HCD_MODULE_ENABLED)
WEAK const PinMap PinMap_USB[] = {
{PA_11, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DM
{PA_12, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DP
{PA_11, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DM
{PA_12, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DP
{NC, NP, 0}
};
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* STM32L152VCTx.xml, STM32L152VCTxA.xml
* STM32L162VCHx.xml, STM32L162VCTx.xml
* STM32L162VCTxA.xml
* CubeMX DB release 6.0.21
* CubeMX DB release 6.0.30
*/
#if !defined(CUSTOM_PERIPHERAL_PINS)
#include "Arduino.h"
Expand Down Expand Up @@ -272,8 +272,8 @@ WEAK const PinMap PinMap_SPI_SSEL[] = {

#if defined(HAL_PCD_MODULE_ENABLED) || defined(HAL_HCD_MODULE_ENABLED)
WEAK const PinMap PinMap_USB[] = {
{PA_11, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DM
{PA_12, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DP
{PA_11, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DM
{PA_12, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DP
{NC, NP, 0}
};
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* STM32L152VDTxX.xml, STM32L152VETx.xml
* STM32L152VEYx.xml, STM32L162VDYxX.xml
* STM32L162VETx.xml, STM32L162VEYx.xml
* CubeMX DB release 6.0.21
* CubeMX DB release 6.0.30
*/
#if !defined(CUSTOM_PERIPHERAL_PINS)
#include "Arduino.h"
Expand Down Expand Up @@ -277,8 +277,8 @@ WEAK const PinMap PinMap_SPI_SSEL[] = {

#if defined(HAL_PCD_MODULE_ENABLED) || defined(HAL_HCD_MODULE_ENABLED)
WEAK const PinMap PinMap_USB[] = {
{PA_11, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DM
{PA_12, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DP
{PA_11, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DM
{PA_12, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DP
{NC, NP, 0}
};
#endif
Expand Down
6 changes: 3 additions & 3 deletions variants/STM32L1xx/L151VDT_L152VDT_L162VDT/PeripheralPins.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/*
* Automatically generated from STM32L151VDTx.xml, STM32L152VDTx.xml
* STM32L162VDTx.xml
* CubeMX DB release 6.0.21
* CubeMX DB release 6.0.30
*/
#if !defined(CUSTOM_PERIPHERAL_PINS)
#include "Arduino.h"
Expand Down Expand Up @@ -273,8 +273,8 @@ WEAK const PinMap PinMap_SPI_SSEL[] = {

#if defined(HAL_PCD_MODULE_ENABLED) || defined(HAL_HCD_MODULE_ENABLED)
WEAK const PinMap PinMap_USB[] = {
{PA_11, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DM
{PA_12, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DP
{PA_11, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DM
{PA_12, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DP
{NC, NP, 0}
};
#endif
Expand Down
6 changes: 3 additions & 3 deletions variants/STM32L1xx/L151ZCT_L152ZCT_L162ZCT/PeripheralPins.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/*
* Automatically generated from STM32L151ZCTx.xml, STM32L152ZCTx.xml
* STM32L162ZCTx.xml
* CubeMX DB release 6.0.21
* CubeMX DB release 6.0.30
*/
#if !defined(CUSTOM_PERIPHERAL_PINS)
#include "Arduino.h"
Expand Down Expand Up @@ -289,8 +289,8 @@ WEAK const PinMap PinMap_SPI_SSEL[] = {

#if defined(HAL_PCD_MODULE_ENABLED) || defined(HAL_HCD_MODULE_ENABLED)
WEAK const PinMap PinMap_USB[] = {
{PA_11, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DM
{PA_12, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DP
{PA_11, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DM
{PA_12, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DP
{NC, NP, 0}
};
#endif
Expand Down
6 changes: 3 additions & 3 deletions variants/STM32L1xx/L151ZDT_L152ZDT_L162ZDT/PeripheralPins.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/*
* Automatically generated from STM32L151ZDTx.xml, STM32L152ZDTx.xml
* STM32L162ZDTx.xml
* CubeMX DB release 6.0.21
* CubeMX DB release 6.0.30
*/
#if !defined(CUSTOM_PERIPHERAL_PINS)
#include "Arduino.h"
Expand Down Expand Up @@ -293,8 +293,8 @@ WEAK const PinMap PinMap_SPI_SSEL[] = {

#if defined(HAL_PCD_MODULE_ENABLED) || defined(HAL_HCD_MODULE_ENABLED)
WEAK const PinMap PinMap_USB[] = {
{PA_11, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DM
{PA_12, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DP
{PA_11, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DM
{PA_12, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DP
{NC, NP, 0}
};
#endif
Expand Down
6 changes: 3 additions & 3 deletions variants/STM32L1xx/L151ZET_L152ZET_L162ZET/PeripheralPins.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/*
* Automatically generated from STM32L151ZETx.xml, STM32L152ZETx.xml
* STM32L162ZETx.xml
* CubeMX DB release 6.0.21
* CubeMX DB release 6.0.30
*/
#if !defined(CUSTOM_PERIPHERAL_PINS)
#include "Arduino.h"
Expand Down Expand Up @@ -293,8 +293,8 @@ WEAK const PinMap PinMap_SPI_SSEL[] = {

#if defined(HAL_PCD_MODULE_ENABLED) || defined(HAL_HCD_MODULE_ENABLED)
WEAK const PinMap PinMap_USB[] = {
{PA_11, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DM
{PA_12, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DP
{PA_11, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DM
{PA_12, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DP
{NC, NP, 0}
};
#endif
Expand Down