Skip to content

Commit 0e3e2ca

Browse files
committed
Update USB-related stuff
1 parent 52f407c commit 0e3e2ca

File tree

6 files changed

+20
-965
lines changed

6 files changed

+20
-965
lines changed

Diff for: variants/RUMBA32_F446VE/PeripheralPins.c

+15
Original file line numberDiff line numberDiff line change
@@ -335,3 +335,18 @@ const PinMap PinMap_QUADSPI[] = {
335335
{NC, NP, 0}
336336
};
337337
#endif
338+
339+
//*** USB ***
340+
341+
#ifdef HAL_PCD_MODULE_ENABLED
342+
const PinMap PinMap_USB_OTG_FS[] = {
343+
// {PA_8, USB_OTG_FS, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF10_OTG_FS)}, // USB_OTG_FS_SOF
344+
// {PA_9, USB_OTG_FS, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, 0)}, // USB_OTG_FS_VBUS
345+
// {PA_10, USB_OTG_FS, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_PULLUP, GPIO_AF10_OTG_FS)}, // USB_OTG_FS_ID
346+
{PA_11, USB_OTG_FS, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF10_OTG_FS)}, // USB_OTG_FS_DM
347+
{PA_12, USB_OTG_FS, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF10_OTG_FS)}, // USB_OTG_FS_DP
348+
{NC, NP, 0}
349+
};
350+
#endif
351+
352+

Diff for: variants/RUMBA32_F446VE/PinNamesVar.h

+5
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,8 @@
2323
#ifdef PWR_WAKEUP_PIN8
2424
SYS_WKUP8 = NC,
2525
#endif
26+
/* USB */
27+
#ifdef USBCON
28+
USB_OTG_FS_DM = PA_11,
29+
USB_OTG_FS_DP = PA_12,
30+
#endif

0 commit comments

Comments
 (0)