KConfig 5.9 KB
Newer Older
B
bernard 已提交
1 2
menu "Device Drivers"

B
bernard 已提交
3 4 5 6
config RT_USING_DEVICE_IPC
    bool "Using device drivers IPC"
    default y

B
bernard 已提交
7
config RT_USING_SERIAL
B
bernard 已提交
8 9
    bool "Using serial device drivers"
    default y
B
bernard 已提交
10 11

config RT_USING_CAN
B
bernard 已提交
12 13
    bool "Using CAN device drivers"
    default n
B
bernard 已提交
14 15

config RT_USING_HWTIMER
B
bernard 已提交
16 17
    bool "Using hardware timer device drivers"
    default n
B
bernard 已提交
18 19

config RT_USING_I2C
B
bernard 已提交
20 21
    bool "Using I2C device drivers"
    default n
B
bernard 已提交
22

S
SummerGift 已提交
23 24
if RT_USING_I2C
    config RT_USING_I2C_BITOPS
B
bernard 已提交
25
        bool "Use GPIO to simulate I2C"
S
SummerGift 已提交
26 27
        default y
endif
B
bernard 已提交
28 29

config RT_USING_PIN
B
bernard 已提交
30 31
    bool "Using generic GPIO device drivers"
    default y
B
bernard 已提交
32 33

config RT_USING_MTD_NOR
B
bernard 已提交
34 35
    bool "Using MTD Nor Flash device drivers"
    default n
B
bernard 已提交
36 37

config RT_USING_MTD_NAND
B
bernard 已提交
38 39
    bool "Using MTD Nand Flash device drivers"
    default n
B
bernard 已提交
40 41 42 43 44 45

    if RT_USING_MTD_NAND
    config RT_MTD_NAND_DEBUG
        bool "Enable MTD Nand operations debug information"
        default n
    endif
B
bernard 已提交
46 47

config RT_USING_RTC
B
bernard 已提交
48 49
    bool "Using RTC device drivers"
    default n
B
bernard 已提交
50 51

config RT_USING_SDIO
B
bernard 已提交
52 53
    bool "Using SD/MMC device drivers"
    default n
B
bernard 已提交
54 55

config RT_USING_SPI
B
bernard 已提交
56 57
    bool "Using SPI Bus/Device device drivers"
    default n
B
bernard 已提交
58

B
bernard 已提交
59
    if RT_USING_SPI
armink_ztl's avatar
armink_ztl 已提交
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
        config RT_USING_SFUD
            bool "Using Serial Flash Universal Driver"
            default n
            if RT_USING_SFUD            
                config RT_SFUD_USING_SFDP
                bool "Using auto probe flash JEDEC SFDP parameter"
                default y
                
                config RT_SFUD_USING_FLASH_INFO_TABLE
                bool "Using defined supported flash chip information table"
                default y
                
                config RT_SFUD_DEBUG
                bool "Show more SFUD debug information"
                default n
            endif
    
B
bernard 已提交
77 78 79
        config RT_USING_W25QXX
            bool "Using W25QXX SPI NorFlash"
            default n
B
bernard 已提交
80

B
bernard 已提交
81 82 83
        config RT_USING_GD
            bool "Using GD SPI NorFlash"
            default n
B
bernard 已提交
84

B
bernard 已提交
85 86 87 88
        config RT_USING_ENC28J60
            bool "Using ENC28J60 SPI Ethernet network interface"
            select RT_USING_LWIP
            default n
B
bernard 已提交
89

B
bernard 已提交
90 91 92 93 94
        config RT_USING_SPI_WIFI
            bool "Using RW009/007 SPI Wi-Fi wireless interface"
            select RT_USING_LWIP
            default n
    endif
B
bernard 已提交
95 96

config RT_USING_WDT
B
bernard 已提交
97 98
    bool "Using Watch Dog device drivers"
    default n
B
bernard 已提交
99

B
bernard 已提交
100 101 102
config RT_USING_WIFI
    bool "Using Wi-Fi network"
    default n
B
bernard 已提交
103

104 105 106 107
menu "Using USB"
    config RT_USING_USB_HOST
        bool "Using USB host"
        default n
B
bernard 已提交
108

109 110 111 112 113 114 115 116
        if RT_USING_USB_HOST
            config RT_USBH_ADK
                bool "Enable connected with Android by ADK USB"
                default n
        endif
    config RT_USING_USB_DEVICE
        bool "Using USB device"
        default n
B
bernard 已提交
117

118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134
        if RT_USING_USB_DEVICE
            config RT_USB_DEVICE_COMPOSITE
                bool "Enable composite device"
                default n
                choice
                    prompt "Device type"
                    default _RT_USB_DEVICE_CDC
                    depends on !RT_USB_DEVICE_COMPOSITE
                    config _RT_USB_DEVICE_CDC
                        bool "Enable to use device as CDC device"
                        select RT_USB_DEVICE_CDC
                    config _RT_USB_DEVICE_MSTORAGE
                        bool "Enable to use device as Mass Storage device"
                        select RT_USB_DEVICE_MSTORAGE
                    config _RT_USB_DEVICE_HID
                        bool "Enable to use device as HID device"
                        select RT_USB_DEVICE_HID
135 136 137 138
                    config _RT_USB_DEVICE_ECM
                        bool "Enable to use device as ecm device"
                        select RT_USB_DEVICE_ECM
                        depends on RT_USING_LWIP
139 140 141 142 143 144 145 146 147 148 149
                endchoice
                if RT_USB_DEVICE_COMPOSITE
                    config RT_USB_DEVICE_CDC
                        bool "Enable to use device as CDC device"
                        default y
                    config RT_USB_DEVICE_MSTORAGE
                        bool "Enable to use device as Mass Storage device"
                        default n
                    config RT_USB_DEVICE_HID
                        bool "Enable to use device as HID device"
                        default n
150 151 152 153
                    config RT_USB_DEVICE_ECM
                        bool "Enable to use device as ecm device"
                        default n
                        depends on RT_USING_LWIP
154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188
                endif

                if RT_USB_DEVICE_HID
                    config RT_USB_DEVICE_HID_KEYBOARD
                        bool "Use to HID device as Keyboard"
                        default n
                    if RT_USB_DEVICE_HID_KEYBOARD
                        config RT_USB_DEVICE_HID_KEYBOARD_NUMBER
                        int "Number of Keyboard(max 3)"
                        default 1
                        range 1 3
                    endif
                    config RT_USB_DEVICE_HID_MOUSE
                        bool "Use to HID device as Mouse"
                        default n
                    config RT_USB_DEVICE_HID_GENERAL
                        bool "Use to HID device as General HID device"
                        default y
                        if RT_USB_DEVICE_HID_GENERAL
                            config RT_USB_DEVICE_HID_GENERAL_OUT_REPORT_LENGTH
                                int "General HID device out report length"
                                default 63
                                range 0 63

                            config RT_USB_DEVICE_HID_GENERAL_IN_REPORT_LENGTH
                                int "General HID device in report length"
                                default 63
                                range 0 63
                        endif
                    config RT_USB_DEVICE_HID_MEDIA
                        bool "Use to HID device as media keyboard"
                        default y
                endif
        endif
    endmenu
B
bernard 已提交
189
endmenu