added dcd_sof_enable() stubs for all other ports

This commit is contained in:
hathach
2022-03-07 23:05:05 +07:00
parent 85dbcf5473
commit 606f932d92
27 changed files with 212 additions and 0 deletions

View File

@@ -191,6 +191,14 @@ void dcd_disconnect(uint8_t rhport)
USB_REG->DEVCTRL &=~(DEVCTRL_ADDEN | DEVCTRL_UADD);
}
void dcd_sof_enable(uint8_t rhport, bool en)
{
(void) rhport;
(void) en;
// TODO implement later
}
static tusb_speed_t get_speed(void)
{
switch (USB_REG->SR & SR_SPEED) {