Skip to content

Commit 43da448

Browse files
nrf52820_microbit: Start HC xtal & select RC LF clock.
nrfx_clock_enable() was removed as it basically enables the clock interrupts which we don't need.
1 parent acc630a commit 43da448

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

source/hic_hal/nordic/nrf52820/nrfx/nrfx_config_nrf52820.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
// <196609=> External Full Swing
5757

5858
#ifndef NRFX_CLOCK_CONFIG_LF_SRC
59-
#define NRFX_CLOCK_CONFIG_LF_SRC 1
59+
#define NRFX_CLOCK_CONFIG_LF_SRC 0
6060
#endif
6161

6262
// <q> NRFX_CLOCK_CONFIG_LF_CAL_ENABLED - Enables LF Clock Calibration Support

source/hic_hal/nordic/nrf52820/sdk.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,7 @@ void sdk_init()
8282
}
8383
#endif
8484

85-
nrfx_clock_enable();
85+
if (!nrfx_clock_hfclk_is_running()) {
86+
nrfx_clock_hfclk_start();
87+
}
8688
}

0 commit comments

Comments
 (0)