Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Xiaobo07
rt-thread
提交
a0bfbe8d
R
rt-thread
项目概览
Xiaobo07
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
2
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a0bfbe8d
编写于
5月 13, 2022
作者:
mysterywolf
提交者:
guo
5月 13, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[imxrt1060]support NXP GUiGuider
上级
a5ba85f4
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
156 addition
and
61 deletion
+156
-61
bsp/imxrt/imxrt1060-nxp-evk/applications/lvgl/guiguider/README.md
...t/imxrt1060-nxp-evk/applications/lvgl/guiguider/README.md
+2
-0
bsp/imxrt/imxrt1060-nxp-evk/applications/lvgl/guiguider/SConscript
.../imxrt1060-nxp-evk/applications/lvgl/guiguider/SConscript
+17
-0
bsp/imxrt/imxrt1060-nxp-evk/applications/lvgl/guiguider/legacy/README.md
...1060-nxp-evk/applications/lvgl/guiguider/legacy/README.md
+2
-0
bsp/imxrt/imxrt1060-nxp-evk/applications/lvgl/guiguider/legacy/lv_init_thread.c
...p-evk/applications/lvgl/guiguider/legacy/lv_init_thread.c
+52
-0
bsp/imxrt/imxrt1060-nxp-evk/applications/lvgl/guiguider/legacy/lv_port_disp.h
...nxp-evk/applications/lvgl/guiguider/legacy/lv_port_disp.h
+24
-0
bsp/imxrt/imxrt1060-nxp-evk/applications/lvgl/guiguider/legacy/lv_port_indev.h
...xp-evk/applications/lvgl/guiguider/legacy/lv_port_indev.h
+24
-0
bsp/imxrt/imxrt1060-nxp-evk/applications/lvgl/guiguider/ui/lv_ui_entry.c
...1060-nxp-evk/applications/lvgl/guiguider/ui/lv_ui_entry.c
+20
-0
bsp/imxrt/imxrt1060-nxp-evk/applications/lvgl/squareline/README.md
.../imxrt1060-nxp-evk/applications/lvgl/squareline/README.md
+0
-0
bsp/imxrt/imxrt1060-nxp-evk/applications/lvgl/squareline/SConscript
...imxrt1060-nxp-evk/applications/lvgl/squareline/SConscript
+8
-10
bsp/imxrt/imxrt1060-nxp-evk/applications/lvgl/squareline/ui/SConscript
...rt1060-nxp-evk/applications/lvgl/squareline/ui/SConscript
+0
-10
bsp/imxrt/imxrt1060-nxp-evk/applications/lvgl/squareline/ui/lv_ui_entry.c
...060-nxp-evk/applications/lvgl/squareline/ui/lv_ui_entry.c
+2
-41
bsp/imxrt/imxrt1060-nxp-evk/board/Kconfig
bsp/imxrt/imxrt1060-nxp-evk/board/Kconfig
+5
-0
未找到文件。
bsp/imxrt/imxrt1060-nxp-evk/applications/lvgl/guiguider/README.md
0 → 100644
浏览文件 @
a0bfbe8d
This folder is for NXP GUI Guider
bsp/imxrt/imxrt1060-nxp-evk/applications/lvgl/guiguider/SConscript
0 → 100644
浏览文件 @
a0bfbe8d
from
building
import
*
cwd
=
GetCurrentDir
()
group
=
[]
src
=
[]
CPPPATH
=
[]
src
+=
Glob
(
cwd
+
'/ui/*.c'
)
CPPPATH
+=
[
cwd
+
'/ui'
]
if
GetConfigValue
(
'PKG_LVGL_VER_NUM'
)
==
'0x08020'
:
src
+=
Glob
(
cwd
+
'/legacy/*.c'
)
CPPPATH
+=
[
cwd
+
'/legacy'
]
group
=
group
+
DefineGroup
(
'LVGL-GUIGuider'
,
src
,
depend
=
[
'BSP_USING_LVGL'
,
'BSP_USING_NXP_GUIGUIDER'
],
CPPPATH
=
CPPPATH
)
Return
(
'group'
)
bsp/imxrt/imxrt1060-nxp-evk/applications/lvgl/guiguider/legacy/README.md
0 → 100644
浏览文件 @
a0bfbe8d
This folder is to let LVGL 8.2.0 can run on RT-Thread 4.1.1 or even higher version.
bsp/imxrt/imxrt1060-nxp-evk/applications/lvgl/guiguider/legacy/lv_init_thread.c
0 → 100644
浏览文件 @
a0bfbe8d
/*
* Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2021-10-17 Meco Man First version
* 2022-05-13 Meco Man support LVGL8.2.0 legacy version
*/
#include <rtthread.h>
#include <lvgl.h>
#ifndef PKG_LVGL_THREAD_STACK_SIZE
#define PKG_LVGL_THREAD_STACK_SIZE 4096
#endif
#ifndef PKG_LVGL_THREAD_PRIO
#define PKG_LVGL_THREAD_PRIO (RT_THREAD_PRIORITY_MAX * 2 / 3)
#endif
extern
void
lv_user_gui_init
(
void
);
static
struct
rt_thread
lvgl_thread
;
static
rt_uint8_t
lvgl_thread_stack
[
PKG_LVGL_THREAD_STACK_SIZE
];
static
void
lvgl_thread_entry
(
void
*
parameter
)
{
lv_user_gui_init
();
while
(
1
)
{
lv_task_handler
();
rt_thread_mdelay
(
5
);
}
}
static
int
lvgl_thread_init
(
void
)
{
rt_thread_init
(
&
lvgl_thread
,
"LVGL"
,
lvgl_thread_entry
,
RT_NULL
,
&
lvgl_thread_stack
[
0
],
sizeof
(
lvgl_thread_stack
),
PKG_LVGL_THREAD_PRIO
,
10
);
rt_thread_startup
(
&
lvgl_thread
);
return
0
;
}
INIT_ENV_EXPORT
(
lvgl_thread_init
);
bsp/imxrt/imxrt1060-nxp-evk/applications/lvgl/guiguider/legacy/lv_port_disp.h
0 → 100644
浏览文件 @
a0bfbe8d
/*
* Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2021-10-18 Meco Man The first version
* 2022-05-13 Meco Man support LVGL8.2.0 legacy version
*/
#ifndef LV_PORT_DISP_H
#define LV_PORT_DISP_H
#ifdef __cplusplus
extern
"C"
{
#endif
void
lv_port_disp_init
(
void
);
#ifdef __cplusplus
}
/*extern "C"*/
#endif
#endif
bsp/imxrt/imxrt1060-nxp-evk/applications/lvgl/guiguider/legacy/lv_port_indev.h
0 → 100644
浏览文件 @
a0bfbe8d
/*
* Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2021-10-18 Meco Man The first version
* 2022-05-13 Meco Man support LVGL8.2.0 legacy version
*/
#ifndef LV_PORT_INDEV_H
#define LV_PORT_INDEV_H
#ifdef __cplusplus
extern
"C"
{
#endif
void
lv_port_indev_init
(
void
);
#ifdef __cplusplus
}
/*extern "C"*/
#endif
#endif
bsp/imxrt/imxrt1060-nxp-evk/applications/lvgl/guiguider/ui/lv_ui_entry.c
0 → 100644
浏览文件 @
a0bfbe8d
/*
* 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
*/
#include <rtconfig.h>
#include <lvgl.h>
void
lv_user_gui_init
(
void
)
{
#ifdef PKG_USING_GUI_GUIDER_DEMO
extern
void
gui_guider_setup
(
void
);
gui_guider_setup
();
#endif
}
bsp/imxrt/imxrt1060-nxp-evk/applications/lvgl/squareline/
ui/
README.md
→
bsp/imxrt/imxrt1060-nxp-evk/applications/lvgl/squareline/README.md
浏览文件 @
a0bfbe8d
文件已移动
bsp/imxrt/imxrt1060-nxp-evk/applications/lvgl/squareline/SConscript
浏览文件 @
a0bfbe8d
# RT-Thread building script for bridge
import
os
from
building
import
*
from
building
import
*
cwd
=
GetCurrentDir
()
cwd
=
GetCurrentDir
()
objs
=
[]
group
=
[]
list
=
os
.
listdir
(
cwd
)
src
=
[]
CPPPATH
=
[]
src
+=
Glob
(
cwd
+
'/ui/*.c'
)
CPPPATH
+=
[
cwd
+
'/ui'
]
for
d
in
list
:
group
=
group
+
DefineGroup
(
'LVGL-SquareLine'
,
src
,
depend
=
[
'BSP_USING_LVGL'
,
'BSP_USING_LVGL_SQUARELINE'
],
CPPPATH
=
CPPPATH
)
path
=
os
.
path
.
join
(
cwd
,
d
)
if
os
.
path
.
isfile
(
os
.
path
.
join
(
path
,
'SConscript'
)):
objs
=
objs
+
SConscript
(
os
.
path
.
join
(
d
,
'SConscript'
))
Return
(
'
objs
'
)
Return
(
'
group
'
)
bsp/imxrt/imxrt1060-nxp-evk/applications/lvgl/squareline/ui/SConscript
已删除
100644 → 0
浏览文件 @
a5ba85f4
from
building
import
*
cwd
=
GetCurrentDir
()
group
=
[]
src
=
Glob
(
'*.c'
)
CPPPATH
=
[
cwd
]
group
=
group
+
DefineGroup
(
'LVGL-SquareLine'
,
src
,
depend
=
[
'BSP_USING_LVGL'
,
'BSP_USING_LVGL_SQUARELINE'
],
CPPPATH
=
CPPPATH
)
Return
(
'group'
)
bsp/imxrt/imxrt1060-nxp-evk/applications/lvgl/squareline/ui/lv_ui_entry.c
浏览文件 @
a0bfbe8d
...
@@ -5,50 +5,11 @@
...
@@ -5,50 +5,11 @@
*
*
* Change Logs:
* Change Logs:
* Date Author Notes
* Date Author Notes
* 202
1-10-17
Meco Man First version
* 202
2-05-13
Meco Man First version
*/
*/
#include <rtthread.h>
#include <lvgl.h>
#include <lv_port_indev.h>
#define DBG_TAG "LVGL.demo"
#define DBG_LVL DBG_INFO
#include <rtdbg.h>
#ifndef LV_THREAD_STACK_SIZE
void
lv_user_gui_init
(
void
)
#define LV_THREAD_STACK_SIZE 4096
#endif
#ifndef LV_THREAD_PRIO
#define LV_THREAD_PRIO (RT_THREAD_PRIORITY_MAX * 2 / 8)
#endif
static
struct
rt_thread
lvgl_thread
;
static
rt_uint8_t
lvgl_thread_stack
[
LV_THREAD_STACK_SIZE
];
static
void
lvgl_thread_entry
(
void
*
parameter
)
{
{
extern
void
ui_init
(
void
);
extern
void
ui_init
(
void
);
ui_init
();
ui_init
();
while
(
1
)
{
lv_task_handler
();
rt_thread_mdelay
(
5
);
}
}
static
int
lvgl_demo_init
(
void
)
{
rt_thread_init
(
&
lvgl_thread
,
"LVGL"
,
lvgl_thread_entry
,
RT_NULL
,
&
lvgl_thread_stack
[
0
],
sizeof
(
lvgl_thread_stack
),
LV_THREAD_PRIO
,
10
);
rt_thread_startup
(
&
lvgl_thread
);
return
0
;
}
}
INIT_APP_EXPORT
(
lvgl_demo_init
);
bsp/imxrt/imxrt1060-nxp-evk/board/Kconfig
浏览文件 @
a0bfbe8d
...
@@ -85,6 +85,11 @@ menu "Onboard Peripheral Drivers"
...
@@ -85,6 +85,11 @@ menu "Onboard Peripheral Drivers"
config BSP_USING_LVGL_SQUARELINE
config BSP_USING_LVGL_SQUARELINE
bool "Support LVGL SuqareLine Studio"
bool "Support LVGL SuqareLine Studio"
default n
default n
config BSP_USING_NXP_GUIGUIDER
bool "Support NXP GUI Guider"
select PKG_USING_GUI_GUIDER_DEMO
default n
endif
endif
endmenu
endmenu
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录