BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lvgl
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
lvgl
Commits
89044a86
Commit
89044a86
authored
Jan 14, 2018
by
Zaltora
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add specific otion for tick function + inline it
parent
1c347770
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
lv_conf_templ.h
lv_conf_templ.h
+9
-0
lv_hal_tick.c
lv_hal/lv_hal_tick.c
+2
-1
No files found.
lv_conf_templ.h
View file @
89044a86
...
...
@@ -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
*----------------*/
/*
...
...
lv_hal/lv_hal_tick.c
View file @
89044a86
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment