summaryrefslogtreecommitdiff
path: root/src/tusb_option.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2022-02-23 21:46:40 +0700
committerhathach <[email protected]>2022-02-25 18:35:21 +0700
commitd10326cb4e0f48a05bc39c6f51b7b0fb29427cc9 (patch)
tree698a451a7e4975699d43c792ac5ae5c6c677b8d1 /src/tusb_option.h
parent4a5a53b3b88fcd2f5ec7f1f94eb07c27cb1e9bec (diff)
rename TUSB_OPT_DEVICE_ENABLED to CFG_TUD_ENABLED
TUSB_OPT_DEVICE_ENABLED still usable for backward compatible
Diffstat (limited to 'src/tusb_option.h')
-rw-r--r--src/tusb_option.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tusb_option.h b/src/tusb_option.h
index cb49c85ce..0e88c1507 100644
--- a/src/tusb_option.h
+++ b/src/tusb_option.h
@@ -215,7 +215,10 @@
#define TUD_OPT_HIGH_SPEED ( (CFG_TUSB_RHPORT1_MODE) & OPT_MODE_HIGH_SPEED )
#endif
-#define TUSB_OPT_DEVICE_ENABLED ( TUD_OPT_RHPORT >= 0 )
+#define CFG_TUD_ENABLED ( TUD_OPT_RHPORT >= 0 )
+
+// For backward compatible
+#define TUSB_OPT_DEVICE_ENABLED CFG_TUD_ENABLED
//--------------------------------------------------------------------+
// COMMON OPTIONS