summaryrefslogtreecommitdiff
path: root/src/tusb_option.h
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2021-10-11 15:57:46 +0700
committerGitHub <[email protected]>2021-10-11 15:57:46 +0700
commitecec0370cac2a64ef2a0cf2e4e13f1c4e738e81b (patch)
tree1b5be20ee4f09a1518051297a5f39f088ef69fad /src/tusb_option.h
parent9660a5821fd36af10235c400700ae7d2730ec55f (diff)
parenta6723f556d7b302137ca42c7f811d3484f25414a (diff)
Merge pull request #1107 from majbthrd/add_ncm
add NCM driver in a compatible manner : hathach/tinyusb#550
Diffstat (limited to 'src/tusb_option.h')
-rw-r--r--src/tusb_option.h21
1 files changed, 15 insertions, 6 deletions
diff --git a/src/tusb_option.h b/src/tusb_option.h
index dceb2ac2c..cda8c45ce 100644
--- a/src/tusb_option.h
+++ b/src/tusb_option.h
@@ -261,14 +261,23 @@
#define CFG_TUD_DFU 0
#endif
-#ifndef CFG_TUD_NET
- #define CFG_TUD_NET 0
-#endif
-
#ifndef CFG_TUD_BTH
#define CFG_TUD_BTH 0
#endif
+#ifndef CFG_TUD_ECM_RNDIS
+ #ifdef CFG_TUD_NET
+ #warning "CFG_TUD_NET is renamed to CFG_TUD_ECM_RNDIS"
+ #define CFG_TUD_ECM_RNDIS CFG_TUD_NET
+ #else
+ #define CFG_TUD_ECM_RNDIS 0
+ #endif
+#endif
+
+#ifndef CFG_TUD_NCM
+ #define CFG_TUD_NCM 0
+#endif
+
//--------------------------------------------------------------------
// HOST OPTIONS
//--------------------------------------------------------------------
@@ -280,10 +289,10 @@
#ifndef CFG_TUH_ENUMERATION_BUFSIZE
#define CFG_TUH_ENUMERATION_BUFSIZE 256
#endif
-
- //------------- CLASS -------------//
#endif // TUSB_OPT_HOST_ENABLED
+//------------- CLASS -------------//
+
#ifndef CFG_TUH_HUB
#define CFG_TUH_HUB 0
#endif