Skip to content

Commit 3806f9b

Browse files
committed
drivers: clock_control: Compatibility patch for nrfx HFCLK separation.
Signed-off-by: Michal Frankiewicz <[email protected]>
1 parent e089ee0 commit 3806f9b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

drivers/clock_control/clock_control_nrf.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ static void hfclk_start(void)
316316
hf_start_tstamp = k_uptime_get();
317317
}
318318

319-
nrfx_clock_hfclk_start();
319+
nrfx_clock_start(NRF_CLOCK_DOMAIN_HFCLK);
320320
}
321321

322322
static void hfclk_stop(void)
@@ -325,7 +325,7 @@ static void hfclk_stop(void)
325325
hf_stop_tstamp = k_uptime_get();
326326
}
327327

328-
nrfx_clock_hfclk_stop();
328+
nrfx_clock_stop(NRF_CLOCK_DOMAIN_HFCLK);
329329
}
330330

331331
#if NRF_CLOCK_HAS_HFCLK24M

modules/hal_nordic/nrfx/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ zephyr_library_sources_ifdef(CONFIG_NRFX_PRS ${SRC_DIR}/prs/nrfx_prs.c)
132132

133133
zephyr_library_sources_ifdef(CONFIG_NRFX_ADC ${SRC_DIR}/nrfx_adc.c)
134134
zephyr_library_sources_ifdef(CONFIG_NRFX_CLOCK ${SRC_DIR}/nrfx_clock.c)
135+
zephyr_library_sources_ifdef(CONFIG_NRFX_CLOCK ${SRC_DIR}/nrfx_clock_hfclk.c)
135136
zephyr_library_sources_ifdef(CONFIG_NRFX_COMP ${SRC_DIR}/nrfx_comp.c)
136137
zephyr_library_sources_ifdef(CONFIG_NRFX_CRACEN ${SRC_DIR}/nrfx_cracen.c)
137138
zephyr_library_sources_ifdef(CONFIG_NRFX_DPPI ${SRC_DIR}/nrfx_dppi.c)

0 commit comments

Comments
 (0)