summaryrefslogtreecommitdiff
path: root/tinyusb/tusb.c
diff options
context:
space:
mode:
Diffstat (limited to 'tinyusb/tusb.c')
-rw-r--r--tinyusb/tusb.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tinyusb/tusb.c b/tinyusb/tusb.c
index fb5cf013c..77678d779 100644
--- a/tinyusb/tusb.c
+++ b/tinyusb/tusb.c
@@ -66,3 +66,13 @@ void tusb_isr(uint8_t controller_id)
#endif
}
+
+#if TUSB_CFG_OS == TUSB_OS_NONE
+// periodically/continuously called in the main loop
+void tusb_task_runner(void)
+{
+ #if MODE_HOST_SUPPORTED
+ usbh_enumeration_task(); // TODO prototype
+ #endif
+}
+#endif