Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
wwsmg1
rt-thread
提交
77dc5853
R
rt-thread
项目概览
wwsmg1
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
1
Star
1
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,发现更多精彩内容 >>
提交
77dc5853
编写于
12月 06, 2021
作者:
mysterywolf
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[stm32][f469]update lvgl demo
上级
1135619e
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
14 addition
and
13 deletion
+14
-13
bsp/stm32/stm32f469-st-disco/board/ports/lvgl/lv_demo.c
bsp/stm32/stm32f469-st-disco/board/ports/lvgl/lv_demo.c
+1
-1
bsp/stm32/stm32f469-st-disco/board/ports/lvgl/lv_port_disp.c
bsp/stm32/stm32f469-st-disco/board/ports/lvgl/lv_port_disp.c
+11
-10
bsp/stm32/stm32f469-st-disco/board/ports/lvgl/lv_port_indev.c
...stm32/stm32f469-st-disco/board/ports/lvgl/lv_port_indev.c
+1
-1
bsp/stm32/stm32l475-atk-pandora/board/ports/lvgl/lv_demo.c
bsp/stm32/stm32l475-atk-pandora/board/ports/lvgl/lv_demo.c
+1
-1
未找到文件。
bsp/stm32/stm32f469-st-disco/board/ports/lvgl/lv_demo.c
浏览文件 @
77dc5853
...
...
@@ -10,7 +10,7 @@
#include <rtthread.h>
#include <lvgl.h>
#include <lv_port_indev.h>
#define DBG_TAG "LVGL"
#define DBG_TAG "LVGL
.demo
"
#define DBG_LVL DBG_INFO
#include <rtdbg.h>
...
...
bsp/stm32/stm32f469-st-disco/board/ports/lvgl/lv_port_disp.c
浏览文件 @
77dc5853
...
...
@@ -11,13 +11,13 @@
#include <lcd_port.h>
//#define DRV_DEBUG
#define LOG_TAG "
lvgl
.disp"
#define LOG_TAG "
LVGL.port
.disp"
#include <drv_log.h>
/*A static or global variable to store the buffers*/
static
lv_disp_draw_buf_t
disp_buf
;
rt_device_t
lcd_device
=
0
;
static
rt_device_t
lcd_device
=
RT_NULL
;
static
struct
rt_device_graphic_info
info
;
static
lv_disp_drv_t
disp_drv
;
/*Descriptor of a display driver*/
...
...
@@ -41,7 +41,7 @@ static void DMA_TransferComplete(DMA_HandleTypeDef *han)
if
(
y_fill_act
>
y2_fill
)
{
lv_disp_flush_ready
(
&
disp_drv
);
lv_disp_flush_ready
(
&
disp_drv
);
}
else
{
...
...
@@ -51,16 +51,16 @@ static void DMA_TransferComplete(DMA_HandleTypeDef *han)
(
uint32_t
)
&
((
uint32_t
*
)
info
.
framebuffer
)[
y_fill_act
*
info
.
width
+
x1_flush
],
(
x2_flush
-
x1_flush
+
1
))
!=
HAL_OK
)
{
LOG_E
(
"
lvgl dma start
error"
);
while
(
1
);
LOG_E
(
"
HAL_DMA_Start_IT
error"
);
RT_ASSERT
(
0
);
}
}
}
static
void
DMA_TransferError
(
DMA_HandleTypeDef
*
han
)
{
LOG_E
(
"
dma transfer e
rror"
);
while
(
1
);
LOG_E
(
"
DMA_TransferE
rror"
);
RT_ASSERT
(
0
);
}
void
DMA_STREAM_IRQHANDLER
(
void
)
...
...
@@ -95,7 +95,8 @@ static void lvgl_dma_config(void)
if
(
HAL_DMA_Init
(
&
DmaHandle
)
!=
HAL_OK
)
{
while
(
1
);
LOG_E
(
"HAL_DMA_Init error"
);
RT_ASSERT
(
0
);
}
HAL_DMA_RegisterCallback
(
&
DmaHandle
,
HAL_DMA_XFER_CPLT_CB_ID
,
DMA_TransferComplete
);
...
...
@@ -130,8 +131,8 @@ static void lcd_fb_flush(lv_disp_drv_t *disp_drv, const lv_area_t *area, lv_colo
(
uint32_t
)
&
((
uint32_t
*
)
info
.
framebuffer
)[
y_fill_act
*
info
.
width
+
x1_flush
],
(
x2_flush
-
x1_flush
+
1
))
!=
HAL_OK
)
{
LOG_E
(
"
dma start it
error"
);
while
(
1
);
LOG_E
(
"
HAL_DMA_Start_IT
error"
);
RT_ASSERT
(
0
);
}
}
...
...
bsp/stm32/stm32f469-st-disco/board/ports/lvgl/lv_port_indev.c
浏览文件 @
77dc5853
...
...
@@ -37,7 +37,7 @@ void lv_port_indev_init(void)
{
static
lv_indev_drv_t
indev_drv
;
lv_indev_drv_init
(
&
indev_drv
);
/*Basic initialization*/
lv_indev_drv_init
(
&
indev_drv
);
/*Basic initialization*/
indev_drv
.
type
=
LV_INDEV_TYPE_POINTER
;
indev_drv
.
read_cb
=
input_read
;
...
...
bsp/stm32/stm32l475-atk-pandora/board/ports/lvgl/lv_demo.c
浏览文件 @
77dc5853
...
...
@@ -11,7 +11,7 @@
#include <lvgl.h>
#include <lv_port_indev.h>
#include <lv_demo_calendar.h>
#define DBG_TAG "LVGL"
#define DBG_TAG "LVGL
.demo
"
#define DBG_LVL DBG_INFO
#include <rtdbg.h>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录