1 /* 2 * Copyright (c) 2017 Oticon A/S 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 #ifndef _NRF_HW_MODEL_CLOCK_H 7 #define _NRF_HW_MODEL_CLOCK_H 8 9 #include "nrfx.h" 10 11 #ifdef __cplusplus 12 extern "C"{ 13 #endif 14 15 extern NRF_CLOCK_Type NRF_CLOCK_regs; 16 void nrf_clock_init(); 17 void nrf_clock_clean_up(); 18 void nrf_clock_LFTimer_triggered(); 19 void nrf_clock_HFTimer_triggered(); 20 void nrf_clock_TASKS_LFCLKSTART(); 21 void nrf_clock_TASKS_HFCLKSTART(); 22 void nrf_clock_reqw_sideeffects_INTENSET(); 23 void nrf_clock_reqw_sideeffects_INTENCLR(); 24 void nrf_clock_reqw_sideeffects_TASKS_LFCLKSTART(); 25 void nrf_clock_reqw_sideeffects_TASKS_LFCLKSTOP(); 26 void nrf_clock_reqw_sideeffects_TASKS_HFCLKSTART(); 27 void nrf_clock_reqw_sideeffects_TASKS_HFCLKSTOP(); 28 29 #define LF_CLOCK_PERIOD 15625 /*in a fixed point format with 9 bits per us, the LF clock period*/ 30 31 #ifdef __cplusplus 32 } 33 #endif 34 35 #endif 36