summaryrefslogtreecommitdiff
path: root/bsp/nuclei/libraries/gd32vf103/HAL_Drivers/drv_timer.h
blob: 53b2e1e45edcaf272d12859d68032c61700a675a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
 * Copyright (c) 2006-2020, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2029-05-06     hqfang       first implementation.
 */

#ifndef __DRV_CLOCK_TIMER__
#define __DRV_CLOCK_TIMER__

#include <rtthread.h>
#include <rtdevice.h>
#include <rthw.h>
#include <drv_config.h>

/* gd32 config class */
struct gd32_clock_timer_config
{
    const char *name;
    rt_uint32_t timer_periph;
    IRQn_Type irqn;
};

struct gd32_clock_timer
{
    rt_clock_timer_t time_device;
    struct gd32_clock_timer_config *config;
};

#endif