File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
system/Drivers/STM32L0xx_HAL_Driver/Src Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 5252/// \ref _mcci_arduino_version_calc() to compare relative versions.
5353///
5454#define _mcci_arduino_version \
55- _mcci_arduino_version_calc(3, 0, 5, 1 ) /* v3.0.5-pre1 */
55+ _mcci_arduino_version_calc(3, 0, 5, 2 ) /* v3.0.5-pre2 */
5656
5757///
5858/// \brief get major version code from semantic version value
Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ HAL_StatusTypeDef HAL_PCD_Init(PCD_HandleTypeDef *hpcd)
190190 hpcd -> Instance -> BTABLE = BTABLE_ADDRESS ;
191191
192192 /*set wInterrupt_Mask global variable*/
193- wInterrupt_Mask = USB_CNTR_CTRM | USB_CNTR_WKUPM | USB_CNTR_SUSPM | USB_CNTR_ERRM \
193+ wInterrupt_Mask = USB_CNTR_CTRM | USB_CNTR_WKUPM | USB_CNTR_SUSPM /* | USB_CNTR_ERRM */ \
194194 | USB_CNTR_SOFM | USB_CNTR_ESOFM | USB_CNTR_RESETM ;
195195
196196 /*Set interrupt mask*/
@@ -353,7 +353,8 @@ void HAL_PCD_IRQHandler(PCD_HandleTypeDef *hpcd)
353353
354354 if (__HAL_PCD_GET_FLAG (hpcd , USB_ISTR_ERR ))
355355 {
356- __HAL_PCD_CLEAR_FLAG (hpcd , USB_ISTR_ERR );
356+ __HAL_PCD_CLEAR_FLAG (hpcd , USB_ISTR_ERR );
357+ hpcd -> Instance -> CNTR &= ~USB_ISTR_ERR ;
357358 }
358359
359360 if (__HAL_PCD_GET_FLAG (hpcd , USB_ISTR_WKUP ))
@@ -362,7 +363,7 @@ void HAL_PCD_IRQHandler(PCD_HandleTypeDef *hpcd)
362363 hpcd -> Instance -> CNTR &= (uint16_t ) ~(USB_CNTR_LPMODE );
363364
364365 /*set wInterrupt_Mask global variable*/
365- wInterrupt_Mask = USB_CNTR_CTRM | USB_CNTR_WKUPM | USB_CNTR_SUSPM | USB_CNTR_ERRM \
366+ wInterrupt_Mask = USB_CNTR_CTRM | USB_CNTR_WKUPM | USB_CNTR_SUSPM /* | USB_CNTR_ERRM */ \
366367 | USB_CNTR_SOFM | USB_CNTR_ESOFM | USB_CNTR_RESETM ;
367368
368369 /*Set interrupt mask*/
You can’t perform that action at this time.
0 commit comments