adding nulceo stm32u5a5, fix clock configure issue
dwc2 core stuck at reset
This commit is contained in:
		| @@ -217,9 +217,7 @@ | ||||
|  | ||||
|   // TypeC controller | ||||
|   #define TUP_USBIP_TYPEC_STM32 | ||||
|  | ||||
|   #define TUP_DCD_ENDPOINT_MAX    8 | ||||
|  | ||||
|   #define TUP_TYPEC_RHPORTS_NUM 1 | ||||
|  | ||||
| #elif TU_CHECK_MCU(OPT_MCU_STM32G0) | ||||
| @@ -261,14 +259,21 @@ | ||||
| #elif TU_CHECK_MCU(OPT_MCU_STM32U5) | ||||
|   #define TUP_USBIP_DWC2 | ||||
|   #define TUP_USBIP_DWC2_STM32 | ||||
|   #define TUP_DCD_ENDPOINT_MAX    6 | ||||
|  | ||||
|   // U59x/5Ax/5Fx/5Gx are highspeed with built-in HS PHY | ||||
|   #if defined(STM32U595xx) || defined(STM32U599xx) || defined(STM32U5A5xx) || defined(STM32U5A9xx) || \ | ||||
|       defined(STM32U5F7xx) || defined(STM32U5F9xx) || defined(STM32U5G7xx) || defined(STM32U5G9xx) | ||||
|     #define TUP_DCD_ENDPOINT_MAX  9 | ||||
|     #define TUP_RHPORT_HIGHSPEED  1 | ||||
|   #else | ||||
|     #define TUP_DCD_ENDPOINT_MAX  6 | ||||
|   #endif | ||||
|  | ||||
| #elif TU_CHECK_MCU(OPT_MCU_STM32L5) | ||||
|   #define TUP_USBIP_FSDEV | ||||
|   #define TUP_USBIP_FSDEV_STM32 | ||||
|   #define TUP_DCD_ENDPOINT_MAX    8 | ||||
|  | ||||
|  | ||||
| //--------------------------------------------------------------------+ | ||||
| // Sony | ||||
| //--------------------------------------------------------------------+ | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -174,10 +174,10 @@ | ||||
| // NXP LPC MCX | ||||
| #define OPT_MCU_MCXN9            2300  ///< NXP MCX N9 Series | ||||
|  | ||||
| // Helper to check if configured MCU is one of listed | ||||
| // Check if configured MCU is one of listed | ||||
| // Apply _TU_CHECK_MCU with || as separator to list of input | ||||
| #define _TU_CHECK_MCU(_m)   (CFG_TUSB_MCU == _m) | ||||
| #define TU_CHECK_MCU(...)   (TU_ARGS_APPLY(_TU_CHECK_MCU, ||, __VA_ARGS__)) | ||||
| #define _TU_CHECK_MCU(_m)    (CFG_TUSB_MCU == _m) | ||||
| #define TU_CHECK_MCU(...)    (TU_ARGS_APPLY(_TU_CHECK_MCU, ||, __VA_ARGS__)) | ||||
|  | ||||
| //--------------------------------------------------------------------+ | ||||
| // Supported OS | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 hathach
					hathach