summaryrefslogtreecommitdiff
path: root/src/tusb.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2020-08-07 12:13:13 +0700
committerhathach <[email protected]>2020-08-07 12:13:13 +0700
commit9df8057702fcbc8086b223c164e1734db7beca25 (patch)
tree5faef86eca48cc7664ae0b29db3e885edba75bdb /src/tusb.h
parentc14c0cfc9fec9101b63df682c5fa5ac0576de0f8 (diff)
parentc682c30fa6a99a91d02496de39a752b5c96a4634 (diff)
Merge branch 'master' into add-app-driver
Diffstat (limited to 'src/tusb.h')
-rw-r--r--src/tusb.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tusb.h b/src/tusb.h
index 55c105121..c252a5789 100644
--- a/src/tusb.h
+++ b/src/tusb.h
@@ -95,6 +95,10 @@
#if CFG_TUD_NET
#include "class/net/net_device.h"
#endif
+
+ #if CFG_TUD_BTH
+ #include "class/bth/bth_device.h"
+ #endif
#endif
@@ -105,6 +109,8 @@
* @{ */
// Initialize device/host stack
+// Note: when using with RTOS, this should be called after scheduler/kernel is started.
+// Otherwise it could cause kernel issue since USB IRQ handler does use RTOS queue API.
bool tusb_init(void);
// Check if stack is initialized