1menu "Hardware Drivers" 2 3 config DRV_DEBUG 4 bool "Enable drivers debug" 5 default n 6 7menu "On-chip Peripheral Drivers" 8 config BSP_USING_DRIVERS_EXAMPLE 9 bool "Enable drivers example" 10 default n 11 12 if BSP_USING_DRIVERS_EXAMPLE 13 config BSP_USING_DRIVERS_AUTO_TEST 14 bool "Enable drivers example" 15 default n 16 endif 17 18 config BSP_USING_IOPAD 19 bool "Enable IOPAD" 20 default y 21 22 menuconfig BSP_USING_UART_LAYER 23 bool "Enable Uart Layer" 24 default n 25 select USE_SERIAL # sdk serial component 26 select RT_USING_SERIAL 27 if BSP_USING_UART_LAYER 28 choice 29 prompt "Select Uart Mode" 30 config BSP_USING_UART 31 bool "Standard Uart" 32 help 33 Use standard uart communication mode 34 config BSP_USING_UART_MSG 35 bool "message-based Uart" 36 help 37 Use message-based uart communication 38 endchoice 39 40 if BSP_USING_UART 41 config RT_USING_UART0 42 bool "Enable UART0" 43 default n 44 config RT_USING_UART1 45 bool "Enable UART1" 46 default y 47 config RT_USING_UART2 48 bool "Enable UART2" 49 default n 50 config RT_USING_UART3 51 bool "Enable UART3" 52 default n 53 endif 54 55 if BSP_USING_UART_MSG 56 config RT_USING_UART0_MSG 57 bool "Enable UART0_MSG" 58 default n 59 config RT_USING_UART1_MSG 60 bool "Enable UART1_MSG" 61 default n 62 config RT_USING_UART2_MSG 63 bool "Enable UART2_MSG" 64 default y 65 endif 66 endif 67 68 menuconfig BSP_USING_SPI_LAYER 69 menuconfig BSP_USING_SPI_LAYER 70 bool "Enable SPI Layer" 71 default n 72 select RT_USING_SPI 73 if BSP_USING_SPI_LAYER 74 choice 75 prompt "Select SPI Mode" 76 config BSP_USING_SPI 77 bool "Standard SPI" 78 help 79 Use standard SPI communication mode 80 config BSP_USING_SPI_MSG 81 bool "IOP message-based SPI" 82 help 83 Use IOP message-based SPI communication 84 endchoice 85 86 if BSP_USING_SPI 87 config RT_USING_SPIM0 88 bool "Enable SPIM0" 89 default n 90 config RT_USING_SPIM1 91 bool "Enable SPIM1" 92 default n 93 config RT_USING_SPIM2 94 bool "Enable SPIM2" 95 default n 96 config RT_USING_SPIM3 97 bool "Enable SPIM3" 98 default n 99 endif 100 101 if BSP_USING_SPI_MSG 102 config RT_USING_SPIM0_MSG 103 bool "Enable SPIM0_MSG" 104 default n 105 config RT_USING_SPIM1_MSG 106 bool "Enable SPIM1_MSG" 107 default n 108 config RT_USING_SPIM2_MSG 109 bool "Enable SPIM2_MSG" 110 default n 111 config RT_USING_SPIM3_MSG 112 bool "Enable SPIM3_MSG" 113 default n 114 endif 115 endif 116 117 menuconfig BSP_USING_I2C_LAYER 118 bool "Enable I2C Layer" 119 default n 120 select RT_USING_I2C 121 if BSP_USING_I2C_LAYER 122 choice 123 prompt "Select I2C Mode" 124 config BSP_USING_I2C 125 bool "Standard I2C" 126 help 127 Use standard I2C communication mode 128 config BSP_USING_I2C_MSG 129 bool "IOP message-based I2C" 130 help 131 Use IOP message-based I2C communication 132 endchoice 133 134 if BSP_USING_I2C 135 config I2C_USE_MIO 136 bool "using i2c mio" 137 default n 138 select USE_MIO 139 select ENABLE_MIO 140 141 if I2C_USE_MIO 142 config RT_USING_MIO0 143 bool "Enable mio0" 144 default n 145 config RT_USING_MIO1 146 bool "Enable mio1" 147 default n 148 config RT_USING_MIO2 149 bool "Enable mio2" 150 default n 151 config RT_USING_MIO3 152 bool "Enable mio3" 153 default n 154 config RT_USING_MIO4 155 bool "Enable mio4" 156 default n 157 config RT_USING_MIO5 158 bool "Enable mio5" 159 default n 160 config RT_USING_MIO6 161 bool "Enable mio6" 162 default n 163 config RT_USING_MIO7 164 bool "Enable mio7" 165 default n 166 config RT_USING_MIO8 167 bool "Enable mio8" 168 default n 169 config RT_USING_MIO9 170 bool "Enable mio9" 171 default n 172 config RT_USING_MIO10 173 bool "Enable mio10" 174 default n 175 config RT_USING_MIO11 176 bool "Enable mio11" 177 default n 178 config RT_USING_MIO12 179 bool "Enable mio12" 180 default n 181 config RT_USING_MIO13 182 bool "Enable mio13" 183 default n 184 config RT_USING_MIO14 185 bool "Enable mio14" 186 default n 187 config RT_USING_MIO15 188 bool "Enable mio15" 189 default n 190 endif 191 192 config I2C_USE_CONTROLLER 193 bool "using i2c controller" 194 default n 195 if I2C_USE_CONTROLLER 196 config RT_USING_I2C0 197 bool "Enable i2c0" 198 default n 199 config RT_USING_I2C1 200 bool "Enable i2c1" 201 default n 202 config RT_USING_I2C2 203 bool "Enable i2c2" 204 default n 205 config RT_USING_I2C3 206 bool "Enable i2c3" 207 default n 208 endif 209 endif 210 211 if BSP_USING_I2C_MSG 212 config RT_USING_I2C0_MSG 213 bool "Enable i2c0 msg" 214 default n 215 config RT_USING_I2C1_MSG 216 bool "Enable i2c1 msg" 217 default n 218 config RT_USING_I2C2_MSG 219 bool "Enable i2c2 msg" 220 default n 221 config RT_USING_I2C3_MSG 222 bool "Enable i2c3 msg" 223 default n 224 endif 225 endif 226 227 menuconfig BSP_USING_CAN 228 bool "Enable CAN" 229 default n 230 select RT_USING_CAN 231 if BSP_USING_CAN 232 config RT_USING_CANFD 233 bool "Enable canfd" 234 select RT_CAN_USING_CANFD 235 default n 236 config RT_USING_FILTER 237 bool "Enable can filter" 238 select RT_CAN_USING_HDR 239 default n 240 config RT_USING_CAN0 241 bool "Enable can0" 242 default n 243 config RT_USING_CAN1 244 bool "Enable can1" 245 default n 246 endif 247 248 menuconfig BSP_USING_GPIO 249 bool "Enable GPIO" 250 default n 251 select RT_USING_PIN 252 253 menuconfig BSP_USING_QSPI 254 bool "Enable QSPI" 255 default n 256 select RT_USING_QSPI 257 select RT_USING_SPI 258 select RT_USING_PIN 259 if BSP_USING_QSPI 260 config RT_USING_QSPI0 261 bool "Enable qspi0" 262 default n 263 if RT_USING_QSPI0 264 config USING_QSPI_CHANNEL0 265 bool "using qspi channel_0" 266 default n 267 config USING_QSPI_CHANNEL1 268 bool "using qspi channel_1" 269 default n 270 endif 271 endif 272 273 menuconfig BSP_USING_ETH_LAYER 274 bool "Enable ETH Layer" 275 default n 276 if BSP_USING_ETH_LAYER 277 config RT_LWIP_PBUF_POOL_BUFSIZE 278 int "The size of each pbuf in the pbuf pool" 279 range 1500 2000 280 default 1700 281 282 choice 283 prompt "Select ETH Mode" 284 config BSP_USING_ETH 285 bool "Standard ETH" 286 help 287 Use standard ETH communication mode 288 config BSP_USING_ETH_MSG 289 bool "IOP message-based ETH" 290 help 291 Use IOP message-based ETH communication 292 endchoice 293 294 295 if BSP_USING_ETH 296 config RT_USING_XMAC0 297 bool "Enable XMAC0" 298 default n 299 config RT_USING_XMAC1 300 bool "Enable XMAC1" 301 default n 302 config RT_USING_XMAC2 303 bool "Enable XMAC2" 304 default n 305 config RT_USING_XMAC3 306 bool "Enable XMAC3" 307 default n 308 endif 309 310 if BSP_USING_ETH_MSG 311 config RT_USING_XMAC0_MSG 312 bool "Enable XMAC0_MSG" 313 default n 314 config RT_USING_XMAC1_MSG 315 bool "Enable XMAC1_MSG" 316 default n 317 config RT_USING_XMAC2_MSG 318 bool "Enable XMAC2_MSG" 319 default n 320 config RT_USING_XMAC3_MSG 321 bool "Enable XMAC3_MSG" 322 default n 323 endif 324 endif 325 326 menuconfig BSP_USING_PWM 327 bool "Enable PWM" 328 default n 329 select RT_USING_PWM 330 if BSP_USING_PWM 331 config RT_USING_PWM0 332 bool "Enable pwm0" 333 default n 334 config RT_USING_PWM1 335 bool "Enable pwm1" 336 default n 337 config RT_USING_PWM2 338 bool "Enable pwm2" 339 default n 340 config RT_USING_PWM3 341 bool "Enable pwm3" 342 default n 343 config RT_USING_PWM4 344 bool "Enable pwm4" 345 default n 346 config RT_USING_PWM5 347 bool "Enable pwm5" 348 default n 349 config RT_USING_PWM6 350 bool "Enable pwm6" 351 default n 352 config RT_USING_PWM7 353 bool "Enable pwm7" 354 default n 355 endif 356 357 menuconfig BSP_USING_SDIF_LAYER 358 bool "Enable SDIF Layer" 359 default n 360 select RT_USING_SDIO 361 362 if BSP_USING_SDIF_LAYER 363 config BSP_USING_SDCARD_FATFS 364 bool "Enable SDCARD (FATFS)" 365 select RT_USING_DFS_ELMFAT 366 default n 367 368 choice 369 prompt "Select SD Mode" 370 default BSP_USING_SDIF 371 config BSP_USING_SDIF 372 bool "Standard SD" 373 help 374 Use standard SD protocol 375 config BSP_USING_SDIF_MSG 376 bool "Message-based SD" 377 help 378 Use message-based SD communication 379 endchoice 380 381 if (BSP_USING_SDIF || BSP_USING_SDIF_MSG) 382 config USING_SDIF0 383 bool "Use SDIF0" 384 default n 385 386 if USING_SDIF0 387 choice 388 prompt "Select SD0 Usage" 389 default USE_SDIF0_TF 390 config USE_SDIF0_TF 391 bool "SD0(TF)" 392 config USE_SDIF0_EMMC 393 bool "SD0(eMMC)" 394 endchoice 395 endif 396 endif 397 if (BSP_USING_SDIF) 398 config USING_SDIF1 399 bool "Use SDIF1" 400 default n 401 402 if USING_SDIF1 403 choice 404 prompt "Select SD1 Usage" 405 default USE_SDIF1_TF 406 config USE_SDIF1_TF 407 bool "SD1(TF)" 408 config USE_SDIF1_EMMC 409 bool "SD1(eMMC)" 410 endchoice 411 endif 412 endif 413 endif 414 415 menuconfig BSP_USING_DC 416 bool "Enable DC" 417 default n 418 select RT_USING_DC 419 if BSP_USING_DC 420 config RT_USING_DC_CHANNEL0 421 bool "using dc channel_0" 422 default n 423 config RT_USING_DC_CHANNEL1 424 bool "using dc channel_1" 425 default n 426 endif 427 428 menuconfig BSP_USING_I2S 429 bool "Enable I2S" 430 default n 431 select RT_USING_AUDIO 432 select BSP_USING_DEVICE 433 if BSP_USING_I2S 434 config RT_I2S_SAMPLERATE 435 int "The samplerate param" 436 default 8000 437 config RT_I2S_SAMPLEBITS 438 int "The samplebits param" 439 default 16 440 config RT_USING_I2S0 441 bool "Enable i2s0" 442 default n 443 endif 444 445 menuconfig BSP_USING_DEVICE 446 bool "Enable Device" 447 default n 448 if BSP_USING_DEVICE 449 config BSP_USING_ES8336 450 bool "Enable ES8336" 451 default n 452 config BSP_USING_ES8388 453 bool "Enable ES8388" 454 default n 455 endif 456endmenu 457 458menu "Board extended module Drivers" 459 460endmenu 461 462endmenu 463