File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ PCD_HandleTypeDef g_hpcd;
51
51
void HAL_PCD_MspInit (PCD_HandleTypeDef * hpcd )
52
52
{
53
53
const PinMap * map = NULL ;
54
- #if defined(PWR_CR2_USV )
54
+ #if defined(PWR_CR2_USV ) || defined( PWR_SVMCR_USV )
55
55
/* Enable VDDUSB on Pwrctrl CR2 register*/
56
56
HAL_PWREx_EnableVddUSB ();
57
57
#endif
@@ -136,8 +136,10 @@ void HAL_PCD_MspInit(PCD_HandleTypeDef *hpcd)
136
136
#ifdef __HAL_USB_OTG_FS_WAKEUP_EXTI_ENABLE_RISING_EDGE
137
137
__HAL_USB_OTG_FS_WAKEUP_EXTI_ENABLE_RISING_EDGE ();
138
138
#endif
139
+ #ifdef __HAL_USB_OTG_FS_WAKEUP_EXTI_ENABLE_IT
139
140
__HAL_USB_OTG_FS_WAKEUP_EXTI_ENABLE_IT ();
140
- #if !defined(STM32L4xx )
141
+ #endif
142
+ #if !defined(STM32L4xx ) && !defined(STM32U5xx )
141
143
/* Set EXTI Wakeup Interrupt priority */
142
144
HAL_NVIC_SetPriority (OTG_FS_WKUP_IRQn , USBD_IRQ_PRIO , USBD_IRQ_SUBPRIO );
143
145
You can’t perform that action at this time.
0 commit comments