テスト用

Fork of nRF51822 by Nordic Semiconductor

Revision:
4:534c2146e5ec
Parent:
0:eff01767de02
Child:
16:d8161e2af6c6
diff -r 791d672cbbec -r 534c2146e5ec nRF51822n.cpp
--- a/nRF51822n.cpp	Thu May 22 15:03:55 2014 +0100
+++ b/nRF51822n.cpp	Fri May 23 09:01:52 2014 +0100
@@ -19,6 +19,20 @@
 
 #include "btle/btle.h"
 
+/**
+ * The singleton which represents the nRF51822 transport for the BLEDevice.
+ */
+static nRF51822n deviceInstance;
+
+/**
+ * BLE-API requires an implementation of the following function in order to
+ * obtain its transport handle.
+ */
+BLEDeviceInstanceBase *
+createBLEDeviceInstance(void) {
+    return (&deviceInstance);
+}
+
 /**************************************************************************/
 /*!
     @brief  Constructor