Skip to content

Commit abd3204

Browse files
committed
drivers: mpsl: clock: add missing lfclk functions
Those are no longer static inlines in the header, so should be implemented separately. Signed-off-by: Marcin Szymczyk <[email protected]>
1 parent 862faa2 commit abd3204

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

drivers/mpsl/clock_control/nrfx_clock_mpsl.c

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,26 @@ static void mpsl_hfclk_src_callback(mpsl_clock_evt_type_t evt_type)
3838
}
3939
}
4040

41+
void nrfx_clock_lfclk_start(void)
42+
{
43+
nrfx_clock_start(NRF_CLOCK_DOMAIN_LFCLK);
44+
}
45+
46+
void nrfx_clock_lfclk_stop(void)
47+
{
48+
nrfx_clock_stop(NRF_CLOCK_DOMAIN_LFCLK);
49+
}
50+
51+
void nrfx_clock_hfclk_start(void)
52+
{
53+
nrfx_clock_start(NRF_CLOCK_DOMAIN_HFCLK);
54+
}
55+
56+
void nrfx_clock_hfclk_stop(void)
57+
{
58+
nrfx_clock_stop(NRF_CLOCK_DOMAIN_HFCLK);
59+
}
60+
4161
void nrfx_clock_start(nrf_clock_domain_t domain)
4262
{
4363
switch (domain) {

0 commit comments

Comments
 (0)