change keyboard_app.c & mouse_app.c from polling API to interrupt-based (callback isr)
and using OSAL for task-base demo - fix ehci error with XFER_COMPLETE callback to usbh_isr, TD need to be freed & unlink before invoking callback - fix bug in usbh.c set device state to CONFIGURED right after SET_CONFIGURE control xfer
This commit is contained in:
@@ -21,6 +21,10 @@ int main(void)
|
||||
board_init();
|
||||
tusb_init();
|
||||
|
||||
//------------- application task init -------------//
|
||||
keyboard_app_init();
|
||||
mouse_app_init();
|
||||
|
||||
printf("reset\n");
|
||||
while (1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user