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.
Dependents: microbit_rubber_ducky microbit_mouse_BLE microbit_mouse_BLE_daybreak_version microbit_presenter
Fork of nRF51822 by
Revision 23:cdab28442479, committed 2014-06-10
- 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
