This is an automated email from the ASF dual-hosted git repository.

jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit b903780929baec27335a5d1e02b6a8e214300131
Author: Niklas Casaril <nik...@casaril.com>
AuthorDate: Fri Dec 18 07:51:12 2020 +1000

    hw/mcu/nordic: Stop HFCLK at boot if not needed for LFCLK
---
 hw/mcu/nordic/nrf52xxx/src/hal_system.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/hw/mcu/nordic/nrf52xxx/src/hal_system.c 
b/hw/mcu/nordic/nrf52xxx/src/hal_system.c
index bc39088..7176cd2 100644
--- a/hw/mcu/nordic/nrf52xxx/src/hal_system.c
+++ b/hw/mcu/nordic/nrf52xxx/src/hal_system.c
@@ -102,6 +102,9 @@ hal_system_clock_start(void)
             }
         }
     }
+#else
+    /* Make sure HFCLK is stopped */
+    NRF_CLOCK->TASKS_HFCLKSTOP = 1;
 #endif
 
     /* Check if this clock source is already running */

Reply via email to