diff options
| author | hathach <[email protected]> | 2018-03-07 22:59:57 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-03-07 22:59:57 +0700 |
| commit | d0312805ba245b71a2089d72c4b6c89a49b2933a (patch) | |
| tree | b6f8b95d286b780e5dacf3eee8b58880388a4765 | |
| parent | c7f6c95c2837365e4fe7518fa9bcbfbabb1c9ad5 (diff) | |
rename tusb_task_runner() to tusb_task()
| -rw-r--r-- | examples/device/device_virtual_com/src/main.c | 15 | ||||
| -rw-r--r-- | examples/obsolete/device/src/main.c | 2 | ||||
| -rw-r--r-- | examples/obsolete/host/src/main.c | 2 | ||||
| -rw-r--r-- | tinyusb/tusb.c | 2 | ||||
| -rw-r--r-- | tinyusb/tusb.h | 4 |
5 files changed, 6 insertions, 19 deletions
diff --git a/examples/device/device_virtual_com/src/main.c b/examples/device/device_virtual_com/src/main.c index 6c55dfb7f..c576b2f4f 100644 --- a/examples/device/device_virtual_com/src/main.c +++ b/examples/device/device_virtual_com/src/main.c @@ -57,19 +57,6 @@ //--------------------------------------------------------------------+ void print_greeting(void); -#if TUSB_CFG_OS == TUSB_OS_NONE -// like a real RTOS, this function is a main loop invoking each task in application and never return -void os_none_start_scheduler(void) -{ - while (1) - { - tusb_task_runner(); - led_blinking_task(NULL); - cdc_serial_app_task(NULL); - } -} -#endif - int main(void) { board_init(); @@ -83,7 +70,7 @@ int main(void) while (1) { - tusb_task_runner(); + tusb_task(); led_blinking_task(NULL); cdc_serial_app_task(NULL); diff --git a/examples/obsolete/device/src/main.c b/examples/obsolete/device/src/main.c index 1e96077f3..42456ae62 100644 --- a/examples/obsolete/device/src/main.c +++ b/examples/obsolete/device/src/main.c @@ -66,7 +66,7 @@ void os_none_start_scheduler(void) { while (1) { - tusb_task_runner(); + tusb_task(); led_blinking_task(NULL); msc_app_task(NULL); diff --git a/examples/obsolete/host/src/main.c b/examples/obsolete/host/src/main.c index 897e538b3..bb0dcd2b3 100644 --- a/examples/obsolete/host/src/main.c +++ b/examples/obsolete/host/src/main.c @@ -70,7 +70,7 @@ void os_none_start_scheduler(void) { while (1) { - tusb_task_runner(); + tusb_task(); led_blinking_task(NULL); keyboard_host_app_task(NULL); diff --git a/tinyusb/tusb.c b/tinyusb/tusb.c index 0e54b4206..cf94c1b23 100644 --- a/tinyusb/tusb.c +++ b/tinyusb/tusb.c @@ -64,7 +64,7 @@ tusb_error_t tusb_init(void) }
#if TUSB_CFG_OS == TUSB_OS_NONE
-void tusb_task_runner(void)
+void tusb_task(void)
{
#if MODE_HOST_SUPPORTED
usbh_enumeration_task(NULL);
diff --git a/tinyusb/tusb.h b/tinyusb/tusb.h index 9ff1f5e2a..7450dbfcb 100644 --- a/tinyusb/tusb.h +++ b/tinyusb/tusb.h @@ -117,13 +117,13 @@ tusb_error_t tusb_init(void); {
your_application_code();
- tusb_task_runner(); // handle tinyusb event, task etc ...
+ tusb_task(); // handle tinyusb event, task etc ...
}
}
@endcode
*
*/
-void tusb_task_runner(void);
+void tusb_task(void);
#endif
/** @} */
|
