BigW Consortium Gitlab

Commit 89044a86 by Zaltora

Add specific otion for tick function + inline it

parent 1c347770
......@@ -9,6 +9,15 @@
#define LV_CONF_H
/*----------------
* Compiler attribute
*----------------*/
/*
* Some Architecture can be customized, like put function or variable
* to a specific memory segment.
*/
#define LV_TICK_ATTRIBUTE /* Define a custom attribute to Tick function */
/*----------------
* Dynamic memory
*----------------*/
/*
......
......@@ -8,6 +8,7 @@
*********************/
#include "lv_hal_tick.h"
#include <stddef.h>
#include "../../lv_conf.h"
/*********************
* DEFINES
......@@ -39,7 +40,7 @@ static volatile uint8_t tick_irq_flag;
* You have to call this function periodically
* @param tick_period the call period of this function in milliseconds
*/
void lv_tick_inc(uint32_t tick_period)
inline void LV_TICK_ATTRIBUTE lv_tick_inc(uint32_t tick_period)
{
tick_irq_flag = 0;
sys_time += tick_period;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment