Skip to content

Commit 6393412

Browse files
authored
Merge pull request #1641 from hathach/fix-1634
re-added code in pr 1438 to fix compile with h7 with 1 usb otg
2 parents b624664 + 7a48b1f commit 6393412

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/portable/synopsys/dwc2/dwc2_stm32.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@
6464

6565
// NOTE: H7 with only 1 USB port: H72x / H73x / H7Ax / H7Bx
6666
// USB_OTG_FS_PERIPH_BASE and OTG_FS_IRQn not defined
67+
#if (! defined USB2_OTG_FS)
68+
#define USB_OTG_FS_PERIPH_BASE USB1_OTG_HS_PERIPH_BASE
69+
#define OTG_FS_IRQn OTG_HS_IRQn
70+
#endif
6771

6872
#elif CFG_TUSB_MCU == OPT_MCU_STM32F7
6973
#include "stm32f7xx.h"

0 commit comments

Comments
 (0)