We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13f43cc commit b23a041Copy full SHA for b23a041
targets/TARGET_STM/USBPhyHw.h
@@ -47,6 +47,13 @@
47
#define USBHAL_IRQn USB_LP_IRQn
48
#elif defined(TARGET_STM32F3)
49
#define USBHAL_IRQn USB_LP_CAN_RX0_IRQn
50
+#elif defined(TARGET_STM32G0)
51
+#define USB USB_DRD_FS
52
+#if defined(STM32G0B1xx)
53
+#define USBHAL_IRQn USB_UCPD1_2_IRQn
54
+#else
55
+#define USBHAL_IRQn USB_IRQn
56
+#endif
57
#elif defined(TARGET_STM32L5)
58
#define USBHAL_IRQn USB_FS_IRQn
59
#else
targets/targets.json
@@ -2939,8 +2939,14 @@
2939
"STM32G0B1xx"
2940
],
2941
"device_has_add": [
2942
- "ANALOGOUT"
2943
- ]
+ "ANALOGOUT",
+ "USBDEVICE"
2944
+ ],
2945
+ "config": {
2946
+ "usb_speed": {
2947
+ "value": "USE_USB_NO_OTG"
2948
+ }
2949
2950
},
2951
"NUCLEO_G0B1RE": {
2952
"inherits": [
0 commit comments