1 /* 2 * Copyright (c) 2020 Eric Holland 3 * 4 * Use of this source code is governed by a MIT-style 5 * license that can be found in the LICENSE file or at 6 * https://opensource.org/licenses/MIT 7 */ 8 #pragma once 9 10 #include <nrfx.h> 11 #include <nrfx_clock.h> 12 #include <hal/nrf_clock.h> 13 14 15 // Must be called before other functions can be used. 16 status_t nrf52_clock_init(void); 17 18 status_t nrf52_clock_hf_use_xtal_source(void); 19 void nrf52_clock_hf_use_internal_source(void); 20 21 status_t nrf52_clock_lfclk_enable(nrf_clock_lfclk_t src);