1 /*
2  * Copyright (c) 2006-2020, RT-Thread Development Team
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Change Logs:
7  * Date           Author       Notes
8  * 2029-05-06     hqfang       first implementation.
9  */
10 
11 #ifndef __DRV_HWTIMER__
12 #define __DRV_HWTIMER__
13 
14 #include <rtthread.h>
15 #include <rtdevice.h>
16 #include <rthw.h>
17 #include <drv_config.h>
18 
19 /* gd32 config class */
20 struct gd32_hwtimer_config
21 {
22     const char *name;
23     rt_uint32_t timer_periph;
24     IRQn_Type irqn;
25 };
26 
27 struct gd32_hwtimer
28 {
29     rt_hwtimer_t time_device;
30     struct gd32_hwtimer_config *config;
31 };
32 
33 #endif
34