diff options
| author | hathach <[email protected]> | 2018-11-17 12:40:23 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-11-17 12:40:23 +0700 |
| commit | 027d9ef4bda78ff2baff1181682b61e4fa328f94 (patch) | |
| tree | 1c32f8b82bf0efcc36eb4defbf3a0177c2799593 /examples/device/device_composite/src | |
| parent | cb37b819d90ad54a7e6b7c7edb83c9a8333876d7 (diff) | |
pass mcu option from compiler
Diffstat (limited to 'examples/device/device_composite/src')
| -rw-r--r-- | examples/device/device_composite/src/tusb_config.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/device/device_composite/src/tusb_config.h b/examples/device/device_composite/src/tusb_config.h index 680036859..b802a4131 100644 --- a/examples/device/device_composite/src/tusb_config.h +++ b/examples/device/device_composite/src/tusb_config.h @@ -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 |
