fix endpoint buffer address set error bug.add print color define.

This commit is contained in:
WoodData
2022-06-02 09:08:07 +08:00
committed by sakumisu
parent 9248fe04cc
commit 84a68fc040
3 changed files with 12 additions and 1 deletions

View File

@@ -382,8 +382,9 @@ void USBD_IRQHandler(void)
}
}
if (wIstr & USB_ISTR_RESET) {
usbd_event_notify_handler(USBD_EVENT_RESET, NULL);
memset(&usb_dc_cfg, 0, sizeof(struct usb_dc_config_priv));
usb_dc_cfg.pma_offset = USB_BTABLE_SIZE;
usbd_event_notify_handler(USBD_EVENT_RESET, NULL);
USB->ISTR &= (uint16_t)(~USB_ISTR_RESET);
}
if (wIstr & USB_ISTR_PMAOVR) {