RT-Thread RTOS 1.2.0
An open source embedded real-time operating system
|
#include <rtthread.h>
结构体 | |
struct | rt_hwtimerval |
struct | rt_hwtimer_ops |
struct | rt_hwtimer_info |
struct | rt_hwtimer_device |
宏定义 | |
#define | HWTIMER_CNTMODE_UP 0x01 /* increment count mode */ |
#define | HWTIMER_CNTMODE_DW 0x02 /* decreasing count mode */ |
类型定义 | |
typedef struct rt_hwtimerval | rt_hwtimerval_t |
typedef struct rt_hwtimer_device | rt_hwtimer_t |
枚举 | |
enum | rt_hwtimer_ctrl_t { HWTIMER_CTRL_FREQ_SET = RT_DEVICE_CTRL_BASE(Timer) + 0x01 , HWTIMER_CTRL_STOP = RT_DEVICE_CTRL_BASE(Timer) + 0x02 , HWTIMER_CTRL_INFO_GET = RT_DEVICE_CTRL_BASE(Timer) + 0x03 , HWTIMER_CTRL_MODE_SET = RT_DEVICE_CTRL_BASE(Timer) + 0x04 } |
enum | rt_hwtimer_mode_t { HWTIMER_MODE_ONESHOT = 0x01 , HWTIMER_MODE_PERIOD } |
函数 | |
rt_err_t | rt_device_hwtimer_register (rt_hwtimer_t *timer, const char *name, void *user_data) |
void | rt_device_hwtimer_isr (rt_hwtimer_t *timer) |
typedef struct rt_hwtimerval rt_hwtimerval_t |
typedef struct rt_hwtimer_device rt_hwtimer_t |
enum rt_hwtimer_ctrl_t |
enum rt_hwtimer_mode_t |
枚举值 | ||
---|---|---|
HWTIMER_MODE_ONESHOT | 0x01 | |
HWTIMER_MODE_PERIOD |
rt_err_t rt_device_hwtimer_register | ( | rt_hwtimer_t * | timer, |
const char * | name, | ||
void * | user_data ) |
void rt_device_hwtimer_isr | ( | rt_hwtimer_t * | timer | ) |