提交 c18dae2c 编写于 作者: W Wayne Lin 提交者: Bernard Xiong

Migrate lv porting folder.

上级 5031a5c7
......@@ -177,8 +177,8 @@ static rt_err_t ili9341_lcd_init(rt_device_t dev)
#if defined(NU_PKG_ILI9341_WITH_OFFSCREEN_FRAMEBUFFER)
static void ili9341_fillrect(uint16_t *pixels, struct rt_device_rect_info *pRectInfo)
{
ili9341_set_column(pRectInfo->x, pRectInfo->x + pRectInfo->width);
ili9341_set_page(pRectInfo->y, pRectInfo->y + pRectInfo->height);
ili9341_set_column(pRectInfo->x, pRectInfo->x + pRectInfo->width - 1);
ili9341_set_page(pRectInfo->y, pRectInfo->y + pRectInfo->height - 1);
ili9341_send_cmd(0x2c);
ili9341_send_pixels(pixels, pRectInfo->height * pRectInfo->width * 2);
......
Import('RTT_ROOT')
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'):
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')
Return('group')
......@@ -11,7 +11,6 @@
#ifndef LV_CONF_H
#define LV_CONF_H
//#define LV_USE_EXTERNAL_RENDERER 1
#define LV_USE_PERF_MONITOR 1
#define LV_COLOR_DEPTH 16
......
from building import *
cwd = GetCurrentDir()
src = Glob('*.c')
CPPPATH = [cwd]
group = DefineGroup('LVGL-port', src, depend = [''], CPPPATH = CPPPATH)
Return('group')
Import('RTT_ROOT')
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'):
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')
Return('group')
......@@ -11,10 +11,9 @@
#ifndef LV_CONF_H
#define LV_CONF_H
//#define LV_USE_EXTERNAL_RENDERER 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_HOR_RES_MAX (800)
......
......@@ -5,7 +5,7 @@
*
* Change Logs:
* Date Author Notes
* 2021-12-17 Wayne The first version
* 2021-12-17 Wayne The first version
*/
#include <lvgl.h>
......
from building import *
cwd = GetCurrentDir()
src = Glob('*.c')
CPPPATH = [cwd]
group = DefineGroup('LVGL-port', src, depend = [''], CPPPATH = CPPPATH)
Return('group')
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册