more dcd clean up

This commit is contained in:
hathach 2021-08-11 20:36:23 +07:00
parent 979af6c2a8
commit a2baf9427d
No known key found for this signature in database
GPG Key ID: 2FA891220FBFD581
1 changed files with 3 additions and 8 deletions

View File

@ -233,13 +233,6 @@ static void reset_ep0(void)
}
}
static void ep0_0len_status(void)
{
// Send 0len complete response on EP0 IN
reset_ep0();
hw_endpoint_xfer(0x80, NULL, 0);
}
static void bus_reset(void)
{
@ -405,7 +398,9 @@ void dcd_set_address (uint8_t rhport, uint8_t dev_addr)
assert(rhport == 0);
// Can't set device address in hardware until status xfer has complete
ep0_0len_status();
// Send 0len complete response on EP0 IN
reset_ep0();
hw_endpoint_xfer(0x80, NULL, 0);
}
void dcd_remote_wakeup(uint8_t rhport)