add new tusb_int_handler(rhport, in_isr) as common irq handler
update tusb_init() to take rhport and role, defined as macro with optional argument for backward compatible
This commit is contained in:
@@ -126,7 +126,7 @@ static void usb_host_task(void *param) {
|
||||
(void) param;
|
||||
|
||||
// init host stack on configured roothub port
|
||||
if (!tuh_init(BOARD_TUH_RHPORT)) {
|
||||
if (!tusb_init(BOARD_TUH_RHPORT, TUSB_ROLE_HOST)) {
|
||||
printf("Failed to init USB Host Stack\r\n");
|
||||
vTaskSuspend(NULL);
|
||||
}
|
||||
|
Reference in New Issue
Block a user