Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: nrf51-sdk-bluetooth-mdw
Fork of nRF51822 by
Diff: source/btle/btle.cpp
- Revision:
- 423:9bf22621d592
- Parent:
- 420:1b5c227270f9
- Child:
- 424:28ea27dcba79
diff -r 041752486b03 -r 9bf22621d592 source/btle/btle.cpp
--- a/source/btle/btle.cpp Tue Aug 11 15:14:24 2015 +0100
+++ b/source/btle/btle.cpp Thu Aug 13 13:23:18 2015 +0100
@@ -52,13 +52,11 @@
error_t btle_init(void)
{
- nrf_clock_lfclksrc_t clockSource;
if (NRF_CLOCK->LFCLKSRC & (CLOCK_LFCLKSRC_SRC_Xtal << CLOCK_LFCLKSRC_SRC_Pos)) {
- clockSource = NRF_CLOCK_LFCLKSRC_XTAL_20_PPM;
+ SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, NULL);
} else {
- clockSource = NRF_CLOCK_LFCLKSRC_RC_250_PPM_4000MS_CALIBRATION;
+ SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_RC_250_PPM_4000MS_CALIBRATION, NULL);
}
- SOFTDEVICE_HANDLER_INIT(clockSource, NULL);
// Enable BLE stack
/**
@@ -109,9 +107,7 @@
dm_ble_evt_handler(p_ble_evt);
-#if !defined(MCU_NORDIC_16K_S110) && !defined(MCU_NORDIC_32K_S110)
bleGattcEventHandler(p_ble_evt);
-#endif
/* Custom event handler */
switch (p_ble_evt->header.evt_id) {
