change usage of TU_CHECK_MCU() to prevent macro conflict

This commit is contained in:
hathach
2021-10-25 17:04:03 +07:00
parent 85e18b9172
commit dbd31895bc
14 changed files with 85 additions and 91 deletions

View File

@@ -130,7 +130,7 @@
// Helper to check if configured MCU is one of listed
// Apply _TU_CHECK_MCU with || as separator to list of input
#define _TU_CHECK_MCU(_m) (CFG_TUSB_MCU == OPT_MCU_##_m)
#define _TU_CHECK_MCU(_m) (CFG_TUSB_MCU == _m)
#define TU_CHECK_MCU(...) (TU_ARGS_APPLY(_TU_CHECK_MCU, ||, __VA_ARGS__))
//--------------------------------------------------------------------+