house keeping

This commit is contained in:
hathach 2018-03-13 16:33:23 +07:00
parent ffca1f5e64
commit 3223aa1b74
3 changed files with 4 additions and 0 deletions

View File

@ -139,6 +139,8 @@ bool tusb_dcd_init(uint8_t port)
sie_write(SIE_CMDCODE_DEVICE_STATUS, 1, 1); // connect
NVIC_EnableIRQ(USB_IRQn);
return TUSB_ERROR_NONE;
}

View File

@ -195,6 +195,8 @@ bool tusb_dcd_init(uint8_t port)
LPC_USB->DEVCMDSTAT |= CMDSTAT_DEVICE_ENABLE_MASK | CMDSTAT_DEVICE_CONNECT_MASK |
CMDSTAT_RESET_CHANGE_MASK | CMDSTAT_CONNECT_CHANGE_MASK | CMDSTAT_SUSPEND_CHANGE_MASK;
NVIC_EnableIRQ(USB_IRQn);
return true;
}