pass mcu option from compiler

This commit is contained in:
hathach
2018-11-17 12:40:23 +07:00
parent cb37b819d9
commit 027d9ef4bd
3 changed files with 9 additions and 4 deletions

View File

@@ -48,7 +48,12 @@
//--------------------------------------------------------------------
// COMMON CONFIGURATION
//--------------------------------------------------------------------
#define CFG_TUSB_MCU OPT_MCU_NRF5X
// defined by compiler flags for flexibility
#ifndef CFG_TUSB_MCU
#error CFG_TUSB_MCU should be defined using compiler flags
#endif
#define CFG_TUSB_RHPORT0_MODE OPT_MODE_DEVICE
#define CFG_TUSB_DEBUG 2