We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bea466f commit 6af8090Copy full SHA for 6af8090
cpu/nrf5x_common/clock.c
@@ -103,10 +103,12 @@ void clock_start_lf(void)
103
clock_lf_running = true;
104
105
/* calibrate the RC LF clock if applicable */
106
-#if (CLOCK_HFCLK && (CLOCK_LFCLK == 0))
+#if (CLOCK_LFCLK == CLOCK_LFCLKSRC_SRC_RC)
107
+ clock_hfxo_request();
108
NRF_CLOCK->EVENTS_DONE = 0;
109
NRF_CLOCK->TASKS_CAL = 1;
110
while (NRF_CLOCK->EVENTS_DONE == 0) {}
111
+ clock_hfxo_release();
112
#endif
113
}
114
0 commit comments