nuvoton: add dcd_disconnect() dcd_connect()

This commit is contained in:
Peter Lawrence
2020-04-07 10:51:55 -05:00
parent bfc43bad81
commit ccb65fcf6a
3 changed files with 41 additions and 0 deletions
+12
View File
@@ -446,4 +446,16 @@ void dcd_isr(uint8_t rhport)
USBD_IRQHandler();
}
void dcd_disconnect(uint8_t rhport)
{
(void) rhport;
usb_detach();
}
void dcd_connect(uint8_t rhport)
{
(void) rhport;
usb_attach();
}
#endif