Skip to content

Commit 0b91573

Browse files
committed
softdevice_handler: Inform SoftDevice about HFCLK latency
This allows applications to choose a correct hfclk latency depending on their crystal. Signed-off-by: Herman Berget <herman.berget@nordicsemi.no>
1 parent 3094a71 commit 0b91573

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

doc/nrf-bm/release_notes/release_notes_changelog.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ SoftDevice Handler
3333
==================
3434

3535
* Added the :kconfig:option:`NRF_SDH_CLOCK_HFINT_CALIBRATION_INTERVAL` Kconfig option to control the HFINT calibration interval.
36+
* Added the :kconfig:option:`NRF_SDH_CLOCK_HFCLK_LATENCY` Kconfig option to inform the SoftDevice about the ramp-up time of the high-frequency crystal oscillator.
3637

3738
Boards
3839
======

subsys/softdevice_handler/Kconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ config NRF_SDH_CLOCK_HFINT_CALIBRATION_INTERVAL
6767
range 1 255
6868
default 60
6969

70+
config NRF_SDH_CLOCK_HFCLK_LATENCY
71+
int "Ramp-up time of the high-frequency crystal oscillator in microseconds"
72+
range 0 $(UINT16_MAX)
73+
default 1500
74+
7075
if NRF_SDH_BLE
7176

7277
config NRF_SDH_BLE_CONN_TAG

subsys/softdevice_handler/nrf_sdh.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ int nrf_sdh_enable_request(void)
115115
.rc_ctiv = CONFIG_NRF_SDH_CLOCK_LF_RC_CTIV,
116116
.rc_temp_ctiv = CONFIG_NRF_SDH_CLOCK_LF_RC_TEMP_CTIV,
117117
.accuracy = CONFIG_NRF_SDH_CLOCK_LF_ACCURACY,
118+
.hfclk_latency = CONFIG_NRF_SDH_CLOCK_HFCLK_LATENCY,
118119
.hfint_ctiv = CONFIG_NRF_SDH_CLOCK_HFINT_CALIBRATION_INTERVAL,
119120
};
120121

0 commit comments

Comments
 (0)