diff options
| author | Nikitarc <[email protected]> | 2022-04-19 21:53:00 +0200 |
|---|---|---|
| committer | Nikitarc <[email protected]> | 2022-04-19 21:53:00 +0200 |
| commit | 52190e7308c723df952c8bfced25f70d333e22fe (patch) | |
| tree | c56efe901c1bb5a3b98d44194eefe9e6bc42f13e /src | |
| parent | 9c8c5c1c53214b8954bb28c33a496b5b423d5ecc (diff) | |
Update dwc2_stm32.h
Support STM32H7 with only 1 USB port: H72x / H73x / H7Ax / H7Bx
Diffstat (limited to 'src')
| -rw-r--r-- | src/portable/synopsys/dwc2/dwc2_stm32.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/portable/synopsys/dwc2/dwc2_stm32.h b/src/portable/synopsys/dwc2/dwc2_stm32.h index 469045ac4..c4a4d310f 100644 --- a/src/portable/synopsys/dwc2/dwc2_stm32.h +++ b/src/portable/synopsys/dwc2/dwc2_stm32.h @@ -56,6 +56,11 @@ #define EP_FIFO_SIZE_FS 4096 #define EP_MAX_HS 9 #define EP_FIFO_SIZE_HS 4096 + #if (! defined USB2_OTG_FS) + // H7 with only 1 USB port: H72x / H73x / H7Ax / H7Bx + // USB_OTG_FS_PERIPH_BASE and OTG_FS_IRQn not defined + #define USB_OTG_FS_PERIPH_BASE USB1_OTG_HS_PERIPH_BASE + #define OTG_FS_IRQn OTG_HS_IRQn #elif CFG_TUSB_MCU == OPT_MCU_STM32F7 #include "stm32f7xx.h" |
