24#ifndef LV_ATTRIBUTE_TIMER_HANDLER
25#define LV_ATTRIBUTE_TIMER_HANDLER
28#define LV_NO_TIMER_READY 0xFFFFFFFF
68LV_ATTRIBUTE_TIMER_HANDLER uint32_t lv_timer_handler(
void);
78static inline LV_ATTRIBUTE_TIMER_HANDLER uint32_t lv_timer_handler_run_in_period(uint32_t ms)
80 static uint32_t last_tick = 0;
83 if((curr_tick - last_tick) >= (ms)) {
84 last_tick = curr_tick;
85 return lv_timer_handler();
uint32_t lv_tick_get(void)
void lv_timer_enable(bool en)
void lv_timer_set_cb(lv_timer_t *timer, lv_timer_cb_t timer_cb)
void lv_timer_set_repeat_count(lv_timer_t *timer, int32_t repeat_count)
void lv_timer_ready(lv_timer_t *timer)
void lv_timer_del(lv_timer_t *timer)
lv_timer_t * lv_timer_create_basic(void)
void(* lv_timer_cb_t)(struct _lv_timer_t *)
Definition lv_timer.h:39
uint8_t lv_timer_get_idle(void)
lv_timer_t * lv_timer_get_next(lv_timer_t *timer)
void lv_timer_pause(lv_timer_t *timer)
lv_timer_t * lv_timer_create(lv_timer_cb_t timer_xcb, uint32_t period, void *user_data)
struct _lv_timer_t lv_timer_t
void lv_timer_reset(lv_timer_t *timer)
void lv_timer_set_period(lv_timer_t *timer, uint32_t period)
void _lv_timer_core_init(void)
void * user_data
Definition lv_timer.h:48
uint32_t last_run
Definition lv_timer.h:46
uint32_t period
Definition lv_timer.h:45
lv_timer_cb_t timer_cb
Definition lv_timer.h:47
int32_t repeat_count
Definition lv_timer.h:49