library for BLE_GAP_backpack
Dependencies: nrf51-sdk
Fork of nRF51822 by
Diff: btle/btle.cpp
- Revision:
- 61:d0158c65d0d7
- Parent:
- 56:a1071b629aa3
- Child:
- 62:a022be4c545d
diff -r e861f2041469 -r d0158c65d0d7 btle/btle.cpp --- a/btle/btle.cpp Tue Sep 02 17:01:18 2014 +0100 +++ b/btle/btle.cpp Sat Sep 06 16:48:00 2014 +0000 @@ -63,7 +63,11 @@ error_t btle_init(void) { const bool useScheduler = false; +#ifdef TARGET_HRM1017 + SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_RC_250_PPM_4000MS_CALIBRATION, false); +#else SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, useScheduler); +#endif // Enable BLE stack /**