implement dcd disconnect/connect for lpc ip3511

This commit is contained in:
hathach
2020-04-16 16:05:57 +07:00
parent 969121df4f
commit 418b69f2db
3 changed files with 27 additions and 1 deletions
+2
View File
@@ -219,11 +219,13 @@ void dcd_remote_wakeup(uint8_t rhport)
void dcd_connect(uint8_t rhport)
{
(void) rhport;
sie_write(SIE_CMDCODE_DEVICE_STATUS, 1, SIE_DEV_STATUS_CONNECT_STATUS_MASK);
}
void dcd_disconnect(uint8_t rhport)
{
(void) rhport;
sie_write(SIE_CMDCODE_DEVICE_STATUS, 1, 0);
}