summaryrefslogtreecommitdiff
path: root/src/tusb.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tusb.h')
-rw-r--r--src/tusb.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/tusb.h b/src/tusb.h
index b776d7d01..c9d56d3c3 100644
--- a/src/tusb.h
+++ b/src/tusb.h
@@ -40,6 +40,11 @@
#include "class/hid/hid.h"
+//------------- TypeC -------------//
+#if CFG_TUC_ENABLED
+ #include "typec/usbc.h"
+#endif
+
//------------- HOST -------------//
#if CFG_TUH_ENABLED
#include "host/usbh.h"
@@ -59,7 +64,10 @@
#if CFG_TUH_VENDOR
#include "class/vendor/vendor_host.h"
#endif
-
+#else
+ #ifndef tuh_int_handler
+ #define tuh_int_handler(...)
+ #endif
#endif
//------------- DEVICE -------------//
@@ -113,6 +121,10 @@
#if CFG_TUD_BTH
#include "class/bth/bth_device.h"
#endif
+#else
+ #ifndef tud_int_handler
+ #define tud_int_handler(...)
+ #endif
#endif