changed low freq. clock source to IRC
Dependencies: BLE_API mbed nRF51822_IRC
Fork of BLE_ANCS_SDAPI by
Diff: main.cpp
- Revision:
- 1:f0edc06f2d29
- Parent:
- 0:1f985a7c0a8b
--- a/main.cpp Tue Jun 03 04:25:33 2014 +0000 +++ b/main.cpp Sun Jul 06 13:09:05 2014 +0000 @@ -583,7 +583,8 @@ uint32_t err_code; // Initialize the SoftDevice handler module. - 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); // Register with the SoftDevice handler module for BLE events. @@ -724,7 +725,7 @@ // uint32_t evt_id; pc.printf("Program started\n\r"); - + led_adv = 0; led_conn = 0; @@ -735,6 +736,10 @@ pc.printf("ble_stack_init()\r\n"); ble_stack_init(); + /* Make sure we get a clean start */ + wait(0.5); + wait(1); + pc.printf("gap_params_init()\r\n"); gap_params_init();