gtimer.h 668 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2011-12-20 GuEe-GUI first version
  9. */
  10. #ifndef __GTIMER_H__
  11. #define __GTIMER_H__
  12. #include <rtdef.h>
  13. void rt_hw_gtimer_init(void);
  14. void rt_hw_gtimer_local_enable(void);
  15. void rt_hw_gtimer_local_disable(void);
  16. void rt_hw_gtimer_enable();
  17. void rt_hw_gtimer_disable();
  18. void rt_hw_set_gtimer_val(rt_uint64_t value);
  19. rt_uint64_t rt_hw_get_gtimer_val();
  20. rt_uint64_t rt_hw_get_cntpct_val();
  21. rt_uint64_t rt_hw_get_gtimer_frq();
  22. rt_uint64_t rt_hw_set_gtimer_frq(rt_uint64_t value);
  23. #endif /* __GTIMER_H__ */