drivers: clock_control_nrf: Align LF clock sources symbols to new nrfx

New nrfx release brings change of Low frequency sources symbols
in nrf_clock hal to uppercase. This commit aligns all occurrences.

Signed-off-by: Adam Wojasinski <adam.wojasinski@nordicsemi.no>
This commit is contained in:
Adam Wojasinski 2023-04-21 11:33:15 +02:00 committed by Carles Cufí
commit beb7313fc4
4 changed files with 15 additions and 15 deletions

View file

@ -22,7 +22,7 @@ static void xtal_check(bool on, nrf_clock_lfclk_t type)
zassert_true(is_running, "Clock should be on");
} else {
zassert_true(on, "Clock should be on");
zassert_equal(type, NRF_CLOCK_LFCLK_Xtal);
zassert_equal(type, NRF_CLOCK_LFCLK_XTAL);
}
}
@ -40,12 +40,12 @@ static void synth_check(bool on, nrf_clock_lfclk_t type)
{
#if !defined(CLOCK_LFCLKSRC_SRC_Synth) && \
!defined(CLOCK_LFCLKSRC_SRC_LFSYNT)
#define NRF_CLOCK_LFCLK_Synth 0
#define NRF_CLOCK_LFCLK_SYNTH 0
#endif
if (!IS_ENABLED(CONFIG_SYSTEM_CLOCK_NO_WAIT)) {
zassert_true(on, "Clock should be on");
zassert_equal(type, NRF_CLOCK_LFCLK_Synth);
zassert_equal(type, NRF_CLOCK_LFCLK_SYNTH);
}
}
@ -78,13 +78,13 @@ ZTEST(nrf_lf_clock_start, test_wait_in_thread)
z_nrf_clock_control_lf_on(CLOCK_CONTROL_NRF_LF_START_AVAILABLE);
o = nrf_clock_is_running(NRF_CLOCK, NRF_CLOCK_DOMAIN_LFCLK, &t);
zassert_false((t == NRF_CLOCK_LFCLK_Xtal) && o);
zassert_false((t == NRF_CLOCK_LFCLK_XTAL) && o);
k_busy_wait(35);
zassert_true(k_cycle_get_32() > 0);
z_nrf_clock_control_lf_on(CLOCK_CONTROL_NRF_LF_START_STABLE);
o = nrf_clock_is_running(NRF_CLOCK, NRF_CLOCK_DOMAIN_LFCLK, &t);
zassert_true((t == NRF_CLOCK_LFCLK_Xtal) && o);
zassert_true((t == NRF_CLOCK_LFCLK_XTAL) && o);
}
void *test_init(void)