Skip to content

Commit d6d3857

Browse files
committed
Precompiling lvgl for lvgl:v8.2.0.
lvgl/lvgl@0b5a1d4.
1 parent 357072b commit d6d3857

File tree

147 files changed

+26288
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

147 files changed

+26288
-0
lines changed

src/cortex-m0plus/liblvgl.a

835 KB
Binary file not shown.

src/lib/lvgl/lvgl.h

Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
/**
2+
* @file lvgl.h
3+
* Include all LVGL related headers
4+
*/
5+
6+
#ifndef LVGL_H
7+
#define LVGL_H
8+
9+
#ifdef __cplusplus
10+
extern "C" {
11+
#endif
12+
13+
/***************************
14+
* CURRENT VERSION OF LVGL
15+
***************************/
16+
#define LVGL_VERSION_MAJOR 8
17+
#define LVGL_VERSION_MINOR 2
18+
#define LVGL_VERSION_PATCH 0
19+
#define LVGL_VERSION_INFO ""
20+
21+
/*********************
22+
* INCLUDES
23+
*********************/
24+
25+
#include "src/misc/lv_log.h"
26+
#include "src/misc/lv_timer.h"
27+
#include "src/misc/lv_math.h"
28+
#include "src/misc/lv_mem.h"
29+
#include "src/misc/lv_async.h"
30+
#include "src/misc/lv_anim_timeline.h"
31+
#include "src/misc/lv_printf.h"
32+
33+
#include "src/hal/lv_hal.h"
34+
35+
#include "src/core/lv_obj.h"
36+
#include "src/core/lv_group.h"
37+
#include "src/core/lv_indev.h"
38+
#include "src/core/lv_refr.h"
39+
#include "src/core/lv_disp.h"
40+
#include "src/core/lv_theme.h"
41+
42+
#include "src/font/lv_font.h"
43+
#include "src/font/lv_font_loader.h"
44+
#include "src/font/lv_font_fmt_txt.h"
45+
46+
#include "src/widgets/lv_arc.h"
47+
#include "src/widgets/lv_btn.h"
48+
#include "src/widgets/lv_img.h"
49+
#include "src/widgets/lv_label.h"
50+
#include "src/widgets/lv_line.h"
51+
#include "src/widgets/lv_table.h"
52+
#include "src/widgets/lv_checkbox.h"
53+
#include "src/widgets/lv_bar.h"
54+
#include "src/widgets/lv_slider.h"
55+
#include "src/widgets/lv_btnmatrix.h"
56+
#include "src/widgets/lv_dropdown.h"
57+
#include "src/widgets/lv_roller.h"
58+
#include "src/widgets/lv_textarea.h"
59+
#include "src/widgets/lv_canvas.h"
60+
#include "src/widgets/lv_switch.h"
61+
62+
#include "src/draw/lv_draw.h"
63+
64+
#include "src/lv_api_map.h"
65+
66+
/*-----------------
67+
* EXTRAS
68+
*----------------*/
69+
#include "src/extra/lv_extra.h"
70+
#include "src/extra/widgets/lv_widgets.h"
71+
#include "src/extra/layouts/lv_layouts.h"
72+
#include "src/extra/themes/lv_themes.h"
73+
#include "src/extra/others/lv_others.h"
74+
#include "src/extra/libs/lv_libs.h"
75+
76+
/*********************
77+
* DEFINES
78+
*********************/
79+
80+
/**********************
81+
* TYPEDEFS
82+
**********************/
83+
84+
/**********************
85+
* GLOBAL PROTOTYPES
86+
**********************/
87+
88+
/**********************
89+
* MACROS
90+
**********************/
91+
92+
/** Gives 1 if the x.y.z version is supported in the current version
93+
* Usage:
94+
*
95+
* - Require v6
96+
* #if LV_VERSION_CHECK(6,0,0)
97+
* new_func_in_v6();
98+
* #endif
99+
*
100+
*
101+
* - Require at least v5.3
102+
* #if LV_VERSION_CHECK(5,3,0)
103+
* new_feature_from_v5_3();
104+
* #endif
105+
*
106+
*
107+
* - Require v5.3.2 bugfixes
108+
* #if LV_VERSION_CHECK(5,3,2)
109+
* bugfix_in_v5_3_2();
110+
* #endif
111+
*
112+
*/
113+
#define LV_VERSION_CHECK(x,y,z) (x == LVGL_VERSION_MAJOR && (y < LVGL_VERSION_MINOR || (y == LVGL_VERSION_MINOR && z <= LVGL_VERSION_PATCH)))
114+
115+
/**
116+
* Wrapper functions for VERSION macros
117+
*/
118+
119+
static inline int lv_version_major(void)
120+
{
121+
return LVGL_VERSION_MAJOR;
122+
}
123+
124+
static inline int lv_version_minor(void)
125+
{
126+
return LVGL_VERSION_MINOR;
127+
}
128+
129+
static inline int lv_version_patch(void)
130+
{
131+
return LVGL_VERSION_PATCH;
132+
}
133+
134+
static inline const char *lv_version_info(void)
135+
{
136+
return LVGL_VERSION_INFO;
137+
}
138+
139+
#ifdef __cplusplus
140+
} /*extern "C"*/
141+
#endif
142+
143+
#endif /*LVGL_H*/

src/lib/lvgl/src/core/lv_disp.h

Lines changed: 244 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,244 @@
1+
/**
2+
* @file lv_disp.h
3+
*
4+
*/
5+
6+
#ifndef LV_DISP_H
7+
#define LV_DISP_H
8+
9+
#ifdef __cplusplus
10+
extern "C" {
11+
#endif
12+
13+
/*********************
14+
* INCLUDES
15+
*********************/
16+
#include "../hal/lv_hal.h"
17+
#include "lv_obj.h"
18+
#include "lv_theme.h"
19+
20+
/*********************
21+
* DEFINES
22+
*********************/
23+
24+
/**********************
25+
* TYPEDEFS
26+
**********************/
27+
28+
typedef enum {
29+
LV_SCR_LOAD_ANIM_NONE,
30+
LV_SCR_LOAD_ANIM_OVER_LEFT,
31+
LV_SCR_LOAD_ANIM_OVER_RIGHT,
32+
LV_SCR_LOAD_ANIM_OVER_TOP,
33+
LV_SCR_LOAD_ANIM_OVER_BOTTOM,
34+
LV_SCR_LOAD_ANIM_MOVE_LEFT,
35+
LV_SCR_LOAD_ANIM_MOVE_RIGHT,
36+
LV_SCR_LOAD_ANIM_MOVE_TOP,
37+
LV_SCR_LOAD_ANIM_MOVE_BOTTOM,
38+
LV_SCR_LOAD_ANIM_FADE_ON,
39+
} lv_scr_load_anim_t;
40+
41+
/**********************
42+
* GLOBAL PROTOTYPES
43+
**********************/
44+
45+
/**
46+
* Return with a pointer to the active screen
47+
* @param disp pointer to display which active screen should be get. (NULL to use the default
48+
* screen)
49+
* @return pointer to the active screen object (loaded by 'lv_scr_load()')
50+
*/
51+
lv_obj_t * lv_disp_get_scr_act(lv_disp_t * disp);
52+
53+
/**
54+
* Return with a pointer to the previous screen. Only used during screen transitions.
55+
* @param disp pointer to display which previous screen should be get. (NULL to use the default
56+
* screen)
57+
* @return pointer to the previous screen object or NULL if not used now
58+
*/
59+
lv_obj_t * lv_disp_get_scr_prev(lv_disp_t * disp);
60+
61+
/**
62+
* Make a screen active
63+
* @param scr pointer to a screen
64+
*/
65+
void lv_disp_load_scr(lv_obj_t * scr);
66+
67+
/**
68+
* Return with the top layer. (Same on every screen and it is above the normal screen layer)
69+
* @param disp pointer to display which top layer should be get. (NULL to use the default screen)
70+
* @return pointer to the top layer object (transparent screen sized lv_obj)
71+
*/
72+
lv_obj_t * lv_disp_get_layer_top(lv_disp_t * disp);
73+
74+
/**
75+
* Return with the sys. layer. (Same on every screen and it is above the normal screen and the top
76+
* layer)
77+
* @param disp pointer to display which sys. layer should be retrieved. (NULL to use the default screen)
78+
* @return pointer to the sys layer object (transparent screen sized lv_obj)
79+
*/
80+
lv_obj_t * lv_disp_get_layer_sys(lv_disp_t * disp);
81+
82+
/**
83+
* Set the theme of a display
84+
* @param disp pointer to a display
85+
*/
86+
void lv_disp_set_theme(lv_disp_t * disp, lv_theme_t * th);
87+
88+
/**
89+
* Get the theme of a display
90+
* @param disp pointer to a display
91+
* @return the display's theme (can be NULL)
92+
*/
93+
lv_theme_t * lv_disp_get_theme(lv_disp_t * disp);
94+
95+
/**
96+
* Set the background color of a display
97+
* @param disp pointer to a display
98+
* @param color color of the background
99+
*/
100+
void lv_disp_set_bg_color(lv_disp_t * disp, lv_color_t color);
101+
102+
/**
103+
* Set the background image of a display
104+
* @param disp pointer to a display
105+
* @param img_src path to file or pointer to an `lv_img_dsc_t` variable
106+
*/
107+
void lv_disp_set_bg_image(lv_disp_t * disp, const void * img_src);
108+
109+
/**
110+
* Set opacity of the background
111+
* @param disp pointer to a display
112+
* @param opa opacity (0..255)
113+
*/
114+
void lv_disp_set_bg_opa(lv_disp_t * disp, lv_opa_t opa);
115+
116+
/**
117+
* Switch screen with animation
118+
* @param scr pointer to the new screen to load
119+
* @param anim_type type of the animation from `lv_scr_load_anim_t`. E.g. `LV_SCR_LOAD_ANIM_MOVE_LEFT`
120+
* @param time time of the animation
121+
* @param delay delay before the transition
122+
* @param auto_del true: automatically delete the old screen
123+
*/
124+
void lv_scr_load_anim(lv_obj_t * scr, lv_scr_load_anim_t anim_type, uint32_t time, uint32_t delay, bool auto_del);
125+
126+
/**
127+
* Get elapsed time since last user activity on a display (e.g. click)
128+
* @param disp pointer to a display (NULL to get the overall smallest inactivity)
129+
* @return elapsed ticks (milliseconds) since the last activity
130+
*/
131+
uint32_t lv_disp_get_inactive_time(const lv_disp_t * disp);
132+
133+
/**
134+
* Manually trigger an activity on a display
135+
* @param disp pointer to a display (NULL to use the default display)
136+
*/
137+
void lv_disp_trig_activity(lv_disp_t * disp);
138+
139+
/**
140+
* Clean any CPU cache that is related to the display.
141+
* @param disp pointer to a display (NULL to use the default display)
142+
*/
143+
void lv_disp_clean_dcache(lv_disp_t * disp);
144+
145+
/**
146+
* Get a pointer to the screen refresher timer to
147+
* modify its parameters with `lv_timer_...` functions.
148+
* @param disp pointer to a display
149+
* @return pointer to the display refresher timer. (NULL on error)
150+
*/
151+
lv_timer_t * _lv_disp_get_refr_timer(lv_disp_t * disp);
152+
153+
/*------------------------------------------------
154+
* To improve backward compatibility
155+
* Recommended only if you have one display
156+
*------------------------------------------------*/
157+
158+
/**
159+
* Get the active screen of the default display
160+
* @return pointer to the active screen
161+
*/
162+
static inline lv_obj_t * lv_scr_act(void)
163+
{
164+
return lv_disp_get_scr_act(lv_disp_get_default());
165+
}
166+
167+
/**
168+
* Get the top layer of the default display
169+
* @return pointer to the top layer
170+
*/
171+
static inline lv_obj_t * lv_layer_top(void)
172+
{
173+
return lv_disp_get_layer_top(lv_disp_get_default());
174+
}
175+
176+
/**
177+
* Get the active screen of the default display
178+
* @return pointer to the sys layer
179+
*/
180+
static inline lv_obj_t * lv_layer_sys(void)
181+
{
182+
return lv_disp_get_layer_sys(lv_disp_get_default());
183+
}
184+
185+
static inline void lv_scr_load(lv_obj_t * scr)
186+
{
187+
lv_disp_load_scr(scr);
188+
}
189+
190+
/**********************
191+
* MACROS
192+
**********************/
193+
194+
/*------------------------------------------------
195+
* To improve backward compatibility
196+
* Recommended only if you have one display
197+
*------------------------------------------------*/
198+
199+
#ifndef LV_HOR_RES
200+
/**
201+
* The horizontal resolution of the currently active display.
202+
*/
203+
#define LV_HOR_RES lv_disp_get_hor_res(lv_disp_get_default())
204+
#endif
205+
206+
#ifndef LV_VER_RES
207+
/**
208+
* The vertical resolution of the currently active display.
209+
*/
210+
#define LV_VER_RES lv_disp_get_ver_res(lv_disp_get_default())
211+
#endif
212+
213+
/**
214+
* Scale the given number of pixels (a distance or size) relative to a 160 DPI display
215+
* considering the DPI of the default display.
216+
* It ensures that e.g. `lv_dpx(100)` will have the same physical size regardless to the
217+
* DPI of the display.
218+
* @param n the number of pixels to scale
219+
* @return `n x current_dpi/160`
220+
*/
221+
static inline lv_coord_t lv_dpx(lv_coord_t n)
222+
{
223+
return LV_DPX(n);
224+
}
225+
226+
/**
227+
* Scale the given number of pixels (a distance or size) relative to a 160 DPI display
228+
* considering the DPI of the given display.
229+
* It ensures that e.g. `lv_dpx(100)` will have the same physical size regardless to the
230+
* DPI of the display.
231+
* @param obj a display whose dpi should be considered
232+
* @param n the number of pixels to scale
233+
* @return `n x current_dpi/160`
234+
*/
235+
static inline lv_coord_t lv_disp_dpx(const lv_disp_t * disp, lv_coord_t n)
236+
{
237+
return _LV_DPX_CALC(lv_disp_get_dpi(disp), n);
238+
}
239+
240+
#ifdef __cplusplus
241+
} /*extern "C"*/
242+
#endif
243+
244+
#endif /*LV_DISP_H*/

0 commit comments

Comments
 (0)