diff options
Diffstat (limited to 'common/rt/include/rt_tmr.h')
| -rw-r--r-- | common/rt/include/rt_tmr.h | 25 |
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 + |
