From b26bb2e5b7c772dcfc1bd90be9d50ffad900eda3 Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Wed, 29 Nov 2017 15:34:23 +0100 Subject: [PATCH] lv_tick_inc: update with 'tick_period' parameter --- lv_draw/lv_draw_vbasic.c | 3 +-- lv_hal/lv_hal_tick.c | 5 +++-- lv_hal/lv_hal_tick.h | 5 +++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/lv_draw/lv_draw_vbasic.c b/lv_draw/lv_draw_vbasic.c index e6c9c23fa..9465e4eb5 100644 --- a/lv_draw/lv_draw_vbasic.c +++ b/lv_draw/lv_draw_vbasic.c @@ -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) { diff --git a/lv_hal/lv_hal_tick.c b/lv_hal/lv_hal_tick.c index 984b22d90..6d5e23e75 100644 --- a/lv_hal/lv_hal_tick.c +++ b/lv_hal/lv_hal_tick.c @@ -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++; diff --git a/lv_hal/lv_hal_tick.h b/lv_hal/lv_hal_tick.h index 40c62141b..ff8606104 100644 --- a/lv_hal/lv_hal_tick.h +++ b/lv_hal/lv_hal_tick.h @@ -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