changed low freq. clock source to IRC

Dependents:   BLE_ANCS_SDAPI_IRC

Fork of nRF51822 by Nordic Semiconductor

Files at this revision

API Documentation at this revision

Comitter:
ytsuboi
Date:
Sun Jul 06 13:08:48 2014 +0000
Parent:
14:5ca08f962e4f
Commit message:
changed low freq. clock to IRC

Changed in this revision

btle/btle.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/btle/btle.cpp	Thu May 29 09:51:36 2014 +0100
+++ b/btle/btle.cpp	Sun Jul 06 13:08:48 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) );