Openwear requires RC oscillator to be used

Fork of nRF51822 by Nordic Semiconductor

Files at this revision

API Documentation at this revision

Comitter:
Rohit Grover
Date:
Tue Jun 10 09:32:28 2014 +0100
Parent:
23:cdab28442479
Child:
25:a1c356620131
Commit message:
rename BLEDevice to BLEPeripheral

Changed in this revision

nRF51822n.cpp Show annotated file Show diff for this revision Revisions of this file
nRF51822n.h Show annotated file Show diff for this revision Revisions of this file
--- a/nRF51822n.cpp	Tue Jun 10 08:57:31 2014 +0100
+++ b/nRF51822n.cpp	Tue Jun 10 09:32:28 2014 +0100
@@ -23,16 +23,16 @@
 /**
  * The singleton which represents the nRF51822 transport for the BLEDevice.
  */
-static nRF51822n deviceInstance;
+static nRF51822n peripheralInstance;
 
 /**
  * BLE-API requires an implementation of the following function in order to
  * obtain its transport handle.
  */
-BLEDeviceInstanceBase *
-createBLEDeviceInstance(void)
+BLEPeripheralInstanceBase *
+createBLEPeripheralInstance(void)
 {
-    return (&deviceInstance);
+    return (&peripheralInstance);
 }
 
 /**************************************************************************/
--- a/nRF51822n.h	Tue Jun 10 08:57:31 2014 +0100
+++ b/nRF51822n.h	Tue Jun 10 09:32:28 2014 +0100
@@ -24,17 +24,11 @@
 
 #include "mbed.h"
 #include "blecommon.h"
-#include "hw/BLEDevice.h"
+#include "BLEPeripheral.h"
 #include "nRF51Gap.h"
 #include "nRF51GattServer.h"
 
-/**************************************************************************/
-/*!
-    \brief
-
-*/
-/**************************************************************************/
-class nRF51822n : public BLEDeviceInstanceBase
+class nRF51822n : public BLEPeripheralInstanceBase
 {
 public:
     nRF51822n(void);