HW layer for the Nucleo board, it only work with old BLE_API

Dependents:   Hello_BLE F446RE-BLE

Fork of X_NUCLEO_IDB0XA1 by ST

Revision:
16:8aeb0c44869b
Parent:
12:a5d7db4a1e49
Child:
17:63059fcb8db2
--- a/utils/inc/Utils.h	Wed Aug 06 11:05:48 2014 +0000
+++ b/utils/inc/Utils.h	Thu Aug 07 09:33:27 2014 +0000
@@ -15,12 +15,24 @@
  */
  
  #include "hal_types.h"
+ #include "mbed.h"
  
  // utility functions
  
 #ifndef __UTIL_H__
 #define __UTIL_H__
 
+#define NEED_CONSOLE_OUTPUT 1 /* Set this if you need debug messages on the console;
+                               * it will have an impact on code-size and power consumption. */
+ 
+#if NEED_CONSOLE_OUTPUT
+extern Serial  pc;
+#define DEBUG(...) { pc.printf(__VA_ARGS__); }
+#else
+#define DEBUG(...) /* nothing */
+#endif /* #if NEED_CONSOLE_OUTPUT */
+
+
 
 double getHighPowerAndPALevelValue(int8_t dBMLevel, int8_t& EN_HIGH_POWER, int8_t& PA_LEVEL);