summaryrefslogtreecommitdiff
path: root/common/rt/include/rt_tmr.h
diff options
context:
space:
mode:
authorfengweihao <[email protected]>2019-11-05 11:38:40 +0800
committerfengweihao <[email protected]>2019-11-05 11:38:40 +0800
commit7192f437e55c9141d8cc72858295d4c5c6556616 (patch)
tree95dbf9e93da30601c34af4279ac9380251ae3d86 /common/rt/include/rt_tmr.h
parent8b089533e9c75bc6a99917cce71bc3839dd0ab44 (diff)
* 修改编译方式为CMakev2.1.2-20191105
* 删除C++适配代码 * 修改编译告警
Diffstat (limited to 'common/rt/include/rt_tmr.h')
-rw-r--r--common/rt/include/rt_tmr.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/common/rt/include/rt_tmr.h b/common/rt/include/rt_tmr.h
new file mode 100644
index 0000000..3368f79
--- /dev/null
+++ b/common/rt/include/rt_tmr.h
@@ -0,0 +1,25 @@
+/*************************************************************************
+ > File Name: rt_tmr.h
+ > Author:
+ > Mail:
+ > Created Time: 2018年09月19日 星期三 15时58分04秒
+ ************************************************************************/
+
+#ifndef _RT_TMR_H
+#define _RT_TMR_H
+
+#define RT_TMR_ADVANCED
+
+extern void tmr_start(uint32_t uid);
+extern void tmr_stop(uint32_t uid);
+
+/**
+* routine: must be a reentrant function.
+* An unknown error ocurrs if a thread-safe function called as a routione.
+*/
+extern uint32_t tmr_create(int module,
+ const char *desc,
+ void (*routine)(uint32_t, int, char **), int argc, char **argv, int sec);
+
+#endif
+