summaryrefslogtreecommitdiff
path: root/src/tusb.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-12-13 13:49:09 +0700
committerhathach <[email protected]>2018-12-13 13:49:09 +0700
commitbc46dc6edf3ff4bb72fb36e74b8a7d3da447d2d4 (patch)
treefc8042f6113d6dc224543d00578759eb6a0c60f4 /src/tusb.h
parentb562fa741b5a8bb47d4e32c0a0f2600b72993b9a (diff)
osal clean up
remove OSAL_TASK_DEF, osal_task_create. Applicaton should create a task and call tinyusb_task(). This make API consistent with NO OS.
Diffstat (limited to 'src/tusb.h')
-rw-r--r--src/tusb.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/tusb.h b/src/tusb.h
index 4d65c80e1..e4393d067 100644
--- a/src/tusb.h
+++ b/src/tusb.h
@@ -105,11 +105,9 @@
// return true if success
bool tusb_init(void);
-#if CFG_TUSB_OS == OPT_OS_NONE
-/** \brief Run all tinyusb's internal tasks (e.g host task, device task).
- * \note This function is only required when using no RTOS (\ref CFG_TUSB_OS == OPT_OS_NONE). All the stack functions
- * & callback are invoked within this function. This should be called periodically within the mainloop
- *
+/** Run all tinyusb's internal tasks (e.g host task, device task) and invoke callback
+ * This should be called periodically within the mainloop.
+
@code
int main(void)
{
@@ -126,10 +124,9 @@ bool tusb_init(void);
}
}
@endcode
- *
+
*/
void tusb_task(void);
-#endif
/** @} */