From fbe71b7b3055443f1e26aae2a2832c9a3bde90ea Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Thu, 9 Dec 2021 14:06:28 -0500 Subject: [PATCH] [qemu] update Kconfig --- bsp/qemu-vexpress-a9/Kconfig | 9 ------- bsp/qemu-vexpress-a9/drivers/Kconfig | 36 +++++++++++++++++++++------- bsp/qemu-vexpress-a9/qemu.sh | 2 +- 3 files changed, 28 insertions(+), 19 deletions(-) diff --git a/bsp/qemu-vexpress-a9/Kconfig b/bsp/qemu-vexpress-a9/Kconfig index b2bdfe704d..75aeadae60 100644 --- a/bsp/qemu-vexpress-a9/Kconfig +++ b/bsp/qemu-vexpress-a9/Kconfig @@ -17,13 +17,4 @@ config PKGS_DIR source "$RTT_DIR/Kconfig" source "$PKGS_DIR/Kconfig" - -config SOC_VEXPRESS_A9 - bool - select ARCH_ARM_CORTEX_A9 - select RT_USING_COMPONENTS_INIT - select RT_USING_USER_MAIN - select RT_USING_GIC_V2 - default y - source "$BSP_DIR/drivers/Kconfig" diff --git a/bsp/qemu-vexpress-a9/drivers/Kconfig b/bsp/qemu-vexpress-a9/drivers/Kconfig index 724737725f..2a1be6dc8a 100644 --- a/bsp/qemu-vexpress-a9/drivers/Kconfig +++ b/bsp/qemu-vexpress-a9/drivers/Kconfig @@ -1,13 +1,25 @@ +menu "Hardware Drivers Config" + +config SOC_VEXPRESS_A9 + bool + select ARCH_ARM_CORTEX_A9 + select RT_USING_COMPONENTS_INIT + select RT_USING_USER_MAIN + select RT_USING_GIC_V2 + default y + +menu "Onboard Peripheral Drivers" config RT_USING_UART0 bool "Enable UART0" - default n + default y config RT_USING_UART1 bool "Enable UART1" default y config BSP_USING_LVGL - bool "Enable LVGL" + bool "Enable LVGL for LCD" + select PKG_USING_LVGL default n config BSP_DRV_CLCD @@ -22,20 +34,26 @@ config BSP_DRV_MOUSE if BSP_DRV_CLCD config BSP_LCD_WIDTH - int "Width of LCD panel" - default 640 + int "Width of LCD panel" + default 640 config BSP_LCD_HEIGHT - int "Height of LCD panel" - default 480 + int "Height of LCD panel" + default 480 endif config BSP_DRV_EMAC - bool "EMAC driver" - depends on RT_USING_LWIP - default y + bool "Enable EMAC driver" + select RT_USING_LWIP + select RT_USING_SAL + select SAL_USING_POSIX + default n config BSP_DRV_AUDIO bool "Audio driver" select RT_USING_AUDIO default n + +endmenu + +endmenu diff --git a/bsp/qemu-vexpress-a9/qemu.sh b/bsp/qemu-vexpress-a9/qemu.sh index ff2cec6f81..d819732cb4 100755 --- a/bsp/qemu-vexpress-a9/qemu.sh +++ b/bsp/qemu-vexpress-a9/qemu.sh @@ -2,4 +2,4 @@ if [ ! -f "sd.bin" ]; then dd if=/dev/zero of=sd.bin bs=1024 count=65536 fi -qemu-system-arm -M vexpress-a9 -smp cpus=2 -kernel rtthread.bin -serial stdio -sd sd.bin +qemu-system-arm -M vexpress-a9 -smp cpus=2 -kernel rtthread.bin -serial stdio -sd sd.bin -show-curse