File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 9494 #define RCC_CR_HSIDY_Pos RCC_CR_HSIRDY_Pos
9595#endif
9696
97- /* STM32G0xx and some STM32U5xx defined USB_DRD_FS */
97+ /* STM32G0xx, STM32U0xx and some STM32U5xx defined USB_DRD_FS */
9898#if !defined(USB ) && defined(USB_DRD_FS )
9999 #define USB USB_DRD_FS
100100 #define PinMap_USB PinMap_USB_DRD_FS
101- #if defined(STM32H5xx ) || defined(STM32U5xx )
101+ #if defined(STM32H5xx ) || defined(STM32U0xx ) || defined( STM32U5xx )
102102 #define USB_BASE USB_DRD_BASE
103103 #if !defined(__HAL_RCC_USB_CLK_ENABLE )
104104 #define __HAL_RCC_USB_CLK_ENABLE __HAL_RCC_USB_FS_CLK_ENABLE
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ extern "C" {
7474#elif defined(STM32G0xx )
7575#define USB_IRQn USB_UCPD1_2_IRQn
7676#define USB_IRQHandler USB_UCPD1_2_IRQHandler
77- #elif defined(STM32H5xx )
77+ #elif defined(STM32H5xx ) || defined( STM32U0xx )
7878#define USB_IRQn USB_DRD_FS_IRQn
7979#define USB_IRQHandler USB_DRD_FS_IRQHandler
8080#elif defined(STM32U5xx ) && !defined(USB_DRD_FS )
You can’t perform that action at this time.
0 commit comments