minor updates on LV_ATTRIBUTE_...

This commit is contained in:
Gabor Kiss-Vamosi
2018-03-07 09:22:37 +01:00
parent 145ea416be
commit d068c85e80
4 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

@@ -55,7 +55,7 @@ void lv_task_init(void)
/** /**
* Call it periodically to handle lv_tasks. * Call it periodically to handle lv_tasks.
*/ */
inline void LV_ATTRIBUTE_TASK_HANDLER lv_task_handler(void) LV_ATTRIBUTE_TASK_HANDLER void lv_task_handler(void)
{ {
static uint32_t idle_period_start = 0; static uint32_t idle_period_start = 0;
static uint32_t handler_start = 0; static uint32_t handler_start = 0;

View File

@@ -67,7 +67,7 @@ void lv_task_init(void);
/** /**
* Call it periodically to handle lv_tasks. * Call it periodically to handle lv_tasks.
*/ */
void lv_task_handler(void); LV_ATTRIBUTE_TASK_HANDLER void lv_task_handler(void);
/** /**
* Create a new lv_task * Create a new lv_task