summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-12-13 14:51:37 +0700
committerhathach <[email protected]>2018-12-13 14:51:37 +0700
commit1c49c479cabf1be9b1c22017c42a8480b26cebcb (patch)
tree3b2df7468fedc34fcda895524f09c78f36ae7020 /examples
parentaf1ffe4675ca9eeeebd47a82f3508eecdc1486c5 (diff)
seperate tusb_task() to tud_task() and tuh_task()
tusb_task() still exists for backward compatible
Diffstat (limited to 'examples')
-rw-r--r--examples/device/cdc_msc_hid/src/main.c3
-rw-r--r--examples/device/cdc_msc_hid_freertos/src/main.c3
-rw-r--r--examples/host/cdc_msc_hid/src/main.c3
3 files changed, 6 insertions, 3 deletions
diff --git a/examples/device/cdc_msc_hid/src/main.c b/examples/device/cdc_msc_hid/src/main.c
index 178609e1e..a9d1f1618 100644
--- a/examples/device/cdc_msc_hid/src/main.c
+++ b/examples/device/cdc_msc_hid/src/main.c
@@ -60,7 +60,8 @@ int main(void)
while (1)
{
- tusb_task();
+ // tinyusb device task
+ tud_task();
led_blinking_task();
diff --git a/examples/device/cdc_msc_hid_freertos/src/main.c b/examples/device/cdc_msc_hid_freertos/src/main.c
index 843b2b077..946972c16 100644
--- a/examples/device/cdc_msc_hid_freertos/src/main.c
+++ b/examples/device/cdc_msc_hid_freertos/src/main.c
@@ -101,7 +101,8 @@ void usb_device_task(void* param)
// RTOS forever loop
while (1)
{
- tusb_task();
+ // tinyusb device task
+ tud_task();
}
}
diff --git a/examples/host/cdc_msc_hid/src/main.c b/examples/host/cdc_msc_hid/src/main.c
index ebb540782..f1139974d 100644
--- a/examples/host/cdc_msc_hid/src/main.c
+++ b/examples/host/cdc_msc_hid/src/main.c
@@ -62,7 +62,8 @@ int main(void)
while (1)
{
- tusb_task();
+ // tinyusb host task
+ tuh_task();
led_blinking_task();