Originally from Donal's blog article. http://mbed.org/users/donalm/code/BLE_Health_Thermometer_Blog/ Changed low freq. clock source from XTAL to IRC.

Dependents:   BLE_Health_Thermometer_IRC BLE_RCBController_micono_test BLE_konashi_PIO_test BLE_ADT7410_TMP102_Sample ... more

Fork of BLE_API_Native_blog by Donal Morrissey

Revision:
19:d84e7516652b
Parent:
17:d5600677d532
diff -r f776bb9efb7a -r d84e7516652b hw/nRF51822n/btle/btle.cpp
--- a/hw/nRF51822n/btle/btle.cpp	Sun Feb 23 12:51:12 2014 +0000
+++ b/hw/nRF51822n/btle/btle.cpp	Wed Jun 11 15:15:30 2014 +0000
@@ -64,7 +64,8 @@
 error_t btle_init(void)
 {
   APP_TIMER_INIT(0, 8, 5, false);
-  SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, false);
+//  SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, false);
+  SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_RC_250_PPM_4000MS_CALIBRATION, false);
 
   ASSERT_STATUS( softdevice_ble_evt_handler_set(btle_handler) );
   ASSERT_STATUS( softdevice_sys_evt_handler_set(sys_evt_dispatch) );