kasjer commented on a change in pull request #2441:
URL: https://github.com/apache/mynewt-core/pull/2441#discussion_r544299696
##########
File path: hw/mcu/nordic/nrf52xxx/src/hal_timer.c
##########
@@ -652,18 +653,7 @@ hal_timer_config(int timer_num, uint32_t freq_hz)
#if MYNEWT_VAL_CHOICE(MCU_HFCLK_SOURCE, HFXO)
/* Make sure HFXO is started */
- if ((NRF_CLOCK->HFCLKSTAT &
- (CLOCK_HFCLKSTAT_SRC_Msk | CLOCK_HFCLKSTAT_STATE_Msk)) !=
- (CLOCK_HFCLKSTAT_SRC_Msk | CLOCK_HFCLKSTAT_STATE_Msk)) {
- NRF_CLOCK->EVENTS_HFCLKSTARTED = 0;
- NRF_CLOCK->TASKS_HFCLKSTART = 1;
- while (1) {
- if ((NRF_CLOCK->EVENTS_HFCLKSTARTED) != 0) {
- break;
- }
- }
- }
-#endif
Review comment:
**#endif** was lost in the process
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]