SG RFID nRF51822 fork

Fork of nRF51822 by Nordic Semiconductor

Files at this revision

API Documentation at this revision

Comitter:
ytsuboi
Date:
Sat Sep 06 16:48:00 2014 +0000
Parent:
60:e861f2041469
Child:
62:a022be4c545d
Commit message:
add ifdef for HRM1017 to choose IRC on btle.cpp

Changed in this revision

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