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  * 2021-03-30     huijie.feng  first version
9  */
10 
11 #ifndef __GTIMER_H__
12 #define __GTIMER_H__
13 
14 #include <rtdef.h>
15 
16 void gtimer_set_counter_frequency(rt_uint32_t value);
17 rt_uint32_t gtimer_get_counter_frequency(void);
18 void gtimer_set_load_value(rt_uint32_t value);
19 rt_uint32_t gtimer_get_current_value(void);
20 rt_uint64_t gtimer_get_current_physical_value(void);
21 void gtimer_set_physical_compare_value(rt_uint64_t value);
22 rt_uint64_t gtimer_get_physical_compare_value(void);
23 void gtimer_set_control(rt_uint32_t value);
24 rt_uint32_t gtimer_get_control(void);
25 
26 #endif
27 
28