Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

lfclk configuration initialization

I want to initialize LFCLK on startup to reduce power consumption. I am doing it as given below. Is this the correct approach of initializing LFCLK to reduce power consumption ? It is working in my code, but is there any pitfall in waiting in sleep mode, to complete the LFCLK initialization ?

SDK 17.0.2

int main(void)
{

ret_code_t err_code = nrf_drv_clock_init();
APP_ERROR_CHECK(err_code);

nrf_drv_clock_lfclk_request(NULL);


while(!nrf_drv_clock_lfclk_is_running())
{
idle_state_handle();
}

Parents Reply Children
Related