menu "Hardware Drivers Config"

config SOC_VEXPRESS_A9
    bool
    select ARCH_ARM_CORTEX_A9
    select RT_USING_CACHE
    select ARCH_ARM_MMU
    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 y

config RT_USING_UART1
    bool "Enable UART1"
    default y

config BSP_USING_LVGL
    bool "Enable LVGL for LCD"
    select PKG_USING_LVGL
    select BSP_DRV_CLCD
    select BSP_DRV_MOUSE
    default n

if BSP_USING_LVGL
    config BSP_USING_LVGL_DEMO
        bool "Enable LVGL demo"
        select PKG_USING_LV_MUSIC_DEMO
        default y
endif

config BSP_DRV_CLCD
    bool "CLCD driver"
    default n

config BSP_DRV_MOUSE
    bool "MOUSE driver"
    default n

if BSP_DRV_CLCD
    config BSP_LCD_WIDTH
        int "Width of LCD panel"
        default 640

    config BSP_LCD_HEIGHT
        int "Height of LCD panel"
        default 480
endif

config BSP_DRV_EMAC
    bool "Enable EMAC driver"
    select RT_USING_LWIP
    select RT_USING_POSIX_FS
    select RT_USING_POSIX_SOCKET
    default n

config BSP_DRV_AUDIO
    bool "Audio driver"
    select RT_USING_AUDIO
    default n

endmenu

endmenu