RT-Thread RTOS 1.2.0
An open source embedded real-time operating system
载入中...
搜索中...
未找到
cputimer.h
浏览该文件的文档.
1/*
2 * Copyright (c) 2006-2023, RT-Thread Development Team
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 *
6 * Change Logs:
7 * Date Author Notes
8 * 2023-02-13 zhkag first version
9 */
10
11#ifndef CPUTIMER_H__
12#define CPUTIMER_H__
13
14#include <rtthread.h>
15
26typedef struct rt_cputimer *rt_cputimer_t;
27
29
30#ifdef RT_USING_HEAP
32 const char *name,
33 void (*timeout)(void *parameter),
34 void *parameter,
35 rt_uint64_t tick,
36 rt_uint8_t flag);
38#endif
39
42rt_err_t rt_cputimer_control(rt_cputimer_t timer, int cmd, void *arg);
47
48#endif
rt_err_t rt_cputimer_delete(rt_cputimer_t timer)
rt_err_t rt_cputimer_start(rt_cputimer_t timer)
rt_err_t rt_cputime_mdelay(rt_uint64_t ms)
rt_err_t rt_cputimer_stop(rt_cputimer_t timer)
rt_err_t rt_cputime_ndelay(rt_uint64_t ns)
rt_err_t rt_cputimer_control(rt_cputimer_t timer, int cmd, void *arg)
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_cputime_udelay(rt_uint64_t us)
rt_err_t rt_cputime_sleep(rt_uint64_t tick)
struct rt_cputimer * rt_cputimer_t
rt_err_t rt_cputimer_detach(rt_cputimer_t timer)
rt_base_t rt_err_t
unsigned char rt_uint8_t
struct rt_list_node rt_list_t
unsigned long long rt_uint64_t
rt_uint64_t init_tick
struct rt_semaphore sem
void(* timeout_func)(void *parameter)
struct rt_object parent
rt_list_t row
rt_uint64_t timeout_tick