seperate tusb_task() to tud_task() and tuh_task()
tusb_task() still exists for backward compatible
This commit is contained in:
		| @@ -60,7 +60,8 @@ int main(void) | ||||
|  | ||||
|   while (1) | ||||
|   { | ||||
|     tusb_task(); | ||||
|     // tinyusb device task | ||||
|     tud_task(); | ||||
|  | ||||
|     led_blinking_task(); | ||||
|  | ||||
|   | ||||
| @@ -101,7 +101,8 @@ void usb_device_task(void* param) | ||||
|   // RTOS forever loop | ||||
|   while (1) | ||||
|   { | ||||
|     tusb_task(); | ||||
|     // tinyusb device task | ||||
|     tud_task(); | ||||
|   } | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 hathach
					hathach