mbed library sources

Dependents:   Encrypted my_mbed lklk CyaSSL_DTLS_Cellular ... more

Superseded

This library was superseded by mbed-dev - https://os.mbed.com/users/mbed_official/code/mbed-dev/.

Development branch of the mbed library sources. This library is kept in synch with the latest changes from the mbed SDK and it is not guaranteed to work.

If you are looking for a stable and tested release, please import one of the official mbed library releases:

Import librarymbed

The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Revision:
300:55638feb26a4
Parent:
270:e2babe29baf8
--- a/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/sleep.c	Wed Aug 27 04:00:07 2014 +0100
+++ b/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/sleep.c	Wed Aug 27 08:45:06 2014 +0100
@@ -17,14 +17,16 @@
 #include "cmsis.h"
 #include "mbed_interface.h"
 
-void sleep(void) {
+void sleep(void)
+{
     // ensure debug is disconnected if semihost is enabled....
-    NRF_POWER->TASKS_LOWPWR=1;
+    NRF_POWER->TASKS_LOWPWR = 1;
     // wait for interrupt
     __WFE();
 }
 
-void deepsleep(void) {
+void deepsleep(void)
+{
     sleep();
- //   NRF_POWER->SYSTEMOFF=1;
+    //   NRF_POWER->SYSTEMOFF=1;
 }