fix endpoint buffer address set error bug.add print color define.
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -1112,7 +1112,10 @@ typedef struct
|
||||
*/
|
||||
|
||||
#define BTABLE_ADDRESS 0x000U
|
||||
|
||||
#ifndef PMA_ACCESS
|
||||
#define PMA_ACCESS 2U
|
||||
#endif
|
||||
/******************** Bit definition for USB_COUNTn_RX register *************/
|
||||
#define USB_CNTRX_NBLK_MSK (0x1FU << 10)
|
||||
#define USB_CNTRX_BLSIZE (0x1U << 15)
|
||||
|
||||
Reference in New Issue
Block a user