summaryrefslogtreecommitdiff
path: root/src/tusb.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tusb.h')
-rw-r--r--src/tusb.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/tusb.h b/src/tusb.h
index 37a521fa8..4f69a1414 100644
--- a/src/tusb.h
+++ b/src/tusb.h
@@ -38,8 +38,6 @@
#include "osal/osal.h"
#include "common/tusb_fifo.h"
-#include "class/hid/hid.h"
-
//------------- TypeC -------------//
#if CFG_TUC_ENABLED
#include "typec/usbc.h"
@@ -64,7 +62,10 @@
#if CFG_TUH_VENDOR
#include "class/vendor/vendor_host.h"
#endif
-
+#else
+ #ifndef tuh_int_handler
+ #define tuh_int_handler(...)
+ #endif
#endif
//------------- DEVICE -------------//
@@ -118,6 +119,10 @@
#if CFG_TUD_BTH
#include "class/bth/bth_device.h"
#endif
+#else
+ #ifndef tud_int_handler
+ #define tud_int_handler(...)
+ #endif
#endif