Skip to content

Commit c18dae2

Browse files
ttnwosayBernardXiong
authored andcommitted
Migrate lv porting folder.
1 parent 5031a5c commit c18dae2

File tree

17 files changed

+14
-50
lines changed

17 files changed

+14
-50
lines changed

bsp/nuvoton/libraries/nu_packages/ILI9341/lcd_ili9341.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ static rt_err_t ili9341_lcd_init(rt_device_t dev)
177177
#if defined(NU_PKG_ILI9341_WITH_OFFSCREEN_FRAMEBUFFER)
178178
static void ili9341_fillrect(uint16_t *pixels, struct rt_device_rect_info *pRectInfo)
179179
{
180-
ili9341_set_column(pRectInfo->x, pRectInfo->x + pRectInfo->width);
181-
ili9341_set_page(pRectInfo->y, pRectInfo->y + pRectInfo->height);
180+
ili9341_set_column(pRectInfo->x, pRectInfo->x + pRectInfo->width - 1);
181+
ili9341_set_page(pRectInfo->y, pRectInfo->y + pRectInfo->height - 1);
182182
ili9341_send_cmd(0x2c);
183183

184184
ili9341_send_pixels(pixels, pRectInfo->height * pRectInfo->width * 2);
Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
1-
Import('RTT_ROOT')
21
from building import *
32

4-
import os
3+
cwd = GetCurrentDir()
4+
src = Glob('*.c')
5+
CPPPATH = [cwd]
56

6-
objs = []
7+
group = DefineGroup('LVGL-port', src, depend = ['PKG_USING_LVGL'], CPPPATH = CPPPATH)
78

8-
if GetDepend('PKG_USING_LVGL'):
9-
cwd = GetCurrentDir()
10-
list = os.listdir(cwd)
11-
for d in list:
12-
path = os.path.join(cwd, d)
13-
if os.path.isfile(os.path.join(path, 'SConscript')):
14-
objs = objs + SConscript(os.path.join(d, 'SConscript'))
15-
16-
Return('objs')
9+
Return('group')
1710

bsp/nuvoton/nk-980iot/applications/lvgl/port/lv_conf.h renamed to bsp/nuvoton/nk-980iot/applications/lvgl/lv_conf.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#ifndef LV_CONF_H
1212
#define LV_CONF_H
1313

14-
//#define LV_USE_EXTERNAL_RENDERER 1
1514

1615
#define LV_USE_PERF_MONITOR 1
1716
#define LV_COLOR_DEPTH 16
File renamed without changes.

bsp/nuvoton/nk-980iot/applications/lvgl/port/lv_port_disp.c renamed to bsp/nuvoton/nk-980iot/applications/lvgl/lv_port_disp.c

File renamed without changes.

bsp/nuvoton/nk-980iot/applications/lvgl/port/lv_port_disp.h renamed to bsp/nuvoton/nk-980iot/applications/lvgl/lv_port_disp.h

File renamed without changes.

bsp/nuvoton/nk-980iot/applications/lvgl/port/lv_port_indev.c renamed to bsp/nuvoton/nk-980iot/applications/lvgl/lv_port_indev.c

File renamed without changes.

bsp/nuvoton/nk-980iot/applications/lvgl/port/lv_port_indev.h renamed to bsp/nuvoton/nk-980iot/applications/lvgl/lv_port_indev.h

File renamed without changes.

bsp/nuvoton/nk-980iot/applications/lvgl/port/SConscript

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
1-
Import('RTT_ROOT')
21
from building import *
32

4-
import os
3+
cwd = GetCurrentDir()
4+
src = Glob('*.c')
5+
CPPPATH = [cwd]
56

6-
objs = []
7+
group = DefineGroup('LVGL-port', src, depend = ['PKG_USING_LVGL'], CPPPATH = CPPPATH)
78

8-
if GetDepend('PKG_USING_LVGL'):
9-
cwd = GetCurrentDir()
10-
list = os.listdir(cwd)
11-
for d in list:
12-
path = os.path.join(cwd, d)
13-
if os.path.isfile(os.path.join(path, 'SConscript')):
14-
objs = objs + SConscript(os.path.join(d, 'SConscript'))
15-
16-
Return('objs')
9+
Return('group')
1710

0 commit comments

Comments
 (0)