1 /*! 2 * @file tsc_time.h 3 * 4 * @brief This file contains external declarations of the tsc_time.c file. 5 * 6 * @version V1.0.1 7 * 8 * @date 2022-09-20 9 * 10 * @attention 11 * 12 * Copyright (C) 2020-2022 Geehy Semiconductor 13 * 14 * You may not use this file except in compliance with the 15 * GEEHY COPYRIGHT NOTICE (GEEHY SOFTWARE PACKAGE LICENSE). 16 * 17 * The program is only for reference, which is distributed in the hope 18 * that it will be useful and instructional for customers to develop 19 * their software. Unless required by applicable law or agreed to in 20 * writing, the program is distributed on an "AS IS" BASIS, WITHOUT 21 * ANY WARRANTY OR CONDITIONS OF ANY KIND, either express or implied. 22 * See the GEEHY SOFTWARE PACKAGE LICENSE for the governing permissions 23 * and limitations under the License. 24 */ 25 26 /* Define to prevent recursive inclusion */ 27 #ifndef __TOUCH_TIME_H 28 #define __TOUCH_TIME_H 29 30 #ifdef __cplusplus 31 extern "C" { 32 #endif 33 34 /* Includes */ 35 #include "apm32f0xx.h" 36 #include "tsc_types.h" 37 #include "tsc_acq.h" 38 39 /** @addtogroup TSC_Driver_Library TSC Driver Library 40 @{ 41 */ 42 43 /** @addtogroup TSC_Time_Driver TSC Time Driver 44 @{ 45 */ 46 47 /** @defgroup TSC_Time_Macros Macros 48 @{ 49 */ 50 51 /**@} end of group TSC_Time_Macros */ 52 53 /** @defgroup TSC_Time_Enumerations Enumerations 54 @{ 55 */ 56 57 /**@} end of group TSC_Time_Enumerations */ 58 59 /** @defgroup TSC_Time_Structures Structures 60 @{ 61 */ 62 /**@} end of group TSC_Time_Structures */ 63 64 /** @defgroup TSC_Time_Variables Variables 65 @{ 66 */ 67 /**@} end of group TSC_Time_Variables */ 68 69 /** @defgroup TSC_Time_Functions Functions 70 @{ 71 */ 72 73 TSC_STATUS_T TSC_Time_Config(void); 74 void TSC_Time_ProcessInterrupt(void); 75 TSC_STATUS_T TSC_Time_Delay_ms(TSC_tTick_ms_T delay_ms, __IO TSC_tTick_ms_T* last_tick); 76 TSC_STATUS_T TSC_Time_Delay_sec(TSC_tTick_sec_T delay_sec, __IO TSC_tTick_sec_T* last_tick); 77 void TSC_CallBack_TimerTick(void); 78 79 #ifdef __cplusplus 80 } 81 #endif 82 83 #endif /* __TSC_TIME_H */ 84 85 /**@} end of group TSC_Time_Functions */ 86 /**@} end of group TSC_Time_Driver */ 87 /**@} end of group TSC_Driver_Library */ 88