summaryrefslogtreecommitdiff
path: root/src/portable
diff options
context:
space:
mode:
authorhathach <[email protected]>2023-10-18 18:43:07 +0700
committerhathach <[email protected]>2023-10-18 18:43:07 +0700
commit27a2c8cba4dc7c56509bb3d9b6415a6fe8f638ac (patch)
treefb9615b6bf2d053573f32337d6e3e599c45a0457 /src/portable
parent5025e80c9ebd117f077750d7021c152f8c762764 (diff)
adding nulceo stm32u5a5, fix clock configure issue
dwc2 core stuck at reset
Diffstat (limited to 'src/portable')
-rw-r--r--src/portable/synopsys/dwc2/dwc2_stm32.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/portable/synopsys/dwc2/dwc2_stm32.h b/src/portable/synopsys/dwc2/dwc2_stm32.h
index aa77511fa..a97a10223 100644
--- a/src/portable/synopsys/dwc2/dwc2_stm32.h
+++ b/src/portable/synopsys/dwc2/dwc2_stm32.h
@@ -86,18 +86,16 @@
#include "stm32u5xx.h"
// NOTE: STM595/5A5/599/5A9 only have 1 USB port (with integrated HS PHY)
// USB_OTG_FS_BASE and OTG_FS_IRQn not defined
- #if (! defined USB_OTG_FS)
+ #if !defined(USB_OTG_FS)
#define USB_OTG_HS_PERIPH_BASE USB_OTG_HS_BASE
#define EP_MAX_HS 9
#define EP_FIFO_SIZE_HS 4096
- #define USB_OTG_FS_PERIPH_BASE USB_OTG_HS_BASE
- #define OTG_FS_IRQn OTG_HS_IRQn
+ //#define OTG_FS_IRQn OTG_HS_IRQn
#else
#define USB_OTG_FS_PERIPH_BASE USB_OTG_FS_BASE
+ #define EP_MAX_FS 6
+ #define EP_FIFO_SIZE_FS 1280
#endif
- #define EP_MAX_FS 6
- #define EP_FIFO_SIZE_FS 1280
-
#else
#error "Unsupported MCUs"
#endif