mirror of
https://github.com/sakumisu/CherryUSB.git
synced 2025-10-14 02:58:19 +08:00
Fix the bug that dwc2_halt may cause hardware abnormality
This commit is contained in:
@@ -352,7 +352,6 @@ static void dwc2_halt(struct usbh_bus *bus, uint8_t ch_num)
|
||||
value = USB_OTG_HC(ch_num)->HCCHAR;
|
||||
value |= USB_OTG_HCCHAR_CHDIS;
|
||||
value |= USB_OTG_HCCHAR_CHENA;
|
||||
value &= ~USB_OTG_HCCHAR_EPDIR;
|
||||
USB_OTG_HC(ch_num)->HCCHAR = value;
|
||||
do {
|
||||
if (++count > 200000U) {
|
||||
|
Reference in New Issue
Block a user