You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by je...@apache.org on 2021/01/08 12:25:55 UTC
[mynewt-core] 01/03: hw/mcu/nordic: Stop HFCLK at boot if not
needed for LFCLK
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 <ni...@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 */