1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

lv_tick_inc: update with 'tick_period' parameter

This commit is contained in:
Gabor Kiss-Vamosi 2017-11-29 15:34:23 +01:00
parent 366ac0c03c
commit b26bb2e5b7
3 changed files with 7 additions and 6 deletions

View File

@ -162,8 +162,7 @@ void lv_vfill(const lv_area_t * cords_p, const lv_area_t * mask_p,
}
}
/*Fill with opacity*/
else
{
else {
/*Use hw blend if present*/
if(lv_disp_is_mem_blend_supported()) {
if(color_map[0].full != color.full || last_width != w) {

View File

@ -36,9 +36,10 @@ static volatile uint8_t tick_irq_flag;
**********************/
/**
* You have to call this function in every milliseconds
* You have to call this function periodically
* @param tick_period the call period of this function in milliseconds
*/
void lv_tick_inc(void)
void lv_tick_inc(uint32_t tick_period)
{
tick_irq_flag = 0;
sys_time++;

View File

@ -29,9 +29,10 @@ extern "C" {
**********************/
/**
* You have to call this function in every milliseconds
* You have to call this function periodically
* @param tick_period the call period of this function in milliseconds
*/
void lv_tick_inc(void);
void lv_tick_inc(uint32_t tick_period);
/**
* Get the elapsed milliseconds since start up