mirror of
https://github.com/lvgl/lvgl.git
synced 2025-02-04 07:13:00 +08:00
chore(rt-thread) backport fixes from v9 (#3604)
https://github.com/lvgl/lvgl/pull/3566 https://github.com/lvgl/lvgl/pull/3467
This commit is contained in:
parent
5156ee058d
commit
660464c973
@ -31,7 +31,7 @@ extern void lv_port_indev_init(void);
|
|||||||
extern void lv_user_gui_init(void);
|
extern void lv_user_gui_init(void);
|
||||||
|
|
||||||
static struct rt_thread lvgl_thread;
|
static struct rt_thread lvgl_thread;
|
||||||
static rt_uint8_t lvgl_thread_stack[PKG_LVGL_THREAD_STACK_SIZE];
|
static ALIGN(8) rt_uint8_t lvgl_thread_stack[PKG_LVGL_THREAD_STACK_SIZE];
|
||||||
|
|
||||||
#if LV_USE_LOG
|
#if LV_USE_LOG
|
||||||
static void lv_rt_log(const char *buf)
|
static void lv_rt_log(const char *buf)
|
||||||
|
4
env_support/rt-thread/squareline/README.md
Normal file
4
env_support/rt-thread/squareline/README.md
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
This folder is for LVGL SquareLine Studio
|
||||||
|
|
||||||
|
SquareLine Studio can automatically put the generated C files into `ui` folder, so that rt-thread will automatically detect them; or, as a user, you can move the generated C files into `ui` folder manually.
|
||||||
|
|
13
env_support/rt-thread/squareline/SConscript
Normal file
13
env_support/rt-thread/squareline/SConscript
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
from building import *
|
||||||
|
|
||||||
|
cwd = GetCurrentDir()
|
||||||
|
group = []
|
||||||
|
src = []
|
||||||
|
CPPPATH =[]
|
||||||
|
|
||||||
|
src += Glob(cwd + '/ui/*.c')
|
||||||
|
CPPPATH += [cwd+'/ui']
|
||||||
|
|
||||||
|
group = group + DefineGroup('LVGL-SquareLine', src, depend = ['PKG_USING_LVGL_SQUARELINE'], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
|
Return('group')
|
19
env_support/rt-thread/squareline/ui/lv_ui_entry.c
Normal file
19
env_support/rt-thread/squareline/ui/lv_ui_entry.c
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2006-2022, RT-Thread Development Team
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*
|
||||||
|
* Change Logs:
|
||||||
|
* Date Author Notes
|
||||||
|
* 2022-05-13 Meco Man First version
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifdef __RTTHREAD__
|
||||||
|
|
||||||
|
void lv_user_gui_init(void)
|
||||||
|
{
|
||||||
|
extern void ui_init(void);
|
||||||
|
ui_init();
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif /* __RTTHREAD__ */
|
Loading…
x
Reference in New Issue
Block a user