summaryrefslogtreecommitdiff
path: root/examples/device
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-04-12 13:14:59 +0700
committerhathach <[email protected]>2018-04-12 13:14:59 +0700
commit08a24ee2246dee6701d1bf074e3f307215379a91 (patch)
treee80b8c3d0181abdbe94e423bb210e14a11d4ea48 /examples/device
parente1272159d8b32e2f5478b35fa0e727cfc5c417e3 (diff)
refactor nrf5x mcu macro
Diffstat (limited to 'examples/device')
-rw-r--r--examples/device/nrf52840/src/tusb_config.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/device/nrf52840/src/tusb_config.h b/examples/device/nrf52840/src/tusb_config.h
index b9346aaf9..e98009acc 100644
--- a/examples/device/nrf52840/src/tusb_config.h
+++ b/examples/device/nrf52840/src/tusb_config.h
@@ -48,6 +48,7 @@
//--------------------------------------------------------------------+
//#define CFG_TUSB_MCU will be passed from IDE/command line for easy board/mcu switching
+#define CFG_TUSB_MCU OPT_MCU_NRF5X
#define CFG_TUSB_CONTROLLER_0_MODE (TUSB_MODE_DEVICE)
//--------------------------------------------------------------------+
@@ -78,7 +79,7 @@
// LPC11uxx and LPC13uxx requires each buffer has to be 64-byte alignment
#if CFG_TUSB_MCU == OPT_MCU_LPC11UXX || CFG_TUSB_MCU == OPT_MCU_LPC13UXX
#define CFG_TUSB_MEM_ALIGN ATTR_ALIGNED(64)
-#elif defined NRF52840_XXAA
+#elif CFG_TUSB_MCU == OPT_MCU_NRF5X
#define CFG_TUSB_MEM_ALIGN ATTR_ALIGNED(4)
#else
#define CFG_TUSB_MEM_ALIGN