From 4f6b0b6443c0be27501c2f2b0ebe02d2af31cb5d Mon Sep 17 00:00:00 2001 From: tkuyucu Date: Mon, 17 Feb 2014 10:31:20 +0100 Subject: [PATCH] nordic_global.h file now included --- .../TARGET_NORDIC/TARGET_NRF51822/nordic_global.h | 11 +++++++++++ .../cmsis/TARGET_NORDIC/TARGET_NRF51822/nrf51822.h | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 libraries/mbed/targets/cmsis/TARGET_NORDIC/TARGET_NRF51822/nordic_global.h diff --git a/libraries/mbed/targets/cmsis/TARGET_NORDIC/TARGET_NRF51822/nordic_global.h b/libraries/mbed/targets/cmsis/TARGET_NORDIC/TARGET_NRF51822/nordic_global.h new file mode 100644 index 0000000000..1370887d00 --- /dev/null +++ b/libraries/mbed/targets/cmsis/TARGET_NORDIC/TARGET_NRF51822/nordic_global.h @@ -0,0 +1,11 @@ +#ifndef _NORDIC_GLOBAL_H_ +#define _NORDIC_GLOBAL_H_ + +/* There are no global defines in mbed, so we need to define */ +/* mandatory conditional compilation flags here */ +//#define NRF51 +#define DEBUG_NRF_USER +#define BLE_STACK_SUPPORT_REQD +#define BOARD_PCA10001 + +#endif diff --git a/libraries/mbed/targets/cmsis/TARGET_NORDIC/TARGET_NRF51822/nrf51822.h b/libraries/mbed/targets/cmsis/TARGET_NORDIC/TARGET_NRF51822/nrf51822.h index 066d2d3cbf..fbb2992292 100644 --- a/libraries/mbed/targets/cmsis/TARGET_NORDIC/TARGET_NRF51822/nrf51822.h +++ b/libraries/mbed/targets/cmsis/TARGET_NORDIC/TARGET_NRF51822/nrf51822.h @@ -19,7 +19,7 @@ #ifndef NRF_H #define NRF_H - +#include "nordic_global.h" #include "compiler_abstraction.h" #include "nrf51.h" #include "nrf51_bitfields.h"