rt-thread/bsp/nuvoton/numaker-hmi-ma35d1/board/Kconfig

155 lines
4.4 KiB
Plaintext

menu "Hardware Drivers Config"
menu "On-chip Peripheral Drivers"
source "$BSP_DIR/../libraries/ma35/rtt_port/Kconfig"
endmenu
menu "On-board Peripheral Drivers"
config BSP_USING_CONSOLE
bool "Enable UART0 for RTT Console(uart0)"
select BSP_USING_UART
select BSP_USING_UART0
default y
config BOARD_USING_NAU8822
bool "NAU8822 Audio Codec supporting(over i2s0, i2c2)"
select NU_PKG_USING_NAU8822
select BSP_USING_I2C2
select BSP_USING_I2S
select BSP_USING_I2S0
default n
config BOARD_USING_STORAGE_SDCARD
bool "SDCARD supporting(over sdh0)"
select BSP_USING_SDH
select BSP_USING_SDH0
default y
config BOARD_USING_STORAGE_EMMC
bool "EMMC supporting(over sdh1)"
select BSP_USING_SDH
select BSP_USING_SDH1
default y
config BOARD_USING_STORAGE_SPIFLASH
bool "SPI NOR FLASH supporting(over qspi0)"
select BSP_USING_QSPI
select BSP_USING_QSPI0
default n
config BOARD_USING_STORAGE_SPINAND
bool "SPI NAND FLASH supporting(over qspi0)"
select BSP_USING_QSPI
select BSP_USING_QSPI0
select NU_PKG_USING_SPINAND
default y
config BOARD_USING_BUZZER
bool "BUZZER function(over epwm1_ch5)"
select BSP_USING_EPWM
select BSP_USING_EPWM1
select BSP_USING_EPWM1_PWM
default y
config BOARD_USING_USBHOST
bool "USB HOST function"
select BSP_USING_USBH
default y
endmenu
menu "Board extended module drivers"
config BOARD_USING_LCM
bool "Use LCD panel."
default y
if BOARD_USING_LCM
choice
prompt "Select LCD panel devices.(Over DISP)"
default BOARD_USING_LCM_FW070TFT_WSVGA
config BOARD_USING_LCM_FW070TFT_WVGA
bool "NuDesign TFT-LCD7-WVGA"
select BSP_USING_DISP
select LCM_USING_FW070TFT
help
Choose this option if you use 7" 800x480x32b LCD panel.
config BOARD_USING_LCM_FW070TFT_WSVGA
bool "NuDesign TFT-LCD7-WSVGA"
select BSP_USING_DISP
select LCM_USING_FW070TFT_WSVGA
help
Choose this option if you use 7" 1024x600x32b LCD panel.
endchoice
choice
prompt "Select Touch devices."
default BOARD_USING_GT911
config BOARD_USING_GT911
bool "GT911 TPC"
select BSP_USING_I2C
select BSP_USING_I2C0
select NU_PKG_USING_TPC_GT911
help
Choose this option if you use GT911 external TSC touching function.
config BOARD_USING_ADCTOUCH
bool "ADC touching"
select BSP_USING_ADC_TOUCH
select NU_PKG_USING_ADC_TOUCH
help
Choose this option if you use internal ADC touching function.
endchoice
endif
config BOARD_USING_SENSOR0
bool "CCAP-SENSOR PORT0(over i2c3/PM1/PK8)"
select BSP_USING_I2C
select BSP_USING_I2C3
select BSP_USING_CCAP
select BSP_USING_CCAP0
default n
if BOARD_USING_SENSOR0
config BOARD_USING_SENSON0_ID
int "Specify Sensor0 ID"
default 0 if BOARD_USING_SENSOR0
range 0 2
help
HM1055=0
ADV728X=1
endif
config BOARD_USING_SENSOR1
bool "CCAP-SENSOR PORT1(over i2c4/PN14/PD15)"
select BSP_USING_I2C
select BSP_USING_I2C4
select BSP_USING_CCAP
select BSP_USING_CCAP1
default n
if BOARD_USING_SENSOR1
config BOARD_USING_SENSON1_ID
int "Specify Sensor1 ID"
default 0
range 0 2
help
HM1055=0
ADV728X=1
endif
endmenu
source "$BSP_DIR/../libraries/nu_packages/Kconfig"
endmenu