esp-open-rtos/include/espressif/esp_timer.h

31 lines
572 B
C
Raw Permalink Normal View History

/*
* Copyright (C) 2013 -2014 Espressif System
*
*/
#ifndef __ESP_TIMER_H__
#define __ESP_TIMER_H__
#ifdef __cplusplus
extern "C" {
#endif
/* timer related */
typedef void sdk_os_timer_func_t(void *timer_arg);
typedef struct _os_timer_t {
struct _os_timer_t *timer_next;
void *freerots_handle;
uint32_t timer_expire;
uint32_t timer_period;
sdk_os_timer_func_t *timer_func;
bool timer_repeat_flag;
void *timer_arg;
} sdk_os_timer_t;
#ifdef __cplusplus
}
#endif
#endif