4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-24 12:57:23 +08:00
Wayne 446bde64c8
[Nuvoton] Update drivers (#5501)
* Update drivers.

1. Improve LVGL avg FPS.
2. Sync configuration to 4.1.0.

* [Nuvoton] Update drivers.

1. Fix open-control order issue in CAN driver.
2. [N9H30] Improve N9H30 I2C busy-wait implementation.
3. [N9H30] Support 1024x600x32b LCD panel.
4. Move nu_packages menu into sub-menu of board.

* Update menu-option.

1. Set BOARD_USING_LCM is on by default.
2. Fix default value setting in choice-option.

* Fix control function in I2C driver.

* Add sdk_dist.py and ADC touching calibration function.

Co-authored-by: Wayne Lin <wclin@nuvoton.com>
2022-01-16 18:43:27 +08:00

124 lines
3.9 KiB
Plaintext

menu "Hardware Drivers Config"
menu "On-chip Peripheral Drivers"
source "$BSP_DIR/../libraries/n9h30/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_IP101GR
bool "Enable ethernet phy supporting(over emac/mdio)"
select BSP_USING_EMAC
select BSP_USING_EMAC0
select BSP_USING_EMAC1
default n
config BOARD_USING_NAU8822
bool "NAU8822 Audio Codec supporting(over i2s, i2c0)"
select NU_PKG_USING_NAU8822
select BSP_USING_I2C0
select BSP_USING_I2S
select BSP_USING_I2S0
default n
config BOARD_USING_STORAGE_SDCARD
bool "SDCARD supporting(over sdh_p0)"
select BSP_USING_SDH
select BSP_USING_SDH0
default y
config BOARD_USING_STORAGE_SPIFLASH
bool "SPIFLASH supporting(over qspi0)"
select BSP_USING_QSPI
select BSP_USING_QSPI0
default y
config BOARD_USING_BUZZER
bool "BUZZER.(over pwm0_ch1)"
select BSP_USING_PWM
select BSP_USING_PWM0
default n
config BOARD_USING_USB0_DEVICE_HOST
select BSP_USING_USBH
select BSP_USING_USBD
bool "Enable USB0 Device/Host"
help
Choose this option if you need USB device or host function mode.
If you need USB host, please remember short to ground on JP1 jumper.
config BOARD_USING_USB1_HOST
select BSP_USING_USBH
bool "Enable USB1 Host"
help
Choose this option if you need USB1 HOST.
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 VPOST)"
default BOARD_USING_LCM_FW070TFT_WVGA
config BOARD_USING_LCM_FW070TFT_WVGA
bool "NuDesign TFT-LCD7-WVGA"
select BSP_USING_VPOST
select LCM_USING_FW070TFT
help
Choose this option if you use 7" 800x480x32b LCD panel.
config BOARD_USING_LCM_FW043TFT_HVGA
bool "NuDesign TFT-LCD43-HVGA"
select BSP_USING_VPOST
select LCM_USING_FW043TFT
help
Choose this option if you use 4.3" 480x272x32b LCD panel.
config BOARD_USING_LCM_FW070TFT_WSVGA
bool "NuDesign TFT-LCD7-WSVGA"
select BSP_USING_VPOST
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_ADCTOUCH
config BOARD_USING_ADCTOUCH
bool "ADC touching"
select BSP_USING_ADC_TOUCH
help
Choose this option if you use internal ADC touching function.
config BOARD_USING_GT911
bool "GT911 TSC"
select BSP_USING_I2C
select BSP_USING_I2C0
select PKG_USING_GT911
help
Choose this option if you use GT911 external TSC touching function.
endchoice
endif
endmenu
source "$BSP_DIR/../libraries/nu_packages/Kconfig"
endmenu