hal_systick.h 1.1 KB

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