1 /* SPDX-License-Identifier: BSD-3-Clause */ 2 /* 3 * Copyright (c) 2020-2021 Rockchip Electronics Co., Ltd. 4 */ 5 6 #include "hal_conf.h" 7 8 #ifdef HAL_SYSTICK_MODULE_ENABLED 9 10 /** @addtogroup RK_HAL_Driver 11 * @{ 12 */ 13 14 /** @addtogroup SYSTICK 15 * @{ 16 */ 17 18 #ifndef _HAL_SYSTICK_H_ 19 #define _HAL_SYSTICK_H_ 20 21 #include "hal_def.h" 22 23 /***************************** MACRO Definition ******************************/ 24 /** @defgroup SYSTICK_Exported_Definition_Group1 Basic Definition 25 * @{ 26 */ 27 28 /***************************** Structure Definition **************************/ 29 30 /** @} */ 31 /***************************** Function Declare ******************************/ 32 /** @defgroup SYSTICK_Public_Function_Declare Public Function Declare 33 * @{ 34 */ 35 36 HAL_Status HAL_SYSTICK_Init(void); 37 HAL_Status HAL_SYSTICK_Config(uint32_t ticksNumb); 38 HAL_Status HAL_SYSTICK_CLKSourceConfig(eHAL_systickClkSource clkSource); 39 HAL_Check HAL_SYSTICK_IsExtRefClockEnabled(void); 40 void HAL_SYSTICK_IRQHandler(void); 41 HAL_Status HAL_SYSTICK_Enable(void); 42 43 /** @} */ 44 45 #endif 46 47 /** @} */ 48 49 /** @} */ 50 51 #endif /* HAL_SYSTICK_MODULE_ENABLED */ 52