drv_timer.h 436 B

123456789101112131415161718192021222324
  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. * 2019-07-29 zdzn first version
  9. */
  10. #ifndef __DRV_TIMER_H__
  11. #define __DRV_TIMER_H__
  12. #include <rtthread.h>
  13. #include <rtdevice.h>
  14. typedef struct rt_systimer_device
  15. {
  16. int timer_id;
  17. rt_uint32_t cnt;
  18. } rt_systimer_t;
  19. int rt_hw_systimer_init(void);
  20. #endif