diff options
Diffstat (limited to 'source/usbcfg.c')
-rw-r--r-- | source/usbcfg.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/usbcfg.c b/source/usbcfg.c index 051fcd5..b726e23 100644 --- a/source/usbcfg.c +++ b/source/usbcfg.c @@ -335,7 +335,11 @@ const USBConfig usbcfg = { * Serial over USB driver configuration.
*/
const SerialUSBConfig serusbcfg = {
+#if defined(TARGET_PLATFORM_H7)
&USBD2,
+#else
+ &USBD1,
+#endif
USBD1_DATA_REQUEST_EP,
USBD1_DATA_AVAILABLE_EP,
USBD1_INTERRUPT_REQUEST_EP
|