Skip to content

Commit 72e9396

Browse files
nika-nordicmstasiaknordic
authored andcommitted
[nrf fromlist] drivers: clock_control: nrf: ifdef optional events
Some of the CLOCK events are associated with features not available on every nRF device. Upstream PR #: 86238 Signed-off-by: Nikodem Kastelik <[email protected]>
1 parent 69da2e9 commit 72e9396

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/clock_control/clock_control_nrf.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,7 @@ static void clock_event_handler(nrfx_clock_evt_type_t event)
643643
}
644644
clkstarted_handle(dev, CLOCK_CONTROL_NRF_TYPE_LFCLK);
645645
break;
646+
#if NRF_CLOCK_HAS_CALIBRATION
646647
case NRFX_CLOCK_EVT_CAL_DONE:
647648
if (IS_ENABLED(CONFIG_CLOCK_CONTROL_NRF_DRIVER_CALIBRATION)) {
648649
z_nrf_clock_calibration_done_handler();
@@ -651,7 +652,10 @@ static void clock_event_handler(nrfx_clock_evt_type_t event)
651652
__ASSERT_NO_MSG(false);
652653
}
653654
break;
655+
#endif
656+
#if NRF_CLOCK_HAS_PLL
654657
case NRFX_CLOCK_EVT_PLL_STARTED:
658+
#endif
655659
#if NRF_CLOCK_HAS_XO_TUNE
656660
case NRFX_CLOCK_EVT_XO_TUNED:
657661
case NRFX_CLOCK_EVT_XO_TUNE_ERROR:

0 commit comments

Comments
 (0)