summaryrefslogtreecommitdiff
path: root/src/tusb_option.h
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2021-08-24 12:28:41 +0700
committerGitHub <[email protected]>2021-08-24 12:28:41 +0700
commit9c3fdb8135f33dd3a1c8dfddaf8300e7416bd7af (patch)
tree42af87c301f9af724fb37c048310efa891ce6206 /src/tusb_option.h
parentfc2ffed5c60513338188a36b66187b6b0ed35f93 (diff)
parent5d152503ee6c31c7cf3ad2dfeb9ac38c70c42bd4 (diff)
Merge pull request #1043 from hathach/more-host-improvement
More host improvement
Diffstat (limited to 'src/tusb_option.h')
-rw-r--r--src/tusb_option.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/tusb_option.h b/src/tusb_option.h
index d551765ae..da1a39f1e 100644
--- a/src/tusb_option.h
+++ b/src/tusb_option.h
@@ -267,14 +267,8 @@
// HOST OPTIONS
//--------------------------------------------------------------------
#if TUSB_OPT_HOST_ENABLED
- #ifndef CFG_TUSB_HOST_DEVICE_MAX
- #define CFG_TUSB_HOST_DEVICE_MAX 1
- #warning CFG_TUSB_HOST_DEVICE_MAX is not defined, default value is 1
- #endif
-
- //------------- HUB CLASS -------------//
- #if CFG_TUH_HUB && (CFG_TUSB_HOST_DEVICE_MAX == 1)
- #error There is no benefit enable hub with max device is 1. Please disable hub or increase CFG_TUSB_HOST_DEVICE_MAX
+ #ifndef CFG_TUH_DEVICE_MAX
+ #define CFG_TUH_DEVICE_MAX 1
#endif
#ifndef CFG_TUH_ENUMERATION_BUFSIZE