add dcd_edpt0_status_complete() which is useful for several mcu port

This commit is contained in:
hathach
2019-11-28 11:46:36 +07:00
parent 40b454cf28
commit 6bc245cb36
4 changed files with 15 additions and 5 deletions

View File

@@ -296,6 +296,8 @@ void dcd_int_disable(uint8_t rhport)
void dcd_set_address(uint8_t rhport, uint8_t dev_addr)
{
(void)rhport;
// FIXME use dcd_edpt0_status_complete()
// We cannot immediatly change it; it must be queued to change after the STATUS packet is sent.
// (CTR handler will actually change the address once it sees that the transmission is complete)
newDADDR = dev_addr;