Skip to content

Commit b024163

Browse files
authored
Merge pull request #2305 from pan-/fix_ble_clock_selection
Fix clock selection used by the softdevice on NRF5 based targets.
2 parents 43bae17 + 17254e8 commit b024163

File tree

1 file changed

+3
-0
lines changed
  • features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF5/source/btle

1 file changed

+3
-0
lines changed

features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF5/source/btle/btle_clock.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@
7272
#define DEFAULT_LFCLK_CONF_RC_CTIV 16 // Check temperature every 16 * 250ms.
7373
#define DEFAULT_LFCLK_CONF_RC_TEMP_CTIV 1 // Only calibrate if temperature has changed.
7474

75+
#define NRF_LF_SRC_XTAL 2
76+
#define NRF_LF_SRC_SYNTH 3
77+
#define NRF_LF_SRC_RC 4
7578

7679
#if MBED_CONF_NORDIC_NRF_LF_CLOCK_SRC == NRF_LF_SRC_RC
7780
#define LFCLK_CONF_SOURCE NRF_CLOCK_LF_SRC_RC

0 commit comments

Comments
 (0)