You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2022/02/09 13:23:12 UTC

[GitHub] [mynewt-core] andrzej-kaczmarek commented on a change in pull request #2767: hw/nrf53: Add option to use internal load caps for lfxo

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: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org