use usbd_event_handler instead of usbd_configure_done_callback

This commit is contained in:
sakimisu
2023-06-21 21:26:25 +08:00
parent 822cd9d679
commit 340fa4e024
23 changed files with 512 additions and 74 deletions

View File

@@ -95,9 +95,29 @@ const uint8_t msc_ram_descriptor[] = {
0x00
};
void usbd_configure_done_callback(void)
void usbd_event_handler(uint8_t event)
{
/* do nothing */
switch (event) {
case USBD_EVENT_RESET:
break;
case USBD_EVENT_CONNECTED:
break;
case USBD_EVENT_DISCONNECTED:
break;
case USBD_EVENT_RESUME:
break;
case USBD_EVENT_SUSPEND:
break;
case USBD_EVENT_CONFIGURED:
break;
case USBD_EVENT_SET_REMOTE_WAKEUP:
break;
case USBD_EVENT_CLR_REMOTE_WAKEUP:
break;
default:
break;
}
}
#define BLOCK_SIZE 512