Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Mozi
rt-thread
提交
e037b768
R
rt-thread
项目概览
Mozi
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
e037b768
编写于
5月 05, 2022
作者:
mysterywolf
提交者:
guo
5月 09, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
prepare to support squareline studio
上级
907ee070
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
124 addition
and
30 deletion
+124
-30
bsp/imxrt/imxrt1060-nxp-evk/applications/lvgl/SConscript
bsp/imxrt/imxrt1060-nxp-evk/applications/lvgl/SConscript
+1
-2
bsp/imxrt/imxrt1060-nxp-evk/applications/lvgl/demo/SConscript
...imxrt/imxrt1060-nxp-evk/applications/lvgl/demo/SConscript
+10
-0
bsp/imxrt/imxrt1060-nxp-evk/applications/lvgl/demo/lv_demo.c
bsp/imxrt/imxrt1060-nxp-evk/applications/lvgl/demo/lv_demo.c
+5
-7
bsp/imxrt/imxrt1060-nxp-evk/applications/lvgl/lv_conf.h
bsp/imxrt/imxrt1060-nxp-evk/applications/lvgl/lv_conf.h
+4
-2
bsp/imxrt/imxrt1060-nxp-evk/applications/lvgl/lv_port_disp.c
bsp/imxrt/imxrt1060-nxp-evk/applications/lvgl/lv_port_disp.c
+3
-13
bsp/imxrt/imxrt1060-nxp-evk/applications/lvgl/squareline/SConscript
...imxrt1060-nxp-evk/applications/lvgl/squareline/SConscript
+15
-0
bsp/imxrt/imxrt1060-nxp-evk/applications/lvgl/squareline/ui/README.md
...xrt1060-nxp-evk/applications/lvgl/squareline/ui/README.md
+2
-0
bsp/imxrt/imxrt1060-nxp-evk/applications/lvgl/squareline/ui/SConscript
...rt1060-nxp-evk/applications/lvgl/squareline/ui/SConscript
+10
-0
bsp/imxrt/imxrt1060-nxp-evk/applications/lvgl/squareline/ui/lv_ui_entry.c
...060-nxp-evk/applications/lvgl/squareline/ui/lv_ui_entry.c
+54
-0
bsp/imxrt/imxrt1060-nxp-evk/board/Kconfig
bsp/imxrt/imxrt1060-nxp-evk/board/Kconfig
+18
-2
bsp/stm32/stm32f469-st-disco/applications/lvgl/lv_demo.c
bsp/stm32/stm32f469-st-disco/applications/lvgl/lv_demo.c
+2
-4
未找到文件。
bsp/imxrt/imxrt1060-nxp-evk/applications/lvgl/SConscript
浏览文件 @
e037b768
...
...
@@ -5,7 +5,6 @@ cwd = GetCurrentDir()
group
=
[]
src
=
Glob
(
'*.c'
)
CPPPATH
=
[
cwd
]
CPPDEFINES
=
[]
list
=
os
.
listdir
(
cwd
)
for
d
in
list
:
...
...
@@ -13,6 +12,6 @@ for d in list:
if
os
.
path
.
isfile
(
os
.
path
.
join
(
path
,
'SConscript'
)):
group
=
group
+
SConscript
(
os
.
path
.
join
(
d
,
'SConscript'
))
group
=
group
+
DefineGroup
(
'LVGL-port'
,
src
,
depend
=
[
'BSP_USING_LVGL'
],
CPPPATH
=
CPPPATH
,
CPPDEFINES
=
CPPDEFINES
)
group
=
group
+
DefineGroup
(
'LVGL-port'
,
src
,
depend
=
[
'BSP_USING_LVGL'
],
CPPPATH
=
CPPPATH
)
Return
(
'group'
)
bsp/imxrt/imxrt1060-nxp-evk/applications/lvgl/demo/SConscript
0 → 100644
浏览文件 @
e037b768
from
building
import
*
cwd
=
GetCurrentDir
()
group
=
[]
src
=
Glob
(
'*.c'
)
CPPPATH
=
[
cwd
]
group
=
group
+
DefineGroup
(
'LVGL-demo'
,
src
,
depend
=
[
'BSP_USING_LVGL'
,
'BSP_USING_LVGL_DEMO'
],
CPPPATH
=
CPPPATH
)
Return
(
'group'
)
bsp/imxrt/imxrt1060-nxp-evk/applications/lvgl/lv_demo.c
→
bsp/imxrt/imxrt1060-nxp-evk/applications/lvgl/
demo/
lv_demo.c
浏览文件 @
e037b768
...
...
@@ -5,7 +5,7 @@
*
* Change Logs:
* Date Author Notes
* 202
1-10-17
Meco Man First version
* 202
2-05-05
Meco Man First version
*/
#include <rtthread.h>
#include <lvgl.h>
...
...
@@ -15,17 +15,17 @@
#include <rtdbg.h>
#ifndef LV_THREAD_STACK_SIZE
#define LV_THREAD_STACK_SIZE 4096
#define LV_THREAD_STACK_SIZE 4096
#endif
#ifndef LV_THREAD_PRIO
#define LV_THREAD_PRIO (RT_THREAD_PRIORITY_MAX * 2 / 8)
#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_entry
(
void
*
parameter
)
static
void
lvgl_
thread_
entry
(
void
*
parameter
)
{
extern
void
lv_demo_music
(
void
);
lv_demo_music
();
...
...
@@ -39,11 +39,9 @@ static void lvgl_entry(void *parameter)
static
int
lvgl_demo_init
(
void
)
{
rt_thread_t
tid
;
rt_thread_init
(
&
lvgl_thread
,
"LVGL"
,
lvgl_entry
,
lvgl_
thread_
entry
,
RT_NULL
,
&
lvgl_thread_stack
[
0
],
sizeof
(
lvgl_thread_stack
),
...
...
bsp/imxrt/imxrt1060-nxp-evk/applications/lvgl/lv_conf.h
浏览文件 @
e037b768
...
...
@@ -11,6 +11,8 @@
#ifndef LV_CONF_H
#define LV_CONF_H
#include <rtconfig.h>
#define LV_USE_PERF_MONITOR 1
#define LV_COLOR_DEPTH 16
...
...
@@ -22,8 +24,8 @@
#define LV_ATTRIBUTE_MEM_ALIGN_SIZE 64
/* music player demo */
#define LV_HOR_RES_MAX
480
#define LV_VER_RES_MAX
272
#define LV_HOR_RES_MAX
LCD_WIDTH
#define LV_VER_RES_MAX
LCD_HEIGHT
#define LV_USE_DEMO_RTT_MUSIC 1
#define LV_DEMO_RTT_MUSIC_AUTO_PLAY 1
#define LV_FONT_MONTSERRAT_12 1
...
...
bsp/imxrt/imxrt1060-nxp-evk/applications/lvgl/lv_port_disp.c
浏览文件 @
e037b768
...
...
@@ -15,9 +15,9 @@
#include <drv_log.h>
#if LV_USE_NXP_SOC
#include "fsl_gpio.h"
#include "fsl_elcdif.h"
#include "fsl_cache.h"
#include "fsl_gpio.h"
#include "fsl_elcdif.h"
#include "fsl_cache.h"
#endif
/*A static or global variable to store the buffers*/
...
...
@@ -26,15 +26,7 @@ static lv_disp_draw_buf_t disp_buf;
static
lv_disp_drv_t
disp_drv
;
/*Descriptor of a display driver*/
/* Macros for panel. */
#define LCD_WIDTH LV_HOR_RES_MAX
#define LCD_HEIGHT LV_VER_RES_MAX
#define LCD_FB_BYTE_PER_PIXEL 2
#define LCD_HSW 41
#define LCD_HFP 4
#define LCD_HBP 8
#define LCD_VSW 10
#define LCD_VFP 4
#define LCD_VBP 2
#define LCD_POL_FLAGS \
(kELCDIF_DataEnableActiveHigh | kELCDIF_VsyncActiveLow | kELCDIF_HsyncActiveLow | kELCDIF_DriveDataOnRisingClkEdge)
#define LCD_LCDIF_DATA_BUS kELCDIF_DataBus16Bit
...
...
@@ -203,8 +195,6 @@ void LCDIF_IRQHandler(void)
void
lv_port_disp_init
(
void
)
{
static
lv_disp_draw_buf_t
disp_buf
;
lv_disp_draw_buf_init
(
&
disp_buf
,
s_frameBuffer
[
0
],
s_frameBuffer
[
1
],
LCD_WIDTH
*
LCD_HEIGHT
);
/*-------------------------
...
...
bsp/imxrt/imxrt1060-nxp-evk/applications/lvgl/squareline/SConscript
0 → 100644
浏览文件 @
e037b768
# RT-Thread building script for bridge
import
os
from
building
import
*
cwd
=
GetCurrentDir
()
objs
=
[]
list
=
os
.
listdir
(
cwd
)
for
d
in
list
:
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'
)
bsp/imxrt/imxrt1060-nxp-evk/applications/lvgl/squareline/ui/README.md
0 → 100644
浏览文件 @
e037b768
This folder is for LVGL Squareline Studio
bsp/imxrt/imxrt1060-nxp-evk/applications/lvgl/squareline/ui/SConscript
0 → 100644
浏览文件 @
e037b768
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
0 → 100644
浏览文件 @
e037b768
/*
* 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
*/
#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
#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
);
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
浏览文件 @
e037b768
...
...
@@ -30,7 +30,7 @@ menu "Onboard Peripheral Drivers"
config LCD_WIDTH
int "width"
default 480
config LCD_HEIGHT
int "height"
default 272
...
...
@@ -38,24 +38,31 @@ menu "Onboard Peripheral Drivers"
config LCD_HFP
int "HFP"
default 4
config LCD_VFP
int "VFP"
default 4
config LCD_HBP
int "HBP"
default 8
config LCD_VBP
int "VBP"
default 2
config LCD_HSW
int "HSW"
default 40
config LCD_VSW
int "VSW"
default 10
config LCD_BL_PIN
int "Backlight ctrl pin"
default 63
config LCD_RST_PIN
int "Reset pin"
default 2
...
...
@@ -67,9 +74,18 @@ menu "Onboard Peripheral Drivers"
select BSP_USING_CACHE
select BSP_USING_LCD
select PKG_USING_LVGL
select PKG_USING_LV_MUSIC_DEMO
default n
if BSP_USING_LVGL
config BSP_USING_LVGL_DEMO
bool "Enable LVGL demo"
select PKG_USING_LV_MUSIC_DEMO
default n
config BSP_USING_LVGL_SQUARELINE
bool "Support LVGL SuqareLine Studio"
default n
endif
endmenu
menu "On-chip Peripheral Drivers"
...
...
bsp/stm32/stm32f469-st-disco/applications/lvgl/lv_demo.c
浏览文件 @
e037b768
...
...
@@ -15,11 +15,11 @@
#include <rtdbg.h>
#ifndef LV_THREAD_STACK_SIZE
#define LV_THREAD_STACK_SIZE 4096
#define LV_THREAD_STACK_SIZE 4096
#endif
#ifndef LV_THREAD_PRIO
#define LV_THREAD_PRIO (RT_THREAD_PRIORITY_MAX * 2 / 8)
#define LV_THREAD_PRIO (RT_THREAD_PRIORITY_MAX * 2 / 8)
#endif
static
struct
rt_thread
lvgl_thread
;
...
...
@@ -39,8 +39,6 @@ static void lvgl_entry(void *parameter)
static
int
lvgl_demo_init
(
void
)
{
rt_thread_t
tid
;
rt_thread_init
(
&
lvgl_thread
,
"LVGL"
,
lvgl_entry
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录