void nrfx_clock_lfclk_stop(void) { NRFX_ASSERT(m_clock_cb.module_initialized); nrf_clock_task_trigger(NRF_CLOCK_TASK_LFCLKSTOP); while (nrf_clock_lf_is_running()) {} }
/**@brief Function for stopping LFCLK and calibration (if it was set up). */ static void lfclk_stop(void) { #if CALIBRATION_SUPPORT (void)nrf_drv_clock_calibration_abort(); #endif //CALIBRATION_SUPPORT nrf_clock_task_trigger(NRF_CLOCK_TASK_LFCLKSTOP); while (nrf_clock_lf_is_running()) { } }
bool nrf_drv_clock_lfclk_is_running(void) { ASSERT(m_clock_cb.module_initialized); bool result; #ifndef SOFTDEVICE_PRESENT result = nrf_clock_lf_is_running(); #else result = true; #endif return result; }
bool nrf_drv_clock_lfclk_is_running(void) { ASSERT(m_clock_cb.module_initialized); #ifdef SOFTDEVICE_PRESENT if (softdevice_handler_is_enabled()) { return true; } #endif // SOFTDEVICE_PRESENT return nrf_clock_lf_is_running(); }
/**@brief Function for stopping LFCLK and calibration (if it was set up). */ static void lfclk_stop(void) { #if CALIBRATION_SUPPORT (void)nrf_drv_clock_calibration_abort(); #endif #ifdef SOFTDEVICE_PRESENT // If LFCLK is requested to stop while SD is still enabled, // it indicates an error in the application. // Enabling SD should increment the LFCLK request. ASSERT(!softdevice_handler_is_enabled()); #endif // SOFTDEVICE_PRESENT nrf_clock_task_trigger(NRF_CLOCK_TASK_LFCLKSTOP); while (nrf_clock_lf_is_running()) {} m_clock_cb.lfclk_on = false; }