Skip to content

Commit 5afd9eb

Browse files
committed
STM32 PeripheralPins.h update with USB
1 parent 5340c00 commit 5afd9eb

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

targets/TARGET_STM/PeripheralPins.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
#include "pinmap.h"
3535
#include "PeripheralNames.h"
3636

37+
#define GPIO_AF_NONE 0
38+
3739
//*** ADC ***
3840
#if DEVICE_ANALOGIN
3941
extern const PinMap PinMap_ADC[];
@@ -89,4 +91,16 @@ extern const PinMap PinMap_QSPI_SCLK[];
8991
extern const PinMap PinMap_QSPI_SSEL[];
9092
#endif
9193

94+
#if DEVICE_USBDEVICE
95+
96+
#define USE_USB_NO_OTG 0
97+
#define USE_USB_OTG_FS 1
98+
#define USE_USB_OTG_HS 2
99+
#define USE_USB_HS_IN_FS 3
100+
101+
extern const PinMap PinMap_USB_HS[];
102+
extern const PinMap PinMap_USB_FS[];
103+
104+
#endif /* DEVICE_USBDEVICE */
105+
92106
#endif

0 commit comments

Comments
 (0)