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:
		| @@ -209,7 +209,7 @@ void usb_device_task(void* param) | ||||
|   // init device stack on configured roothub port | ||||
|   // This should be called after scheduler/kernel is started. | ||||
|   // Otherwise it could cause kernel issue since USB IRQ handler does use RTOS queue API. | ||||
|   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