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:
		| @@ -54,7 +54,7 @@ int main(void) { | ||||
|   board_init(); | ||||
|  | ||||
|   // init device stack on configured roothub port | ||||
|   tud_init(BOARD_TUD_RHPORT); | ||||
|   tusb_init(BOARD_TUD_RHPORT, TUSB_ROLE_DEVICE); | ||||
|  | ||||
|   if (board_init_after_tusb) { | ||||
|     board_init_after_tusb(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 hathach
					hathach