Skip to content

Commit 52190e7

Browse files
author
Nikitarc
committed
Update dwc2_stm32.h
Support STM32H7 with only 1 USB port: H72x / H73x / H7Ax / H7Bx
1 parent 9c8c5c1 commit 52190e7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/portable/synopsys/dwc2/dwc2_stm32.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@
5656
#define EP_FIFO_SIZE_FS 4096
5757
#define EP_MAX_HS 9
5858
#define EP_FIFO_SIZE_HS 4096
59+
#if (! defined USB2_OTG_FS)
60+
// H7 with only 1 USB port: H72x / H73x / H7Ax / H7Bx
61+
// USB_OTG_FS_PERIPH_BASE and OTG_FS_IRQn not defined
62+
#define USB_OTG_FS_PERIPH_BASE USB1_OTG_HS_PERIPH_BASE
63+
#define OTG_FS_IRQn OTG_HS_IRQn
5964

6065
#elif CFG_TUSB_MCU == OPT_MCU_STM32F7
6166
#include "stm32f7xx.h"

0 commit comments

Comments
 (0)