summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhathach <[email protected]>2021-10-09 11:28:55 +0700
committerhathach <[email protected]>2021-10-09 11:28:55 +0700
commita8eea9f6a540ef5c6314c400754364e0456002cd (patch)
tree712de4db6c525aa8a0f5b5133b7a02ae09794312
parent431650fb7df9d797406c492eac924c8df545253e (diff)
add backward compatible with warnings for CFG_TUD_NET
-rw-r--r--src/tusb_option.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/tusb_option.h b/src/tusb_option.h
index 057bc61c2..cda8c45ce 100644
--- a/src/tusb_option.h
+++ b/src/tusb_option.h
@@ -266,7 +266,12 @@
#endif
#ifndef CFG_TUD_ECM_RNDIS
- #define CFG_TUD_ECM_RNDIS 0
+ #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