andrzej-kaczmarek commented on a change in pull request #2767:
URL: https://github.com/apache/mynewt-core/pull/2767#discussion_r802655393



##########
File path: hw/mcu/nordic/nrf5340/src/hal_system.c
##########
@@ -86,6 +86,17 @@ hal_system_clock_start(void)
     regval = CLOCK_LFCLKSTAT_STATE_Running << CLOCK_LFCLKSTAT_STATE_Pos;
 
 #if MYNEWT_VAL_CHOICE(MCU_LFCLK_SOURCE, LFXO)
+
+#if MYNEWT_VAL_CHOICE(MCU_LFCLK_XO_INTCAP, external)
+    NRF_OSCILLATORS->XOSC32KI.INTCAP = 
OSCILLATORS_XOSC32KI_INTCAP_INTCAP_External;

Review comment:
       I'll leave as-is since we use registers everywhere, but probably 
rewriting some of the code to nrfx would be a good idea anyway...




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to