void nrfx_clock_hfclk_stop(void) { NRFX_ASSERT(m_clock_cb.module_initialized); nrf_clock_task_trigger(NRF_CLOCK_TASK_HFCLKSTOP); while (nrf_clock_hf_is_running(NRF_CLOCK_HFCLK_HIGH_ACCURACY)) {} }
static void hfclk_stop(void) { #ifndef SOFTDEVICE_PRESENT nrf_clock_task_trigger(NRF_CLOCK_TASK_HFCLKSTOP); while (nrf_clock_hf_is_running(NRF_CLOCK_HF_SRC_HIGH_ACCURACY)); #else UNUSED_VARIABLE(sd_clock_hfclk_release()); #endif }
void nrfx_clock_hfclk_stop(void) { NRFX_ASSERT(m_clock_cb.module_initialized); nrf_clock_task_trigger(NRF_CLOCK_TASK_HFCLKSTOP); while (nrf_clock_hf_is_running(NRF_CLOCK_HFCLK_HIGH_ACCURACY)) {} #if defined(USE_WORKAROUND_FOR_ANOMALY_201) m_clock_cb.hfclk_started = false; #endif }
bool nrf_drv_clock_hfclk_is_running(void) { bool result; ASSERT(m_clock_cb.module_initialized); #ifndef SOFTDEVICE_PRESENT result = nrf_clock_hf_is_running(NRF_CLOCK_HF_SRC_HIGH_ACCURACY); #else uint32_t is_running; UNUSED_VARIABLE(sd_clock_hfclk_is_running(&is_running)); result = is_running ? true : false; #endif return result; }
bool nrf_drv_clock_hfclk_is_running(void) { ASSERT(m_clock_cb.module_initialized); #ifdef SOFTDEVICE_PRESENT if (softdevice_handler_is_enabled()) { uint32_t is_running; UNUSED_VARIABLE(sd_clock_hfclk_is_running(&is_running)); return (is_running ? true : false); } #endif // SOFTDEVICE_PRESENT return nrf_clock_hf_is_running(NRF_CLOCK_HFCLK_HIGH_ACCURACY); }
static void hfclk_stop(void) { #ifdef SOFTDEVICE_PRESENT if (softdevice_handler_is_enabled()) { (void)sd_clock_hfclk_release(); return; } #endif // SOFTDEVICE_PRESENT nrf_clock_task_trigger(NRF_CLOCK_TASK_HFCLKSTOP); while (nrf_clock_hf_is_running(NRF_CLOCK_HFCLK_HIGH_ACCURACY)) {} m_clock_cb.hfclk_on = false; }