2015-04-30 04:00:03 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2013 -2014 Espressif System
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ESP_TIMER_H__
|
|
|
|
#define __ESP_TIMER_H__
|
|
|
|
|
2015-07-30 17:34:13 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2015-04-30 04:00:03 +00:00
|
|
|
/* timer related */
|
2015-05-30 09:11:04 +00:00
|
|
|
typedef void sdk_os_timer_func_t(void *timer_arg);
|
2015-04-30 04:00:03 +00:00
|
|
|
|
|
|
|
typedef struct _os_timer_t {
|
|
|
|
struct _os_timer_t *timer_next;
|
|
|
|
void *freerots_handle;
|
|
|
|
uint32_t timer_expire;
|
|
|
|
uint32_t timer_period;
|
2015-05-30 09:11:04 +00:00
|
|
|
sdk_os_timer_func_t *timer_func;
|
2015-04-30 04:00:03 +00:00
|
|
|
bool timer_repeat_flag;
|
|
|
|
void *timer_arg;
|
2015-05-30 09:11:04 +00:00
|
|
|
} sdk_os_timer_t;
|
2015-04-30 04:00:03 +00:00
|
|
|
|
2015-07-30 17:34:13 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2015-04-30 04:00:03 +00:00
|
|
|
#endif
|