Kconfig 9.3 KB
Newer Older
W
whsj2 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 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 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246
menu "Hardware Drivers Config"

config SOC_SWM320
    bool
    select RT_USING_COMPONENTS_INIT
    select RT_USING_USER_MAIN
    default y

menu "On-chip Peripheral Drivers"

    menuconfig BSP_USING_UART
        bool "Enable UART"
        default y
        select RT_USING_SERIAL
        if BSP_USING_UART
            config BSP_USING_UART0
                bool "Enable UART0 (A2/RX,A3/TX)"
                default y
            config BSP_USING_UART1
                bool "Enable UART1 (C2/RX,C3/TX)"
                default n
            config BSP_USING_UART2
                bool "Enable UART2 (C4/RX,C5/TX)"
                default n
            config BSP_USING_UART3
                bool "Enable UART3 (C6/RX,C7/TX)"
                default n
        endif

    config BSP_USING_GPIO
        bool "Enable GPIO"
        select RT_USING_PIN
        default y

    menuconfig BSP_USING_ADC
        bool "Enable ADC"
        default n
        select RT_USING_ADC
        if BSP_USING_ADC
            config BSP_USING_ADC0
                bool "Enable ADC0"
                default n
                if BSP_USING_ADC0
                    config BSP_USING_ADC0_CHN0
                        bool "Enable ADC0_CHN0"
                        default n
                    config BSP_USING_ADC0_CHN1
                        bool "Enable ADC0_CHN1"
                        default n
                    config BSP_USING_ADC0_CHN2
                        bool "Enable ADC0_CHN2"
                        default n
                    config BSP_USING_ADC0_CHN3
                        bool "Enable ADC0_CHN3"
                        default n
                    config BSP_USING_ADC0_CHN4
                        bool "Enable ADC0_CHN4(A12)"
                        default n
                    config BSP_USING_ADC0_CHN5
                        bool "Enable ADC0_CHN5(A11)"
                        default n
                    config BSP_USING_ADC0_CHN6
                        bool "Enable ADC0_CHN6(A10)"
                        default n
                    config BSP_USING_ADC0_CHN7
                        bool "Enable ADC0_CHN7(A9)"
                        default n
                endif
            config BSP_USING_ADC1
                bool "Enable ADC1"
                default n
                if BSP_USING_ADC1
                    config BSP_USING_ADC1_CHN0
                        bool "Enable ADC1_CHN0(C7)"
                        default n
                    config BSP_USING_ADC1_CHN1
                        bool "Enable ADC1_CHN1(C6)"
                        default n
                    config BSP_USING_ADC1_CHN2
                        bool "Enable ADC1_CHN2(C5)"
                        default n
                    config BSP_USING_ADC1_CHN3
                        bool "Enable ADC1_CHN3(C4)"
                        default n
                    config BSP_USING_ADC1_CHN4
                        bool "Enable ADC1_CHN4(N0)"
                        default n
                    config BSP_USING_ADC1_CHN5
                        bool "Enable ADC1_CHN5(N1)"
                        default n
                    config BSP_USING_ADC1_CHN6
                        bool "Enable ADC1_CHN6(N2)"
                        default n
                    config BSP_USING_ADC1_CHN7
                        bool "Enable ADC1_CHN7"
                        default n
                endif
        endif

    menuconfig BSP_USING_TIM
        bool "Enable HWTIMER"
        default n
        select RT_USING_HWTIMER
        if BSP_USING_TIM
            config BSP_USING_TIM0
                bool "Enable TIM0"
                default n
            config BSP_USING_TIM1
                bool "Enable TIM1"
                default n
            config BSP_USING_TIM2
                bool "Enable TIM2"
                default n
            config BSP_USING_TIM3
                bool "Enable TIM3"
                default n

            config BSP_USING_TIM4
                bool "Enable TIM4"
                default n
            config BSP_USING_TIM5
                bool "Enable TIM5"
                default n
        endif

    menuconfig BSP_USING_I2C
        bool "Enable I2C BUS (software simulation)"
        default n
        select RT_USING_I2C
        select RT_USING_I2C_BITOPS
        select RT_USING_PIN
        if BSP_USING_I2C
            config BSP_USING_I2C0
                bool "Enable I2C0"
                default n
                if BSP_USING_I2C0
                    comment "Notice: PC2 --> 28; PC3 --> 29"
                    config BSP_I2C0_SCL_PIN
                        int "I2C0 scl pin number"
                        range 0 99
                        default 28
                    config BSP_I2C0_SDA_PIN
                        int "I2C0 sda pin number"
                        range 0 99
                        default 29
                endif
            config BSP_USING_I2C1
                bool "Enable I2C1"
                default n
                if BSP_USING_I2C1
                    comment "Notice: PC6 --> 32; PC7 --> 33"
                    config BSP_I2C1_SCL_PIN
                        int "I2C1 scl pin number"
                        range 0 99
                        default 32
                    config BSP_I2C1_SDA_PIN
                        int "I2C1 sda pin number"
                        range 0 99
                        default 33
                endif
        endif

    menuconfig BSP_USING_PWM
        bool "Enable PWM"
        default n
        select RT_USING_PWM
        if BSP_USING_PWM
        config BSP_USING_PWM0
            bool "Enable PWM0"
            default n
            if BSP_USING_PWM0
                config BSP_USING_PWM0A
                    bool "Enable PWM0A (C2)"
                    default n
                config BSP_USING_PWM0B
                    bool "Enable PWM0B (C4)"
                    default n
            endif
        config BSP_USING_PWM1
            bool "Enable PWM1"
            default n
            if BSP_USING_PWM1
                config BSP_USING_PWM1A
                    bool "Enable PWM1A (C3)"
                    default n
                config BSP_USING_PWM1B
                    bool "Enable PWM1B (C5)"
                    default n
            endif
        config BSP_USING_PWM2
            bool "Enable PWM2"
            default n
            if BSP_USING_PWM2
                config BSP_USING_PWM2A
                    bool "Enable PWM2A (N4)"
                    default n
                config BSP_USING_PWM2B
                    bool "Enable PWM2B (N6)"
                    default n
            endif
        config BSP_USING_PWM3
            bool "Enable PWM3"
            default n
            if BSP_USING_PWM3
                config BSP_USING_PWM3A
                    bool "Enable PWM3A (N3)"
                    default n
                config BSP_USING_PWM3B
                    bool "Enable PWM3B (N5)"
                    default n
            endif
        config BSP_USING_PWM4
            bool "Enable PWM4"
            default n
            if BSP_USING_PWM4
                config BSP_USING_PWM4A
                    bool "Enable PWM4A (N8)"
                    default n
                config BSP_USING_PWM4B
                    bool "Enable PWM4B (N10)"
                    default n
            endif
        config BSP_USING_PWM5
            bool "Enable PWM5"
            default n
            if BSP_USING_PWM5
                config BSP_USING_PWM5A
                    bool "Enable PWM5A (N7)"
                    default n
                config BSP_USING_PWM5B
                    bool "Enable PWM5B (N9)"
                    default n
            endif
        endif

    config BSP_USING_RTC
        bool "Enable RTC"
        select RT_USING_RTC
        default n

    menuconfig BSP_USING_SPI
        bool "Enable SPI BUS"
        default n
        select RT_USING_SPI
        if BSP_USING_SPI
            config BSP_USING_SPI0
Y
yanmowudi 已提交
247
                bool "Enable SPI0 BUS(CS/P22,MISO/P19,MOSI/P18,CLK/P23)"
W
whsj2 已提交
248 249 250
                default n

            config BSP_USING_SPI1
Y
yanmowudi 已提交
251
                bool "Enable SPI1 BUS(CS/B6,MISO/B3,MOSI/B2,CLK/B1)"
W
whsj2 已提交
252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305
                default n
        endif

    config BSP_USING_WDT
        bool "Enable Watchdog Timer"
        select RT_USING_WDT
        default n

    config BSP_USING_CRC
        bool "Enable CRC (CRC-32 0x04C11DB7 Polynomial)"
        select RT_USING_HWCRYPTO
        select RT_HWCRYPTO_USING_CRC
        default n
endmenu

menu "Onboard Peripheral Drivers"
    config BSP_USING_SDIO
        bool "Enable SDCARD (sdio)"
        select RT_USING_SDIO
        select RT_USING_DFS
        select RT_USING_DFS_ELMFAT
        default n

    menuconfig BSP_USING_EXT_SRAM
        bool "Enable external sram"
        select RT_USING_MEMHEAP
        select RT_USING_MEMHEAP_AS_HEAP
        default n
        if BSP_USING_EXT_SRAM
            config BSP_EXT_SRAM_SIZE
            hex "external sram size"
            default 0x100000
        endif

        menuconfig BSP_USING_NOR_FLASH
        bool "Enable mtd nor flash"
        select RT_USING_MTD_NOR
        select PKG_USING_FTL_SRC
        default n
        if BSP_USING_NOR_FLASH
            config BSP_NOR_FLASH_SIZE
                hex "mtd nor flash size"
                default 0x1000000
            config BSP_NOR_FLASH_SECTOR_SIZE
                hex "mtd nor flsah sector"
                default 0x10000
        endif
endmenu

menu "Offboard Peripheral Drivers"

endmenu

endmenu