From 17254e80d6cf2adf7e6bdea6c108b571ab832cdf Mon Sep 17 00:00:00 2001 From: Vincent Coubard Date: Thu, 28 Jul 2016 22:47:59 +0100 Subject: [PATCH] Fix clock selection used by the softdevice on NRF5 based targets. --- .../targets/TARGET_NORDIC/TARGET_NRF5/source/btle/btle_clock.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF5/source/btle/btle_clock.h b/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF5/source/btle/btle_clock.h index 6a6a530c3e..bc4c1e29f4 100644 --- a/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF5/source/btle/btle_clock.h +++ b/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF5/source/btle/btle_clock.h @@ -72,6 +72,9 @@ #define DEFAULT_LFCLK_CONF_RC_CTIV 16 // Check temperature every 16 * 250ms. #define DEFAULT_LFCLK_CONF_RC_TEMP_CTIV 1 // Only calibrate if temperature has changed. +#define NRF_LF_SRC_XTAL 2 +#define NRF_LF_SRC_SYNTH 3 +#define NRF_LF_SRC_RC 4 #if MBED_CONF_NORDIC_NRF_LF_CLOCK_SRC == NRF_LF_SRC_RC #define LFCLK_CONF_SOURCE NRF_CLOCK_LF_SRC_RC