summaryrefslogtreecommitdiff
path: root/src/tusb_option.h
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2021-08-29 21:49:10 +0700
committerGitHub <[email protected]>2021-08-29 21:49:10 +0700
commit4492a7021cb33cb3079f2e949d6e22ddd3d33f49 (patch)
treeb14be02e6d0a7d632e320431cc3543e123de78fa /src/tusb_option.h
parent61592526928be9626317ef82bbe42d0edaf7fa14 (diff)
parent31959295965f6b19c35bb770b1e430bdfa7b4606 (diff)
Merge branch 'master' into merge-waveshare-h7
Diffstat (limited to 'src/tusb_option.h')
-rw-r--r--src/tusb_option.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/tusb_option.h b/src/tusb_option.h
index e189c65bb..da1a39f1e 100644
--- a/src/tusb_option.h
+++ b/src/tusb_option.h
@@ -108,6 +108,7 @@
// NXP Kinetis
#define OPT_MCU_MKL25ZXX 1200 ///< NXP MKL25Zxx
+#define OPT_MCU_K32L2BXX 1201 ///< NXP K32L2Bxx
// Silabs
#define OPT_MCU_EFM32GG 1300 ///< Silabs EFM32GG
@@ -266,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