4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-18 09:53:30 +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

89 lines
2.2 KiB
Plaintext

menu "Nuvoton Packages Config"
config NU_PKG_USING_UTILS
bool
default y
config NU_PKG_USING_DEMO
bool "Enable demos"
default y
config NU_PKG_USING_BMX055
bool "BMX055 9-axis sensor."
select RT_USING_I2C
select RT_USING_SENSOR
default n
config NU_PKG_USING_MAX31875
bool "MAX31875 Temperature sensor."
select RT_USING_I2C
select RT_USING_SENSOR
default n
config NU_PKG_USING_NAU88L25
bool "NAU88L25 Audio Codec."
select BSP_USING_I2C
default n
config NU_PKG_USING_NAU8822
bool "NAU8822 Audio Codec."
select BSP_USING_I2C
default n
config NU_PKG_USING_DA9062
bool "DA9062 PMIC."
select BSP_USING_I2C
default n
config NU_PKG_USING_ILI9341
bool "ILI9341 LCD Panel"
select BSP_USING_GPIO
default n
if NU_PKG_USING_ILI9341
choice
prompt "Select ili9341 interface"
config NU_PKG_USING_ILI9341_SPI
select BSP_USING_SPI
bool "ILI9341_SPI"
help
Choose this option if you the ili9341 device is with SPI interface.
config NU_PKG_USING_ILI9341_EBI
select BSP_USING_EBI
bool "ILI9341_EBI"
help
Choose this option if you the ili9341 device is with EBI interface.
endchoice
config NU_PKG_ILI9341_WITH_OFFSCREEN_FRAMEBUFFER
bool "Create an offscreen framebuffer."
default n
config NU_PKG_ILI9341_HORIZONTAL
bool
default y
config BSP_LCD_BPP
int
default 16 if NU_PKG_USING_ILI9341
config BSP_LCD_WIDTH
int
default 320 if NU_PKG_ILI9341_HORIZONTAL
config BSP_LCD_HEIGHT
int
default 240 if NU_PKG_ILI9341_HORIZONTAL
endif
config NU_PKG_USING_SPINAND
bool "SPI NAND flash."
select BSP_USING_QSPI
select RT_USING_MTD_NAND
default n
endmenu