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(); }