File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 94
94
#define RCC_CR_HSIDY_Pos RCC_CR_HSIRDY_Pos
95
95
#endif
96
96
97
- /* STM32G0xx and some STM32U5xx defined USB_DRD_FS */
97
+ /* STM32G0xx, STM32U0xx and some STM32U5xx defined USB_DRD_FS */
98
98
#if !defined(USB ) && defined(USB_DRD_FS )
99
99
#define USB USB_DRD_FS
100
100
#define PinMap_USB PinMap_USB_DRD_FS
101
- #if defined(STM32H5xx ) || defined(STM32U5xx )
101
+ #if defined(STM32H5xx ) || defined(STM32U0xx ) || defined( STM32U5xx )
102
102
#define USB_BASE USB_DRD_BASE
103
103
#if !defined(__HAL_RCC_USB_CLK_ENABLE )
104
104
#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" {
74
74
#elif defined(STM32G0xx )
75
75
#define USB_IRQn USB_UCPD1_2_IRQn
76
76
#define USB_IRQHandler USB_UCPD1_2_IRQHandler
77
- #elif defined(STM32H5xx )
77
+ #elif defined(STM32H5xx ) || defined( STM32U0xx )
78
78
#define USB_IRQn USB_DRD_FS_IRQn
79
79
#define USB_IRQHandler USB_DRD_FS_IRQHandler
80
80
#elif defined(STM32U5xx ) && !defined(USB_DRD_FS )
You can’t perform that action at this time.
0 commit comments