Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of nRF51822 by
Diff: nRF51822n.cpp
- Revision:
- 4:534c2146e5ec
- Parent:
- 0:eff01767de02
- Child:
- 16:d8161e2af6c6
--- 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
