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
Diff: nRF51822n.cpp
- Revision:
- 56:a1071b629aa3
- Parent:
- 52:120bd37b9d0d
- Child:
- 79:540d11f2764f
diff -r 1e5c300cec7f -r a1071b629aa3 nRF51822n.cpp
--- a/nRF51822n.cpp Fri Jul 25 10:33:52 2014 +0100
+++ b/nRF51822n.cpp Tue Sep 02 15:50:05 2014 +0100
@@ -19,6 +19,7 @@
#include "nrf_soc.h"
#include "btle/btle.h"
+#include "nrf_delay.h"
/**
* The singleton which represents the nRF51822 transport for the BLEDevice.
@@ -133,10 +134,10 @@
/**************************************************************************/
ble_error_t nRF51822n::reset(void)
{
- wait(0.5);
+ nrf_delay_us(500000);
/* Wait for the radio to come back up */
- wait(1);
+ nrf_delay_us(1000000);
return BLE_ERROR_NONE;
}
