Kconfig 2.1 KB
Newer Older
南工孙冬梅's avatar
南工孙冬梅 已提交
1 2
mainmenu "RT-Thread Configuration"

misonyo's avatar
misonyo 已提交
3
config BSP_DIR
南工孙冬梅's avatar
南工孙冬梅 已提交
4 5 6 7
    string
    option env="BSP_ROOT"
    default "."

misonyo's avatar
misonyo 已提交
8
config RTT_DIR
南工孙冬梅's avatar
南工孙冬梅 已提交
9 10
    string
    option env="RTT_ROOT"
11
    default "../.."
12

misonyo's avatar
misonyo 已提交
13
config PKGS_DIR
南工孙冬梅's avatar
南工孙冬梅 已提交
14 15 16 17
    string
    option env="PKGS_ROOT"
    default "packages"

Z
zhuangwei123 已提交
18
source "$RTT_DIR/Kconfig"
19
source "$RTT_DIR/libcpu/mips/common/Kconfig"
Z
zhuangwei123 已提交
20
source "$PKGS_DIR/Kconfig"
南工孙冬梅's avatar
南工孙冬梅 已提交
21

22
config SOC_LS1C300
23
    bool
24 25 26 27
    select RT_USING_COMPONENTS_INIT
    select RT_USING_USER_MAIN
    default y

28 29 30 31 32 33 34 35
choice
    prompt "Board Type"
        config RT_LS1C_OPENLOONGSON
            bool "OpenLoongson Board"
        config RT_LS1C_BAICAIBOARD
            bool "Baicai Board"
endchoice

36 37 38
config RT_USING_SELF_BOOT
    bool "Enable RT-Thread run without bootloader"
    default n
39 40 41 42 43 44 45

if RT_USING_SELF_BOOT
    config RT_SELF_BOOT_DEBUG
    bool "Debug self boot code"
    default n
endif

南工孙冬梅's avatar
南工孙冬梅 已提交
46
if RT_USING_SERIAL
南工孙冬梅's avatar
南工孙冬梅 已提交
47 48
config RT_USING_UART2
    bool "Using RT_USING_UART2"
49
    default y
50 51
config RT_USING_UART1
    bool "Using RT_USING_UART1"
52
    default y
53 54
config RT_USING_UART3
    bool "Using RT_USING_UART3"
55
    default n
南工孙冬梅's avatar
南工孙冬梅 已提交
56 57

config RT_UART_RX_BUFFER_SIZE
58
    int "The rx buffer size"
南工孙冬梅's avatar
南工孙冬梅 已提交
59
    default 64 if RT_USING_SERIAL
60 61
    default 64
endif
南工孙冬梅's avatar
南工孙冬梅 已提交
62 63 64 65

config RT_USING_GMAC_INT_MODE
    bool "Using RT_USING_GMAC_INT_MODE"
    default y
66

南工孙冬梅's avatar
南工孙冬梅 已提交
67
config RT_USING_SPI0
南工孙冬梅's avatar
南工孙冬梅 已提交
68
    bool "Enable SPI0"
南工孙冬梅's avatar
南工孙冬梅 已提交
69
	select RT_USING_SPI
70
    default y
南工孙冬梅's avatar
南工孙冬梅 已提交
71 72

config RT_USING_SPI1
南工孙冬梅's avatar
南工孙冬梅 已提交
73
    bool "Enable SPI1"
南工孙冬梅's avatar
南工孙冬梅 已提交
74
	select RT_USING_SPI
75 76
    default y

南工孙冬梅's avatar
南工孙冬梅 已提交
77
if RT_USING_I2C
南工孙冬梅's avatar
南工孙冬梅 已提交
78
config RT_USING_I2C1
南工孙冬梅's avatar
南工孙冬梅 已提交
79 80
    bool "Enable I2C1"
    default y
81

南工孙冬梅's avatar
南工孙冬梅 已提交
82
config RT_USING_I2C2
83 84
    bool "Enable I2C2"
    default y
南工孙冬梅's avatar
南工孙冬梅 已提交
85
endif
南工孙冬梅's avatar
南工孙冬梅 已提交
86

87

南工孙冬梅's avatar
南工孙冬梅 已提交
88
config USING_BXCAN0
南工孙冬梅's avatar
南工孙冬梅 已提交
89
    bool "Enable CAN0"
南工孙冬梅's avatar
南工孙冬梅 已提交
90
	select RT_USING_CAN
91 92
    default y

南工孙冬梅's avatar
南工孙冬梅 已提交
93
config USING_BXCAN1
南工孙冬梅's avatar
南工孙冬梅 已提交
94
    bool "Enable CAN1"
南工孙冬梅's avatar
南工孙冬梅 已提交
95
	select RT_USING_CAN
96
    default y
南工孙冬梅's avatar
南工孙冬梅 已提交
97

南工孙冬梅's avatar
南工孙冬梅 已提交
98 99 100 101
if RT_USING_CAN
config RT_CAN_USING_HDR
    bool "Using RT_CAN_USING_HDR"
	select RT_USING_CAN
102 103
    default y
endif
南工孙冬梅's avatar
南工孙冬梅 已提交
104

105 106 107 108 109
choice
    prompt "Touch format"
    default NO_TOUCH

    config NO_TOUCH
110 111
        bool "with no touch"

112 113 114
if RT_USING_RTGUI
    config XPT2046_USING_TOUCH
        bool "with XPT2046 touch"
115
endif
116 117

    config TINA_USING_TOUCH
118
        bool "with TINA touch"
119 120 121 122 123
endchoice

if RT_USING_RTC
config RT_RTC_NAME
    string "RT_RTC_NAME"
124 125
    default "RTC"
endif
126