drv_wktm.h 517 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright (C) 2022-2024, Xiaohua Semiconductor Co., Ltd.
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2023-02-09 CDT first version
  9. */
  10. #ifndef __DRV_WKTM_H__
  11. #define __DRV_WKTM_H__
  12. #include <rtthread.h>
  13. rt_err_t hc32_wktm_start(rt_uint32_t reload);
  14. void hc32_wktm_stop(void);
  15. rt_uint32_t hc32_wktm_get_countfreq(void);
  16. rt_uint32_t hc32_wktm_get_tick_max(void);
  17. rt_uint32_t hc32_wktm_get_timeout_tick(void);
  18. #endif /* __DRV_WKTM_H__ */