mbed library sources modified for open wear

Dependents:   openwear-lifelogger-example

Fork of mbed-src by mbed official

Revision:
308:61b24bcb4679
Parent:
301:55638feb26a4
--- a/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/analogin_api.c	Tue Sep 02 21:14:02 2014 +0000
+++ b/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/analogin_api.c	Thu Sep 04 21:18:39 2014 +0000
@@ -64,6 +64,7 @@
     NRF_ADC->TASKS_START = 1;
     while (((NRF_ADC->BUSY & ADC_BUSY_BUSY_Msk) >> ADC_BUSY_BUSY_Pos) == ADC_BUSY_BUSY_Busy) {
     }
+    NRF_ADC->TASKS_STOP = 1;
 
     return (uint16_t)NRF_ADC->RESULT; // 10 bit
 }