summaryrefslogtreecommitdiff
path: root/tinyusb/host
diff options
context:
space:
mode:
Diffstat (limited to 'tinyusb/host')
-rw-r--r--tinyusb/host/hcd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tinyusb/host/hcd.h b/tinyusb/host/hcd.h
index a7b5210e9..604b89f7f 100644
--- a/tinyusb/host/hcd.h
+++ b/tinyusb/host/hcd.h
@@ -49,6 +49,7 @@
#include "common/common.h"
+#if MODE_HOST_SUPPORTED
// Max number of endpoints per device
enum {
HCD_MAX_ENDPOINT = TUSB_CFG_HOST_HUB + TUSB_CFG_HOST_HID_KEYBOARD + TUSB_CFG_HOST_HID_MOUSE + TUSB_CFG_HOST_HID_GENERIC +
@@ -56,6 +57,7 @@ enum {
HCD_MAX_XFER = HCD_MAX_ENDPOINT*2,
};
+#endif
//--------------------------------------------------------------------+
// MACRO CONSTANT TYPEDEF