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

Files at this revision

API Documentation at this revision

Comitter:
ytsuboi
Date:
Wed Jun 11 15:15:30 2014 +0000
Parent:
18:f776bb9efb7a
Commit message:
Changed Low freq. clock source from XTAL to IRC

Changed in this revision

hw/nRF51822n/btle/btle.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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) );