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:
45:1fff7d7d5ce7
Parent:
41:95b8d531628c
Child:
58:027c65a54097
--- a/BlueNRGDevice.cpp	Thu Aug 28 12:42:30 2014 +0000
+++ b/BlueNRGDevice.cpp	Fri Sep 05 06:41:21 2014 +0000
@@ -45,6 +45,7 @@
 /**************************************************************************/
 BlueNRGDevice::BlueNRGDevice(void)
 {
+    isInitialized = false;
 }
 
 /**************************************************************************/
@@ -77,6 +78,8 @@
     /* ToDo: Clear memory contents, reset the SD, etc. */
     btle_init(BlueNRGGap::getInstance().getIsSetAddress());
 
+    isInitialized = true;
+    
     return BLE_ERROR_NONE;
 }
 
@@ -106,6 +109,8 @@
   
     /* Wait for the radio to come back up */
     wait(1);
+    
+    isInitialized = false;
 
     return BLE_ERROR_NONE;
 }
@@ -139,6 +144,25 @@
     return version;
 }
 
+/**************************************************************************/
+/*!
+    @brief  get init state
+    
+    @returns    bool  
+
+    @retval    
+
+    @section EXAMPLE
+
+    @code
+
+    @endcode
+*/
+/**************************************************************************/
+bool BlueNRGDevice::getIsInitialized(void)
+{
+    return isInitialized;
+}
 
 /**************************************************************************/
 /*!