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:
41:95b8d531628c
Parent:
39:af09d274257b
Child:
45:1fff7d7d5ce7
--- a/BlueNRGDevice.cpp	Wed Aug 27 06:45:31 2014 +0000
+++ b/BlueNRGDevice.cpp	Wed Aug 27 11:52:07 2014 +0000
@@ -16,6 +16,8 @@
 
 #include "mbed.h"
 #include "BlueNRGDevice.h"
+#include "BlueNRGGap.h"
+#include "BlueNRGGattServer.h"
 
 #include "btle.h"
 #include "Utils.h"
@@ -73,7 +75,7 @@
 ble_error_t BlueNRGDevice::init(void)
 {
     /* ToDo: Clear memory contents, reset the SD, etc. */
-    btle_init();
+    btle_init(BlueNRGGap::getInstance().getIsSetAddress());
 
     return BLE_ERROR_NONE;
 }
@@ -100,7 +102,7 @@
     wait(0.5);
 
     /* Reset BlueNRG SPI interface */
-    //BlueNRG_RST();
+    BlueNRG_RST();
   
     /* Wait for the radio to come back up */
     wait(1);