summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2022-05-16 00:31:52 -0400
committerguo <[email protected]>2022-05-19 09:43:20 +0800
commit5ee36367da642dfb71216c590716c25dae454ed4 (patch)
tree76b3067cb2da77fbaea2ac2fa38512145600946e
parentbfdd0b628b8faf410351cbbf91abb5b5232a5485 (diff)
[simulator] improve Kconfig structure
add Onboard Peripheral Drivers menu
-rw-r--r--bsp/simulator/Kconfig56
1 files changed, 30 insertions, 26 deletions
diff --git a/bsp/simulator/Kconfig b/bsp/simulator/Kconfig
index 7338408a03..e7f0e7819c 100644
--- a/bsp/simulator/Kconfig
+++ b/bsp/simulator/Kconfig
@@ -19,39 +19,43 @@ source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig"
config SOC_SIMULATOR
- bool
+ bool
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
-config RT_USING_DFS_WINSHAREDIR
- bool "Enable shared file system between windows"
- select RT_USING_POSIX_FS
- default n
+menu "Onboard Peripheral Drivers"
-config BSP_USING_SAL_WINSOCK
- bool "Enable Windows socket (winsock) with SAL"
- select RT_USING_POSIX_FS
- select RT_USING_POSIX_SOCKET
- select SAL_USING_WINSOCK
- default n
+ config RT_USING_DFS_WINSHAREDIR
+ bool "Enable shared file system between Windows"
+ select RT_USING_POSIX_FS
+ default n
-config BSP_USING_LVGL
- bool "Enable LVGL for LCD"
- select PKG_USING_LVGL
- default n
+ config BSP_USING_SOCKET
+ bool "Enable BSD Socket"
+ select RT_USING_POSIX_FS
+ select RT_USING_POSIX_SOCKET
+ select SAL_USING_WINSOCK
+ default n
-if BSP_USING_LVGL
- config BSP_USING_LVGL_DEMO
- bool "Enable LVGL demo"
- select PKG_USING_LV_MUSIC_DEMO
+ config BSP_USING_LVGL
+ bool "Enable LVGL for LCD"
+ select PKG_USING_LVGL
default n
- config BSP_LCD_WIDTH
- int "LCD width"
- default 800
+ if BSP_USING_LVGL
+ config BSP_USING_LVGL_DEMO
+ bool "Enable LVGL demo"
+ select PKG_USING_LV_MUSIC_DEMO
+ default n
+
+ config BSP_LCD_WIDTH
+ int "LCD width"
+ default 800
+
+ config BSP_LCD_HEIGHT
+ int "LCD height"
+ default 480
+ endif
- config BSP_LCD_HEIGHT
- int "LCD height"
- default 480
-endif
+endmenu