How to configure peripheral to use HFXO exclusively in NRF Connect SDK

I am looking as using pwm and timers and trying to get them to use the HFXO rather then the internal RC as I need the higher accuracy.  I know how to start it using the below code to start the clock but the issue seems to be with another peripheral turning it off which I would guess is the BLE radio as this is likely done through PPI. 

What I need is some way to tell the peripheral to exclusively use the HFXO and disable it being turned off while that peripheral is running.  Any help would be appreciated.

NRF_CLOCK->TASKS_HFCLKSTART = 1;
// Wait for clock to start
while(NRF_CLOCK->EVENTS_HFCLKSTARTED == 0);
Thanks,
Ed
Parents Reply Children
Related