lv_tick.h
Provide access to the system tick with 1 millisecond resolution
Functions
-
void lv_tick_inc(uint32_t tick_period)
You have to call this function periodically
- Parameters:
tick_period -- the call period of this function in milliseconds
-
uint32_t lv_tick_get(void)
Get the elapsed milliseconds since start up
- Returns:
the elapsed milliseconds
-
uint32_t lv_tick_elaps(uint32_t prev_tick)
Get the elapsed milliseconds since a previous time stamp
- Parameters:
prev_tick -- a previous time stamp (return value of lv_tick_get() )
- Returns:
the elapsed milliseconds since 'prev_tick'
-
void lv_delay_ms(uint32_t ms)
Delay for the given milliseconds. By default it's a blocking delay, but with
lv_delay_set_cb()
a custom delay function can be set too- Parameters:
ms -- the number of milliseconds to delay
-
void lv_tick_set_cb(lv_tick_get_cb_t cb)
Set the custom callback for 'lv_tick_get'
- Parameters:
cb -- call this callback on 'lv_tick_get'
-
void lv_delay_set_cb(lv_delay_cb_t cb)
Set a custom callback for 'lv_delay_ms'
- Parameters:
cb -- call this callback in 'lv_delay_ms'