rt-thread/bsp/k210/drivers/Kconfig

215 lines
5.2 KiB
Plaintext
Raw Normal View History

2022-08-04 08:13:40 +08:00
config SOC_K210
bool
select ARCH_RISCV64
select ARCH_RISCV_FPU_S
select PKG_USING_K210_SDK
config BOARD_K210_EVB
bool
select SOC_K210
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
2021-10-27 10:52:29 +08:00
menu "Hardware Drivers Config"
2018-12-18 21:01:03 +08:00
config BSP_USING_UART_HS
bool "Enable High Speed UART"
default y
menu "General Purpose UARTs"
menuconfig BSP_USING_UART1
bool "Enable UART1"
2018-12-18 21:01:03 +08:00
default n
if BSP_USING_UART1
config BSP_UART1_TXD_PIN
int "uart1 TXD pin number"
default 20
config BSP_UART1_RXD_PIN
int "uart1 RXD pin number"
default 21
endif
2018-12-18 21:01:03 +08:00
menuconfig BSP_USING_UART2
bool "Enable UART2"
2018-12-18 21:01:03 +08:00
default n
if BSP_USING_UART2
config BSP_UART2_TXD_PIN
int "uart2 TXD pin number"
default 28
config BSP_UART2_RXD_PIN
int "uart2 RXD pin number"
default 27
endif
2018-12-18 21:01:03 +08:00
menuconfig BSP_USING_UART3
bool "Enable UART3"
2018-12-18 21:01:03 +08:00
default n
if BSP_USING_UART3
config BSP_UART3_TXD_PIN
int "uart3 TXD pin number"
default 22
config BSP_UART3_RXD_PIN
int "uart3 RXD pin number"
default 23
endif
endmenu
2018-12-18 21:01:03 +08:00
config BSP_USING_I2C1
bool "Enable I2C1 (GPIO0/1)"
select RT_USING_I2C
default n
2019-03-18 16:58:16 +08:00
menuconfig BSP_USING_SPI1
bool "Enable SPI1"
2018-12-18 21:01:03 +08:00
select RT_USING_SPI
default n
2019-03-18 16:58:16 +08:00
if BSP_USING_SPI1
config BSP_USING_SPI1_AS_QSPI
bool
default n
config BSP_SPI1_CLK_PIN
int "spi1 clk pin number"
2022-08-04 08:13:40 +08:00
default 29
2019-03-18 16:58:16 +08:00
config BSP_SPI1_D0_PIN
int "spi1 d0 pin number"
2022-08-04 08:13:40 +08:00
default 30
2019-03-18 16:58:16 +08:00
config BSP_SPI1_D1_PIN
int "spi1 d1 pin number"
2022-08-04 08:13:40 +08:00
default 31
2019-03-18 16:58:16 +08:00
if BSP_USING_SPI1_AS_QSPI
config BSP_SPI1_D2_PIN
int "spi1 d2 pin number"
2022-08-04 08:13:40 +08:00
default 32
2019-03-18 16:58:16 +08:00
config BSP_SPI1_D3_PIN
int "spi1 d3 pin number"
default 33
endif
menuconfig BSP_SPI1_USING_SS0
bool "SPI1 Enable SS0"
default n
if BSP_SPI1_USING_SS0
config BSP_SPI1_SS0_PIN
int "spi1 ss0 pin number"
2019-03-19 11:27:21 +08:00
default 32
2019-03-18 16:58:16 +08:00
endif
menuconfig BSP_SPI1_USING_SS1
bool "SPI1 Enable SS1"
default n
if BSP_SPI1_USING_SS1
config BSP_SPI1_SS1_PIN
int "spi1 ss1 pin number"
default 25
endif
menuconfig BSP_SPI1_USING_SS2
bool "SPI1 Enable SS2"
default n
if BSP_SPI1_USING_SS2
config BSP_SPI1_SS2_PIN
int "spi1 ss2 pin number"
default 26
endif
menuconfig BSP_SPI1_USING_SS3
bool "SPI1 Enable SS3"
default n
if BSP_SPI1_USING_SS3
config BSP_SPI1_SS3_PIN
int "spi1 ss3 pin number"
default 27
endif
endif
menuconfig BSP_USING_LCD
bool "Enable LCD on SPI0"
default n
if BSP_USING_LCD
config BSP_LCD_CS_PIN
int "CS pin number of 8080 interface"
default 6
config BSP_LCD_WR_PIN
int "WR pin number of 8080 interface"
default 7
config BSP_LCD_DC_PIN
int "DC pin number of 8080 interface"
default 8
config BSP_LCD_RST_PIN
int "RESET pin number of 8080 interface (-1 for not used)"
default -1
config BSP_LCD_BACKLIGHT_PIN
int "Backlight control pin number (-1 for not used)"
default -1
choice
prompt "backlight active polarity"
default BSP_LCD_BACKLIGHT_ACTIVE_LOW
2023-01-09 10:14:23 +08:00
config BSP_LCD_BACKLIGHT_ACTIVE_LOW
bool "lcd backlight on low level"
config BSP_LCD_BACKLIGHT_ACTIVE_HIGH
bool "lcd_backlight on high level"
endchoice
config BSP_LCD_CLK_FREQ
int "Lcd max clk frequency"
default 15000000
2023-01-09 10:14:23 +08:00
choice
prompt "lcd scan direction"
default BSP_BOARD_K210_OPENMV_TEST
config BSP_BOARD_KD233
bool "board_kd233 lcd scan: DIR_YX_RLUD"
config BSP_BOARD_K210_OPENMV_TEST
bool "board_k210_openmv lcd scan: DIR_YX_LRUD"
2021-10-27 16:24:47 +08:00
config BSP_BOARD_K210_DRACO
bool "board_k210_Draco lcd scan: DIR_YX_LRUD"
config BSP_BOARD_USER
2023-01-09 10:14:23 +08:00
bool "board_user: user defined."
endchoice
config BSP_LCD_X_MAX
int "LCD Height"
default 240
config BSP_LCD_Y_MAX
int "LCD Width"
default 320
endif
menuconfig BSP_USING_CAMERA
bool "Enable Camera"
default n
if BSP_USING_CAMERA
config BSP_CAMERA_SCCB_SDA_PIN
int "SCCB SDA pin number for camera"
default 9
config BSP_CAMERA_SCCB_SCLK_PIN
int "SCCB SCLK pin number for camera"
default 10
config BSP_CAMERA_CMOS_RST_PIN
int "CMOS RST pin number for camera"
default 11
config BSP_CAMERA_CMOS_VSYNC_PIN
int "CMOS VSYNC pin number for camera"
default 12
config BSP_CAMERA_CMOS_PWDN_PIN
int "CMOS PWDN pin number for camera"
default 13
config BSP_CAMERA_CMOS_XCLK_PIN
int "CMOS XCLK pin number for camera"
default 14
config BSP_CAMERA_CMOS_PCLK_PIN
int "CMOS PCLK pin number for camera"
default 15
2019-03-18 16:58:16 +08:00
config BSP_CAMERA_CMOS_HREF_PIN
int "CMOS HREF pin number for camera"
default 17
endif
2021-10-27 10:52:29 +08:00
endmenu