Skip to content

Commit 305cdd9

Browse files
committed
[Nucleo L152RE] Fix USB AF
Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
1 parent 2400bb6 commit 305cdd9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/genpinmap/Arduino/STM32L152RETx/PeripheralPins.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,8 @@ const PinMap PinMap_SPI_SSEL[] = {
245245

246246
#ifdef HAL_PCD_MODULE_ENABLED
247247
const PinMap PinMap_USB[] = {
248-
{PA_11, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DM
249-
{PA_12, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DP
248+
{PA_11, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, 0)}, // USB_DM
249+
{PA_12, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, 0)}, // USB_DP
250250
{NC, NP, 0}
251251
};
252252
#endif

0 commit comments

Comments
 (0)