14 lines
347 B
C
14 lines
347 B
C
#ifndef _TIMER_H_
|
|
#define _TIMER_H_
|
|
#include "comm_types.h"
|
|
|
|
typedef void (*timeout_func)(u_int32_t param);
|
|
|
|
void set_timeout(u_int32_t timeout_ms, timeout_func func, u_int32_t param);
|
|
void stop_timout();
|
|
void start_timout();
|
|
void set_flag_timeout(u_int32_t timeout_ms, u_int32_t *flag_addr);
|
|
|
|
void delay_ms(u_int32_t time_ms);
|
|
|
|
#endif //_TIMER_H_
|