From 37ac02478cf08a70a550d968f9eb9315629b668e Mon Sep 17 00:00:00 2001 From: phaseloop Date: Mon, 8 Dec 2025 16:33:13 +0000 Subject: [PATCH] stash --- src/platform/nrf52/main-nrf52.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/platform/nrf52/main-nrf52.cpp b/src/platform/nrf52/main-nrf52.cpp index c03cc4454..169fd2109 100644 --- a/src/platform/nrf52/main-nrf52.cpp +++ b/src/platform/nrf52/main-nrf52.cpp @@ -313,6 +313,23 @@ void nrf52Setup() r = nrfx_wdt_channel_alloc(&nrfx_wdt, &nrfx_wdt_channel_id_nrf52_main); assert(r == NRFX_SUCCESS); + + + // print LFCLK debug info + + // const char *clkSource = NULL; + + // switch (NRF_CLOCK->LFCLKSRC & 0x03){ + // case CLOCK_LFCLKSRC_SRC_Xtal: + // clkSource = "XTAL"; + // break; + // case CLOCK_LFCLKSRC_SRC_RC: + /// clkSource = "RC"; + // break; + // } + + //LOG_DEBUG("LFCLK source: %s", clkSource); + } void cpuDeepSleep(uint32_t msecToWake)