Skip to content

Commit 0d4bdf4

Browse files
committed
wait for hf clock to avoid hardware dependent race conditions.
1 parent 4f41d78 commit 0d4bdf4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/cpu/nrf52840/rf/nrf52840-ieee.c

+2
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,8 @@ init(void)
520520
/* Request the HF clock */
521521
nrf_clock_event_clear(NRF_CLOCK_EVENT_HFCLKSTARTED);
522522
nrf_clock_task_trigger(NRF_CLOCK_TASK_HFCLKSTART);
523+
while(!nrf_clock_event_check(NRF_CLOCK_EVENT_HFCLKSTARTED));
524+
nrf_clock_event_clear(NRF_CLOCK_EVENT_HFCLKSTARTED);
523525

524526
/* Start the RF driver process */
525527
process_start(&nrf52840_ieee_rf_process, NULL);

0 commit comments

Comments
 (0)