micro_climate/App/Inc/timer.h

14 lines
347 B
C
Raw Normal View History

2024-07-05 03:52:43 +00:00
#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_