aboutsummaryrefslogtreecommitdiffstats
path: root/source/usbcfg.c
diff options
context:
space:
mode:
authorclyne <clyne@bitgloo.com>2021-03-21 16:34:21 -0400
committerGitHub <noreply@github.com>2021-03-21 16:34:21 -0400
commit9b926b81ef1e8a4c7266494ae2a1369380e01b35 (patch)
tree746095fa69eccccdc1c2830fdd0c06bac01848f5 /source/usbcfg.c
parente080a26651f90c88176140d63a74c93c2f4041a2 (diff)
parenta4f1482a8b23d5f761f60d6f3821c84190d89e2f (diff)
Merge pull request #3 from tcsullivan/stm32h7
Stm32h7
Diffstat (limited to 'source/usbcfg.c')
-rw-r--r--source/usbcfg.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/usbcfg.c b/source/usbcfg.c
index 4c5809a..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