RT-Thread RTOS 1.2.0
An open source embedded real-time operating system
|
#include <rtthread.h>
结构体 | |
struct | rt_cputimer |
类型定义 | |
typedef struct rt_cputimer * | rt_cputimer_t |
函数 | |
rt_err_t | rt_cputimer_detach (rt_cputimer_t timer) |
void | rt_cputimer_init (rt_cputimer_t timer, const char *name, void(*timeout)(void *parameter), void *parameter, rt_uint64_t tick, rt_uint8_t flag) |
rt_err_t | rt_cputimer_delete (rt_cputimer_t timer) |
rt_err_t | rt_cputimer_start (rt_cputimer_t timer) |
rt_err_t | rt_cputimer_stop (rt_cputimer_t timer) |
rt_err_t | rt_cputimer_control (rt_cputimer_t timer, int cmd, void *arg) |
rt_err_t | rt_cputime_sleep (rt_uint64_t tick) |
rt_err_t | rt_cputime_ndelay (rt_uint64_t ns) |
rt_err_t | rt_cputime_udelay (rt_uint64_t us) |
rt_err_t | rt_cputime_mdelay (rt_uint64_t ms) |
typedef struct rt_cputimer* rt_cputimer_t |
在文件 cputimer.h 第 26 行定义.
rt_err_t rt_cputimer_detach | ( | rt_cputimer_t | timer | ) |
void rt_cputimer_init | ( | rt_cputimer_t | timer, |
const char * | name, | ||
void(* | timeout )(void *parameter), | ||
void * | parameter, | ||
rt_uint64_t | tick, | ||
rt_uint8_t | flag ) |
rt_err_t rt_cputimer_delete | ( | rt_cputimer_t | timer | ) |
rt_err_t rt_cputimer_start | ( | rt_cputimer_t | timer | ) |
rt_err_t rt_cputimer_stop | ( | rt_cputimer_t | timer | ) |
rt_err_t rt_cputimer_control | ( | rt_cputimer_t | timer, |
int | cmd, | ||
void * | arg ) |
rt_err_t rt_cputime_sleep | ( | rt_uint64_t | tick | ) |
rt_err_t rt_cputime_ndelay | ( | rt_uint64_t | ns | ) |
rt_err_t rt_cputime_udelay | ( | rt_uint64_t | us | ) |
rt_err_t rt_cputime_mdelay | ( | rt_uint64_t | ms | ) |