28#include_next "nrf_clock.h"
36#define NRF_CLOCK_HFCLK_HIGH_ACCURACY (1UL)
37#define NRF_CLOCK_EVENT_HFCLKSTARTED offsetof(NRF_CLOCK_Type, EVENTS_HFCLKSTARTED)
40 NRF_CLOCK_TASK_HFCLKSTART,
41 NRF_CLOCK_TASK_HFCLKSTOP,
55static bool _nrf_clock_hf_running =
false;
60static inline bool nrf_clock_hf_is_running(NRF_CLOCK_Type
const *reg,
64 return _nrf_clock_hf_running;
73static inline bool nrf_clock_event_clear(NRF_CLOCK_Type *reg, uint32_t
event)
85static inline void nrf_clock_task_trigger(NRF_CLOCK_Type *reg,
86 nrf_clock_task_t task)
89 case NRF_CLOCK_TASK_HFCLKSTART:
91 _nrf_clock_hf_running =
true;
93 case NRF_CLOCK_TASK_HFCLKSTOP:
95 _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.