1 /* 2 * Copyright (c) 2017, NXP 3 * All rights reserved. 4 * 5 * SPDX-License-Identifier: BSD-3-Clause 6 */ 7 #ifndef _FSL_FRO_CALIB_H_ 8 #define _FSL_FRO_CALIB_H_ 9 10 #include "fsl_common.h" 11 #include "fsl_device_registers.h" 12 #include <stdint.h> 13 14 /*! 15 * @addtogroup power 16 * @{ 17 */ 18 /******************************************************************************* 19 * Definitions 20 ******************************************************************************/ 21 22 /*! @name Driver version */ 23 /*@{*/ 24 /*! @brief FRO_CALIB driver version 1.0.0. */ 25 #define FSL_FRO_CALIB_DRIVER_VERSION (MAKE_VERSION(1, 0, 0)) 26 /*@}*/ 27 28 /* Component ID definition, used by tools. */ 29 #ifndef FSL_COMPONENT_ID 30 #define FSL_COMPONENT_ID "platform.drivers.fro_calib" 31 #endif 32 33 /******************************************************************************* 34 * API 35 ******************************************************************************/ 36 37 #ifdef __cplusplus 38 extern "C" { 39 #endif 40 41 /* Returns the version of the FRO Calibration library */ 42 unsigned int fro_calib_Get_Lib_Ver(void); 43 44 /* ctimer instance */ 45 /* ctimer clock frquency in KHz */ 46 void Chip_TIMER_Instance_Freq(CTIMER_Type *base, unsigned int ctimerFreq); 47 48 /* USB_SOF_Event */ 49 /* Application software should be written to make sure the USB_SOF_EVENT() is */ 50 /* being called with lower interrupt latency for calibration to work properly */ 51 void USB_SOF_Event(void); 52 53 #ifdef __cplusplus 54 } 55 #endif 56 57 /** 58 * @} 59 */ 60 61 #endif /* _FSL_FRO_CALIB_H_ */ 62