rename TUSB_OPT_DEVICE_ENABLED to CFG_TUD_ENABLED

TUSB_OPT_DEVICE_ENABLED still usable for backward compatible
This commit is contained in:
hathach
2022-02-23 21:46:40 +07:00
parent 4a5a53b3b8
commit d10326cb4e
59 changed files with 70 additions and 67 deletions

View File

@@ -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