2018-02-09 09:25:20 +08:00
|
|
|
mainmenu "RT-Thread Configuration"
|
|
|
|
|
2019-01-16 23:23:38 +08:00
|
|
|
config BSP_DIR
|
2018-02-09 09:25:20 +08:00
|
|
|
string
|
|
|
|
option env="BSP_ROOT"
|
|
|
|
default "."
|
|
|
|
|
2019-01-16 23:23:38 +08:00
|
|
|
config RTT_DIR
|
2018-02-09 09:25:20 +08:00
|
|
|
string
|
|
|
|
option env="RTT_ROOT"
|
2022-03-29 17:36:01 +08:00
|
|
|
default "../../.."
|
2019-12-07 01:04:25 +08:00
|
|
|
|
2019-01-16 23:23:38 +08:00
|
|
|
config PKGS_DIR
|
2018-02-09 09:25:20 +08:00
|
|
|
string
|
|
|
|
option env="PKGS_ROOT"
|
|
|
|
default "packages"
|
|
|
|
|
2018-05-10 22:20:37 +08:00
|
|
|
source "$RTT_DIR/Kconfig"
|
2019-12-07 01:04:25 +08:00
|
|
|
source "$RTT_DIR/libcpu/mips/common/Kconfig"
|
2018-05-10 22:20:37 +08:00
|
|
|
source "$PKGS_DIR/Kconfig"
|
2018-02-09 09:25:20 +08:00
|
|
|
|
2021-01-31 21:56:30 +08:00
|
|
|
config SOC_LS1C300
|
2019-12-07 01:04:25 +08:00
|
|
|
bool
|
2019-09-11 12:06:43 +08:00
|
|
|
select RT_USING_COMPONENTS_INIT
|
|
|
|
select RT_USING_USER_MAIN
|
|
|
|
default y
|
|
|
|
|
2019-12-07 01:04:25 +08:00
|
|
|
choice
|
|
|
|
prompt "Board Type"
|
|
|
|
config RT_LS1C_OPENLOONGSON
|
|
|
|
bool "OpenLoongson Board"
|
|
|
|
config RT_LS1C_BAICAIBOARD
|
|
|
|
bool "Baicai Board"
|
|
|
|
endchoice
|
|
|
|
|
2018-05-12 19:33:32 +08:00
|
|
|
config RT_USING_SELF_BOOT
|
|
|
|
bool "Enable RT-Thread run without bootloader"
|
|
|
|
default n
|
2019-12-07 01:04:25 +08:00
|
|
|
|
|
|
|
if RT_USING_SELF_BOOT
|
|
|
|
config RT_SELF_BOOT_DEBUG
|
|
|
|
bool "Debug self boot code"
|
|
|
|
default n
|
|
|
|
endif
|
|
|
|
|
2018-03-17 19:15:47 +08:00
|
|
|
if RT_USING_SERIAL
|
2018-02-09 09:25:20 +08:00
|
|
|
config RT_USING_UART2
|
|
|
|
bool "Using RT_USING_UART2"
|
2019-12-07 01:04:25 +08:00
|
|
|
default y
|
2018-12-24 18:49:00 +08:00
|
|
|
config RT_USING_UART1
|
|
|
|
bool "Using RT_USING_UART1"
|
2019-12-07 01:04:25 +08:00
|
|
|
default y
|
2019-04-26 21:00:20 +08:00
|
|
|
config RT_USING_UART3
|
|
|
|
bool "Using RT_USING_UART3"
|
2019-12-07 01:04:25 +08:00
|
|
|
default n
|
2018-02-09 09:25:20 +08:00
|
|
|
|
|
|
|
config RT_UART_RX_BUFFER_SIZE
|
2019-12-07 01:04:25 +08:00
|
|
|
int "The rx buffer size"
|
2018-03-17 19:15:47 +08:00
|
|
|
default 64 if RT_USING_SERIAL
|
2019-12-07 01:04:25 +08:00
|
|
|
default 64
|
|
|
|
endif
|
2018-02-09 09:25:20 +08:00
|
|
|
|
|
|
|
config RT_USING_GMAC_INT_MODE
|
|
|
|
bool "Using RT_USING_GMAC_INT_MODE"
|
|
|
|
default y
|
2019-12-07 01:04:25 +08:00
|
|
|
|
2018-02-09 09:25:20 +08:00
|
|
|
config RT_USING_SPI0
|
2018-03-17 19:15:47 +08:00
|
|
|
bool "Enable SPI0"
|
2023-01-09 10:14:23 +08:00
|
|
|
select RT_USING_SPI
|
2019-12-07 01:04:25 +08:00
|
|
|
default y
|
2018-02-09 09:25:20 +08:00
|
|
|
|
|
|
|
config RT_USING_SPI1
|
2018-03-17 19:15:47 +08:00
|
|
|
bool "Enable SPI1"
|
2023-01-09 10:14:23 +08:00
|
|
|
select RT_USING_SPI
|
2019-12-07 01:04:25 +08:00
|
|
|
default y
|
|
|
|
|
2018-03-17 19:15:47 +08:00
|
|
|
if RT_USING_I2C
|
2018-02-09 09:25:20 +08:00
|
|
|
config RT_USING_I2C1
|
2018-03-17 19:15:47 +08:00
|
|
|
bool "Enable I2C1"
|
|
|
|
default y
|
2019-12-07 01:04:25 +08:00
|
|
|
|
2018-02-09 09:25:20 +08:00
|
|
|
config RT_USING_I2C2
|
2019-12-07 01:04:25 +08:00
|
|
|
bool "Enable I2C2"
|
|
|
|
default y
|
2018-03-17 19:15:47 +08:00
|
|
|
endif
|
2018-02-09 09:25:20 +08:00
|
|
|
|
2019-12-07 01:04:25 +08:00
|
|
|
|
2018-02-09 09:25:20 +08:00
|
|
|
config USING_BXCAN0
|
2018-03-17 19:15:47 +08:00
|
|
|
bool "Enable CAN0"
|
2023-01-09 10:14:23 +08:00
|
|
|
select RT_USING_CAN
|
2019-12-07 01:04:25 +08:00
|
|
|
default y
|
|
|
|
|
2018-02-09 09:25:20 +08:00
|
|
|
config USING_BXCAN1
|
2018-03-17 19:15:47 +08:00
|
|
|
bool "Enable CAN1"
|
2023-01-09 10:14:23 +08:00
|
|
|
select RT_USING_CAN
|
2019-12-07 01:04:25 +08:00
|
|
|
default y
|
2018-02-09 09:25:20 +08:00
|
|
|
|
2018-03-17 19:15:47 +08:00
|
|
|
if RT_USING_CAN
|
|
|
|
config RT_CAN_USING_HDR
|
|
|
|
bool "Using RT_CAN_USING_HDR"
|
2019-12-07 01:04:25 +08:00
|
|
|
default y
|
|
|
|
endif
|
2018-02-09 09:25:20 +08:00
|
|
|
|
2018-12-24 18:49:00 +08:00
|
|
|
choice
|
|
|
|
prompt "Touch format"
|
|
|
|
default NO_TOUCH
|
|
|
|
|
|
|
|
config NO_TOUCH
|
2019-12-07 01:04:25 +08:00
|
|
|
bool "with no touch"
|
|
|
|
|
2018-12-24 18:49:00 +08:00
|
|
|
if RT_USING_RTGUI
|
|
|
|
config XPT2046_USING_TOUCH
|
|
|
|
bool "with XPT2046 touch"
|
2019-12-07 01:04:25 +08:00
|
|
|
endif
|
2018-12-24 18:49:00 +08:00
|
|
|
|
|
|
|
config TINA_USING_TOUCH
|
2019-12-07 01:04:25 +08:00
|
|
|
bool "with TINA touch"
|
2018-12-24 18:49:00 +08:00
|
|
|
endchoice
|
|
|
|
|
|
|
|
if RT_USING_RTC
|
|
|
|
config RT_RTC_NAME
|
|
|
|
string "RT_RTC_NAME"
|
2019-12-07 01:04:25 +08:00
|
|
|
default "RTC"
|
|
|
|
endif
|
2018-12-24 18:49:00 +08:00
|
|
|
|