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.