Nordic stack and drivers for the mbed BLE API. Version to work around build bug.

Dependents:   microbit_rubber_ducky microbit_mouse_BLE microbit_mouse_BLE_daybreak_version microbit_presenter

Fork of nRF51822 by Nordic Semiconductor

Revision:
571:bbf6410b6a89
Parent:
570:f162898cb6c4
Child:
575:7023a8204a1b
--- a/source/nRF5xGattClient.cpp	Mon Jan 11 10:19:21 2016 +0000
+++ b/source/nRF5xGattClient.cpp	Mon Jan 11 10:19:22 2016 +0000
@@ -16,6 +16,15 @@
 
 #include "nRF5xGattClient.h"
 
+nRF5xGattClient &
+nRF5xGattClient::getInstance(void) {
+    static nRF5xGattClient* nRFGattClientSingleton = NULL;
+    if (nRFGattClientSingleton == NULL) {
+        nRFGattClientSingleton = new nRF5xGattClient();
+    }
+    return *nRFGattClientSingleton;
+}
+
 #if !defined(TARGET_MCU_NRF51_16K_S110) && !defined(TARGET_MCU_NRF51_32K_S110)
 ble_error_t
 nRF5xGattClient::launchServiceDiscovery(Gap::Handle_t                               connectionHandle,