drv_hwtimer.h 702 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * Copyright (c) 2006-2023, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2023-09-04 Rbb666 first version
  9. */
  10. #ifndef __TMR_CONFIG_H__
  11. #define __TMR_CONFIG_H__
  12. #include <rtthread.h>
  13. #include <drivers/hwtimer.h>
  14. #include <drv_config.h>
  15. #include <hal_data.h>
  16. #ifdef __cplusplus
  17. extern "C"
  18. {
  19. #endif
  20. struct ra_hwtimer
  21. {
  22. rt_hwtimer_t tmr_device;
  23. gpt_instance_ctrl_t *g_ctrl;
  24. timer_instance_t const *const g_timer;
  25. timer_cfg_t const *const g_cfg;
  26. char *name;
  27. };
  28. #ifdef __cplusplus
  29. }
  30. #endif
  31. #endif /* __TMR_CONFIG_H__ */