summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRbb666 <[email protected]>2022-01-13 09:38:16 +0800
committerRbb666 <[email protected]>2022-01-13 09:38:20 +0800
commit6953914ff57a070fe1284d74a87973acec56b533 (patch)
tree8b21a874ec353622b6da996d9c89f44cbd627768
parent814c15cdbc292e69a2d0ca2b49a0b5a0a5aca189 (diff)
规范格式
-rw-r--r--bsp/raspberry-pico/applications/SConscript2
-rw-r--r--bsp/raspberry-pico/applications/lvgl/SConscript5
-rw-r--r--bsp/raspberry-pico/applications/lvgl/lv_port_disp.c2
3 files changed, 5 insertions, 4 deletions
diff --git a/bsp/raspberry-pico/applications/SConscript b/bsp/raspberry-pico/applications/SConscript
index d0723dfea1..a0508c4020 100644
--- a/bsp/raspberry-pico/applications/SConscript
+++ b/bsp/raspberry-pico/applications/SConscript
@@ -14,4 +14,4 @@ for item in list:
if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
group = group + SConscript(os.path.join(item, 'SConscript'))
-Return('group') \ No newline at end of file
+Return('group')
diff --git a/bsp/raspberry-pico/applications/lvgl/SConscript b/bsp/raspberry-pico/applications/lvgl/SConscript
index 0292c8d9d0..bbeed6d911 100644
--- a/bsp/raspberry-pico/applications/lvgl/SConscript
+++ b/bsp/raspberry-pico/applications/lvgl/SConscript
@@ -6,11 +6,12 @@ group = []
src = Glob('*.c')
CPPPATH = [cwd]
+group = DefineGroup('LVGL-port', src, depend = ['BSP_USING_LVGL'], CPPPATH = CPPPATH)
+
list = os.listdir(cwd)
for d in list:
path = os.path.join(cwd, d)
if os.path.isfile(os.path.join(path, 'SConscript')):
group = group + SConscript(os.path.join(d, 'SConscript'))
-
-group += DefineGroup('LVGL-port', src, depend = ['BSP_USING_LVGL'], CPPPATH = CPPPATH)
+
Return('group')
diff --git a/bsp/raspberry-pico/applications/lvgl/lv_port_disp.c b/bsp/raspberry-pico/applications/lvgl/lv_port_disp.c
index 48a922cc9e..636ff7a008 100644
--- a/bsp/raspberry-pico/applications/lvgl/lv_port_disp.c
+++ b/bsp/raspberry-pico/applications/lvgl/lv_port_disp.c
@@ -36,7 +36,7 @@ void lv_port_disp_init(void)
LCD_Init(HORIZONTAL);
/*Initialize `disp_buf` with the buffer(s).*/
- lv_disp_draw_buf_init(&disp_buf, lv_disp_buf1, 0x00, DISP_BUF_SIZE);
+ lv_disp_draw_buf_init(&disp_buf, lv_disp_buf1, RT_NULL, DISP_BUF_SIZE);
lv_disp_drv_init(&disp_drv); /*Basic initialization*/