RT-Thread RTOS 1.2.0
An open source embedded real-time operating system
载入中...
搜索中...
未找到
lptimer.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 * 2021-10-11 zhangsz the first version
9 */
10
11#ifndef __LPTIMER_H__
12#define __LPTIMER_H__
13
14#include <rtthread.h>
15
17{
20};
21typedef struct rt_lptimer *rt_lptimer_t;
22
24 const char *name,
25 void (*timeout)(void *parameter),
26 void *parameter,
27 rt_tick_t time,
28 rt_uint8_t flag);
29
33
35
37
38#endif
struct rt_lptimer * rt_lptimer_t
rt_err_t rt_lptimer_stop(rt_lptimer_t timer)
rt_err_t rt_lptimer_detach(rt_lptimer_t timer)
rt_err_t rt_lptimer_control(rt_lptimer_t timer, int cmd, void *arg)
rt_err_t rt_lptimer_start(rt_lptimer_t timer)
void rt_lptimer_init(rt_lptimer_t timer, const char *name, void(*timeout)(void *parameter), void *parameter, rt_tick_t time, rt_uint8_t flag)
rt_tick_t rt_lptimer_next_timeout_tick(void)
rt_base_t rt_err_t
unsigned char rt_uint8_t
rt_uint32_t rt_tick_t
struct rt_list_node rt_list_t
rt_list_t list
struct rt_timer timer