Migrate lv porting folder.

This commit is contained in:
Wayne Lin 2021-12-21 19:06:02 +08:00 committed by Bernard Xiong
parent 5031a5c757
commit c18dae2c2e
17 changed files with 14 additions and 50 deletions

View File

@ -177,8 +177,8 @@ static rt_err_t ili9341_lcd_init(rt_device_t dev)
#if defined(NU_PKG_ILI9341_WITH_OFFSCREEN_FRAMEBUFFER) #if defined(NU_PKG_ILI9341_WITH_OFFSCREEN_FRAMEBUFFER)
static void ili9341_fillrect(uint16_t *pixels, struct rt_device_rect_info *pRectInfo) static void ili9341_fillrect(uint16_t *pixels, struct rt_device_rect_info *pRectInfo)
{ {
ili9341_set_column(pRectInfo->x, pRectInfo->x + pRectInfo->width); ili9341_set_column(pRectInfo->x, pRectInfo->x + pRectInfo->width - 1);
ili9341_set_page(pRectInfo->y, pRectInfo->y + pRectInfo->height); ili9341_set_page(pRectInfo->y, pRectInfo->y + pRectInfo->height - 1);
ili9341_send_cmd(0x2c); ili9341_send_cmd(0x2c);
ili9341_send_pixels(pixels, pRectInfo->height * pRectInfo->width * 2); ili9341_send_pixels(pixels, pRectInfo->height * pRectInfo->width * 2);

View File

@ -1,17 +1,10 @@
Import('RTT_ROOT')
from building import * from building import *
import os cwd = GetCurrentDir()
src = Glob('*.c')
CPPPATH = [cwd]
objs = [] group = DefineGroup('LVGL-port', src, depend = ['PKG_USING_LVGL'], CPPPATH = CPPPATH)
if GetDepend('PKG_USING_LVGL'): Return('group')
cwd = GetCurrentDir()
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')

View File

@ -11,7 +11,6 @@
#ifndef LV_CONF_H #ifndef LV_CONF_H
#define LV_CONF_H #define LV_CONF_H
//#define LV_USE_EXTERNAL_RENDERER 1
#define LV_USE_PERF_MONITOR 1 #define LV_USE_PERF_MONITOR 1
#define LV_COLOR_DEPTH 16 #define LV_COLOR_DEPTH 16

View File

@ -1,10 +0,0 @@
from building import *
cwd = GetCurrentDir()
src = Glob('*.c')
CPPPATH = [cwd]
group = DefineGroup('LVGL-port', src, depend = [''], CPPPATH = CPPPATH)
Return('group')

View File

@ -1,17 +1,10 @@
Import('RTT_ROOT')
from building import * from building import *
import os cwd = GetCurrentDir()
src = Glob('*.c')
CPPPATH = [cwd]
objs = [] group = DefineGroup('LVGL-port', src, depend = ['PKG_USING_LVGL'], CPPPATH = CPPPATH)
if GetDepend('PKG_USING_LVGL'): Return('group')
cwd = GetCurrentDir()
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')

View File

@ -11,10 +11,9 @@
#ifndef LV_CONF_H #ifndef LV_CONF_H
#define LV_CONF_H #define LV_CONF_H
//#define LV_USE_EXTERNAL_RENDERER 1
#define LV_USE_GPU_N9H30_GE2D 1 #define LV_USE_GPU_N9H30_GE2D 1
//#define LV_USE_PERF_MONITOR 1 #define LV_USE_PERF_MONITOR 1
#define LV_COLOR_DEPTH 32 #define LV_COLOR_DEPTH 32
#define LV_HOR_RES_MAX (800) #define LV_HOR_RES_MAX (800)

View File

@ -5,7 +5,7 @@
* *
* Change Logs: * Change Logs:
* Date Author Notes * Date Author Notes
* 2021-12-17 Wayne The first version * 2021-12-17 Wayne The first version
*/ */
#include <lvgl.h> #include <lvgl.h>

View File

@ -1,10 +0,0 @@
from building import *
cwd = GetCurrentDir()
src = Glob('*.c')
CPPPATH = [cwd]
group = DefineGroup('LVGL-port', src, depend = [''], CPPPATH = CPPPATH)
Return('group')