summaryrefslogtreecommitdiff
path: root/tinyusb
diff options
context:
space:
mode:
authorhathach <[email protected]>2014-04-17 14:54:14 +0700
committerhathach <[email protected]>2014-04-17 14:54:14 +0700
commite8b586cc02f5fa67a0b60e66f95cc4edb2584870 (patch)
tree9625b2e59fbed93d0d03cd18b4fb400dee686bad /tinyusb
parent4227ada47798014f5c46f80078937b6606a8480e (diff)
add script files, fix build error with device
Diffstat (limited to 'tinyusb')
-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