25#include_next "nrf_clock.h"
33#define NRF_CLOCK_HFCLK_HIGH_ACCURACY (1UL)
34#define NRF_CLOCK_EVENT_HFCLKSTARTED offsetof(NRF_CLOCK_Type, EVENTS_HFCLKSTARTED)
37 NRF_CLOCK_TASK_HFCLKSTART,
38 NRF_CLOCK_TASK_HFCLKSTOP,
52static bool _nrf_clock_hf_running =
false;
57static inline bool nrf_clock_hf_is_running(NRF_CLOCK_Type
const *reg,
61 return _nrf_clock_hf_running;
70static inline bool nrf_clock_event_clear(NRF_CLOCK_Type *reg, uint32_t
event)
82static inline void nrf_clock_task_trigger(NRF_CLOCK_Type *reg,
83 nrf_clock_task_t task)
86 case NRF_CLOCK_TASK_HFCLKSTART:
88 _nrf_clock_hf_running =
true;
90 case NRF_CLOCK_TASK_HFCLKSTOP:
92 _nrf_clock_hf_running =
false;
void clock_hfxo_request(void)
Request the external high frequency crystal (HFXO) as HF clock source.
void clock_hfxo_release(void)
Release the use of the HFXO.