123456789101112131415161718192021222324252627 |
- /*******************************************************************************
- * File Name: STimer.h
- * Function Describe: Header file for STimer.c
- * Relate Module:
- * Explain:
- * Writer:ShiLiangWen
- * Date: 2015.11.6
- *******************************************************************************/
- #ifndef __STIMER_H
- #define __STIMER_H
- /************************Begin************************************************/
- #include "stdint.h"
- typedef void (*timer_cb_t)(void *param); //¶¨Ê±Æ÷»Øµ÷º¯ÊýÖ¸Õë
- typedef struct timer_t
- {
- struct timer_t *next;
- uint32_t tcnt;
- timer_cb_t handler;
- void *param;
- }timer_t,*p_timer_t;
- void STimerCreate(timer_t *Timer,timer_cb_t CallBack,void *Param);
- void STimerStart(timer_t *Timer,uint32_t Interval);
- void STimerStop(timer_t *Timer);
- /*************************End*************************************************/
- #endif
-
|