Skip to content

Commit 17f660f

Browse files
nordic-krchrlubos
authored andcommitted
[nrf fromtree] tests: drivers: clock_control: nrf_lf_clock_start: Fix SYNTH test
Test was not covering nrf54l15 which had Synth source bitfield renamed. Changing the test to use Kconfig to determine if Synth is present. Signed-off-by: Krzysztof Chruściński <[email protected]> (cherry picked from commit c026b55)
1 parent bac6ef7 commit 17f660f

File tree

1 file changed

+2
-5
lines changed
  • tests/drivers/clock_control/nrf_lf_clock_start/src

1 file changed

+2
-5
lines changed

tests/drivers/clock_control/nrf_lf_clock_start/src/main.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,12 @@ static void rc_check(bool on, nrf_clock_lfclk_t type)
3838

3939
static void synth_check(bool on, nrf_clock_lfclk_t type)
4040
{
41-
#if !defined(CLOCK_LFCLKSRC_SRC_Synth) && \
42-
!defined(CLOCK_LFCLKSRC_SRC_LFSYNT)
43-
#define NRF_CLOCK_LFCLK_SYNTH 0
44-
#endif
45-
41+
#ifdef CONFIG_CLOCK_CONTROL_NRF_K32SRC_SYNTH
4642
if (!IS_ENABLED(CONFIG_SYSTEM_CLOCK_NO_WAIT)) {
4743
zassert_true(on, "Clock should be on");
4844
zassert_equal(type, NRF_CLOCK_LFCLK_SYNTH);
4945
}
46+
#endif
5047
}
5148

5249
ZTEST(nrf_lf_clock_start, test_clock_check)

0 commit comments

Comments
 (0)