Skip to content

Commit 3e4989b

Browse files
committed
STM32WB USB pins addition
1 parent 4f50c51 commit 3e4989b

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ typedef enum {
5454
QSPI_1 = (int)QUADSPI_R_BASE
5555
} QSPIName;
5656

57+
typedef enum {
58+
USB_FS = (int)USB_BASE,
59+
} USBName;
60+
5761
#ifdef __cplusplus
5862
}
5963
#endif

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_FS[] = {
258+
{PA_11, USB_FS, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DM // Connected to USB_DM
259+
{PA_12, USB_FS, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF10_USB)}, // USB_DP // Connected to USB_DP
260+
// {PA_13, USB_FS, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF10_USB)}, // USB_NOE // Connected to JTMS
261+
{NC, NC, 0}
262+
};

0 commit comments

Comments
 (0)