Skip to content

Commit b55ae75

Browse files
committed
STM32WB USB pins addition
1 parent fbad426 commit b55ae75

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

targets/TARGET_STM/TARGET_STM32WB/TARGET_STM32WB55xG/TARGET_NUCLEO_WB55RG/PeripheralPins.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,3 +251,12 @@ MBED_WEAK const PinMap PinMap_QSPI_SSEL[] = {
251251
{PB_11, QSPI_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF10_QUADSPI)}, // QUADSPI_BK1_NCS
252252
{NC, NC, 0}
253253
};
254+
255+
//*** USBDEVICE ***
256+
257+
MBED_WEAK const PinMap PinMap_USB[] = {
258+
{PA_11, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DM // Connected to USB_DM
259+
{PA_12, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DP // Connected to USB_DP
260+
// {PA_13, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF10_USB)}, // USB_NOE // Connected to JTMS
261+
{NC, NC, 0}
262+
};

targets/TARGET_STM/TARGET_STM32WB/TARGET_STM32WB55xG/TARGET_NUCLEO_WB55RG/PinNames.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ typedef enum {
151151
SPI_CS = D10,
152152
PWM_OUT = D9,
153153

154-
/**** USB pins ****/
154+
/**** USB FS pins ****/
155155
USB_DM = PA_11,
156156
USB_DP = PA_12,
157157
USB_NOE = PA_13,

0 commit comments

Comments
 (0)