Skip to content

Commit

Permalink
Fix #190: Fix #189: don't enable ERR interrupt
Browse files Browse the repository at this point in the history
  • Loading branch information
terrillmoore committed Mar 18, 2022
1 parent d5aac85 commit bd2d81b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system/Drivers/STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_pcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ HAL_StatusTypeDef HAL_PCD_Init(PCD_HandleTypeDef *hpcd)
hpcd->Instance->BTABLE = BTABLE_ADDRESS;

/*set wInterrupt_Mask global variable*/
wInterrupt_Mask = USB_CNTR_CTRM | USB_CNTR_WKUPM | USB_CNTR_SUSPM | USB_CNTR_ERRM \
wInterrupt_Mask = USB_CNTR_CTRM | USB_CNTR_WKUPM | USB_CNTR_SUSPM /* | USB_CNTR_ERRM */ \
| USB_CNTR_SOFM | USB_CNTR_ESOFM | USB_CNTR_RESETM;

/*Set interrupt mask*/
Expand Down Expand Up @@ -362,7 +362,7 @@ void HAL_PCD_IRQHandler(PCD_HandleTypeDef *hpcd)
hpcd->Instance->CNTR &= (uint16_t) ~(USB_CNTR_LPMODE);

/*set wInterrupt_Mask global variable*/
wInterrupt_Mask = USB_CNTR_CTRM | USB_CNTR_WKUPM | USB_CNTR_SUSPM | USB_CNTR_ERRM \
wInterrupt_Mask = USB_CNTR_CTRM | USB_CNTR_WKUPM | USB_CNTR_SUSPM /* | USB_CNTR_ERRM */ \
| USB_CNTR_SOFM | USB_CNTR_ESOFM | USB_CNTR_RESETM;

/*Set interrupt mask*/
Expand Down

0 comments on commit bd2d81b

Please sign in to comment.