Skip to content

Commit 40785ea

Browse files
xiangxistuBernardXiong
authored andcommitted
[update] use macro 'BSP_USING_LVGL' to select something about 'lvgl' .
1 parent a45953f commit 40785ea

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

bsp/stm32/stm32f407-atk-explorer/applications/lvgl/SConscript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ for d in list:
1212
if os.path.isfile(os.path.join(path, 'SConscript')):
1313
group = group + SConscript(os.path.join(d, 'SConscript'))
1414

15-
group += DefineGroup('LVGL-port', src, depend = ['PKG_USING_LVGL'], CPPPATH = CPPPATH)
15+
group += DefineGroup('LVGL-port', src, depend = ['BSP_USING_LVGL'], CPPPATH = CPPPATH)
1616
Return('group')

bsp/stm32/stm32f407-atk-explorer/applications/lvgl/demo/SConscript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ for d in list:
1212
if os.path.isfile(os.path.join(path, 'SConscript')):
1313
group = group + SConscript(os.path.join(d, 'SConscript'))
1414

15-
group += DefineGroup('LVGL-port', src, depend = ['PKG_USING_LVGL'], CPPPATH = CPPPATH)
15+
group += DefineGroup('LVGL-port', src, depend = ['BSP_USING_LVGL'], CPPPATH = CPPPATH)
1616
Return('group')

bsp/stm32/stm32f407-atk-explorer/board/Kconfig

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ menu "Onboard Peripheral Drivers"
3636

3737
config BSP_USING_MCU_LCD
3838
bool "Enable ATK LCD"
39-
select BSP_USING_SDRAM
39+
select BSP_USING_SRAM
4040
default n
4141
if BSP_USING_MCU_LCD
4242
config BSP_USING_MCU_LCD_TEST
@@ -54,6 +54,13 @@ menu "Onboard Peripheral Drivers"
5454
default 17
5555
endif
5656

57+
config BSP_USING_LVGL
58+
bool "Enable LVGL for LCD"
59+
select BSP_USING_MCU_LCD
60+
select BSP_USING_TOUCH
61+
select PKG_USING_LVGL
62+
default n
63+
5764
config BSP_USING_SPI_FLASH
5865
bool "Enable SPI FLASH (W25Q128 spi1)"
5966
select BSP_USING_SPI

0 commit comments

Comments
 (0)