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 08:57:31 2014 +0100
Parent:
22:c6ee8136847e
Child:
24:3444ee6fd548
Commit message:
add waitForEvent() to the nRF transport

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	Mon Jun 09 09:12:10 2014 +0100
+++ b/nRF51822n.cpp	Tue Jun 10 08:57:31 2014 +0100
@@ -16,6 +16,7 @@
 
 #include "mbed.h"
 #include "nRF51822n.h"
+#include "nrf_soc.h"
 
 #include "btle/btle.h"
 
@@ -104,3 +105,9 @@
 
     return BLE_ERROR_NONE;
 }
+
+void
+nRF51822n::waitForEvent(void)
+{
+    sd_app_evt_wait();
+}
--- a/nRF51822n.h	Mon Jun 09 09:12:10 2014 +0100
+++ b/nRF51822n.h	Tue Jun 10 08:57:31 2014 +0100
@@ -48,6 +48,7 @@
     };
     virtual ble_error_t init(void);
     virtual ble_error_t reset(void);
+    virtual void        waitForEvent(void);
 };
 
 #endif