From 027d9ef4bda78ff2baff1181682b61e4fa328f94 Mon Sep 17 00:00:00 2001 From: hathach Date: Sat, 17 Nov 2018 12:40:23 +0700 Subject: pass mcu option from compiler --- examples/device/device_composite/src/tusb_config.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'examples/device/device_composite/src') 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 -- cgit v1.3.1