1menu "Hardware Drivers Config" 2 3config SOC_HPM6000 4 bool 5 select SOC_SERIES_HPM6000 6 select RT_USING_COMPONENTS_INIT 7 select RT_USING_USER_MAIN 8 default y 9 10config BSP_USING_ENET_PHY_RTL8211 11 bool 12 default n 13 14config BSP_USING_ENET_PHY_RTL8201 15 bool 16 default n 17 18menu "On-chip Peripheral Drivers" 19 config BSP_USING_GPIO 20 bool "Enable GPIO" 21 select RT_USING_PIN if BSP_USING_GPIO 22 default n 23 24 menuconfig BSP_USING_UART 25 bool "Enable UART" 26 default y 27 select RT_USING_SERIAL 28 if BSP_USING_UART 29 menuconfig BSP_USING_UART0 30 bool "Enable UART0 (Debugger)" 31 default y 32 if BSP_USING_UART0 33 config BSP_UART0_RX_USING_DMA 34 bool "Enable UART0 RX DMA" 35 depends on BSP_USING_UART0 && RT_SERIAL_USING_DMA 36 default n 37 config BSP_UART0_TX_USING_DMA 38 bool "Enable UART0 TX DMA" 39 depends on BSP_USING_UART0 && RT_SERIAL_USING_DMA 40 default n 41 config BSP_UART0_RX_BUFSIZE 42 int "Set UART0 RX buffer size" 43 range 64 65535 44 depends on RT_USING_SERIAL_V2 45 default 128 46 config BSP_UART0_TX_BUFSIZE 47 int "Set UART0 TX buffer size" 48 range 0 65535 49 depends on RT_USING_SERIAL_V2 50 default 0 51 endif 52 menuconfig BSP_USING_UART6 53 bool "Enable UART6" 54 default n 55 if BSP_USING_UART6 56 config BSP_UART6_RX_USING_DMA 57 bool "Enable UART6 RX DMA" 58 depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA 59 default n 60 config BSP_UART6_TX_USING_DMA 61 bool "Enable UART6 TX DMA" 62 depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA 63 default n 64 config BSP_UART6_RX_BUFSIZE 65 int "Set UART6 RX buffer size" 66 range 64 65535 67 depends on RT_USING_SERIAL_V2 68 default 128 69 config BSP_UART6_TX_BUFSIZE 70 int "Set UART6 TX buffer size" 71 range 0 65535 72 depends on RT_USING_SERIAL_V2 73 default 0 74 endif 75 menuconfig BSP_USING_UART13 76 bool "Enable UART13" 77 default y 78 if BSP_USING_UART13 79 config BSP_UART13_RX_USING_DMA 80 bool "Enable UART13 RX DMA" 81 depends on BSP_USING_UART13 && RT_SERIAL_USING_DMA 82 default n 83 config BSP_UART13_TX_USING_DMA 84 bool "Enable UART13 TX DMA" 85 depends on BSP_USING_UART13 && RT_SERIAL_USING_DMA 86 default n 87 config BSP_UART13_RX_BUFSIZE 88 int "Set UART13 RX buffer size" 89 range 64 65535 90 depends on RT_USING_SERIAL_V2 91 default 128 92 config BSP_UART13_TX_BUFSIZE 93 int "Set UART13 TX buffer size" 94 range 0 65535 95 depends on RT_USING_SERIAL_V2 96 default 0 97 endif 98 menuconfig BSP_USING_UART14 99 bool "Enable UART14" 100 default n 101 if BSP_USING_UART14 102 config BSP_UART14_RX_USING_DMA 103 bool "Enable UART14 RX DMA" 104 depends on BSP_USING_UART14 && RT_SERIAL_USING_DMA 105 default n 106 config BSP_UART14_TX_USING_DMA 107 bool "Enable UART14 TX DMA" 108 depends on BSP_USING_UART14 && RT_SERIAL_USING_DMA 109 default n 110 config BSP_UART14_RX_BUFSIZE 111 int "Set UART14 RX buffer size" 112 range 64 65535 113 depends on RT_USING_SERIAL_V2 114 default 128 115 config BSP_UART14_TX_BUFSIZE 116 int "Set UART14 TX buffer size" 117 range 0 65535 118 depends on RT_USING_SERIAL_V2 119 default 0 120 endif 121 endif 122 123 124 menuconfig BSP_USING_SPI 125 bool "Enable SPI" 126 default n 127 select RT_USING_SPI if BSP_USING_SPI 128 if BSP_USING_SPI 129 config BSP_USING_SPI1 130 bool "Enable SPI1" 131 default y 132 if BSP_USING_SPI1 133 config BSP_SPI1_USING_DMA 134 bool "Enable SPI1 DMA" 135 default n 136 endif 137 config BSP_USING_SPI2 138 bool "Enable SPI2" 139 default n 140 if BSP_USING_SPI2 141 config BSP_SPI2_USING_DMA 142 bool "Enable SPI2 DMA" 143 default n 144 endif 145 config BSP_USING_SPI3 146 bool "Enable SPI3" 147 default n 148 if BSP_USING_SPI3 149 config BSP_SPI3_USING_DMA 150 bool "Enable SPI3 DMA" 151 default n 152 endif 153 endif 154 155 menuconfig BSP_USING_RTC 156 bool "Enable RTC" 157 default n 158 159 menuconfig BSP_USING_ETH 160 bool "Enable Ethernet" 161 default n 162 163 select RT_USING_ETH 164 if BSP_USING_ETH 165 config BSP_USING_ETH0 166 bool "Enable ETH0" 167 default y 168 select BSP_USING_ENET_PHY_RTL8211 169 170 config BSP_USING_ETH1 171 bool "Enable ETH1" 172 default n 173 select BSP_USING_ENET_PHY_RTL8201 174 endif 175 176 menuconfig BSP_USING_SDXC 177 bool "Enable SDXC" 178 default n 179 select RT_USING_SDIO if BSP_USING_SDXC 180 if BSP_USING_SDXC 181 config BSP_USING_SDXC0 182 bool "Enable SDXC0" 183 default n 184 if BSP_USING_SDXC0 185 choice 186 prompt "Select BUS_WIDTH" 187 default BSP_SDXC0_BUS_WIDTH_8BIT 188 config BSP_SDXC0_BUS_WIDTH_1BIT 189 bool "1-bit" 190 config BSP_SDXC0_BUS_WIDTH_4BIT 191 bool "4-bit" 192 config BSP_SDXC0_BUS_WIDTH_8BIT 193 bool "8-bit" 194 endchoice 195 choice 196 prompt "Select Voltage" 197 default BSP_SDXC0_VOLTAGE_3V3 198 config BSP_SDXC0_VOLTAGE_3V3 199 bool "3.3V" 200 config BSP_SDXC0_VOLTAGE_1V8 201 bool "1.8V" 202 config BSP_SDXC0_VOLTAGE_DUAL 203 bool "Dual voltage 3.3V / 1.8V" 204 endchoice 205 config BSP_SDXC0_VSEL_PIN 206 default "None" 207 string "VSEL pin name" 208 config BSP_SDXC0_PWR_PIN 209 default "None" 210 string "PWR pin name" 211 endif 212 213 config BSP_USING_SDXC1 214 bool "Enable SDXC1" 215 default n 216 if BSP_USING_SDXC1 217 choice 218 prompt "Select BUS_WIDTH" 219 default BSP_SDXC1_BUS_WIDTH_4BIT 220 config BSP_SDXC1_BUS_WIDTH_1BIT 221 bool "1-bit" 222 config BSP_SDXC1_BUS_WIDTH_4BIT 223 bool "4-bit" 224 endchoice 225 choice 226 prompt "Select Voltage" 227 default BSP_SDXC1_VOLTAGE_3V3 228 config BSP_SDXC1_VOLTAGE_3V3 229 bool "3.3V" 230 config BSP_SDXC1_VOLTAGE_1V8 231 bool "1.8V" 232 config BSP_SDXC1_VOLTAGE_DUAL 233 bool "Dual voltage 3.3V / 1.8V" 234 endchoice 235 config BSP_SDXC1_VSEL_PIN 236 default "None" 237 string "VSEL pin name" 238 config BSP_SDXC1_PWR_PIN 239 default "PC20" 240 string "PWR pin name" 241 endif 242 endif 243 244 menuconfig BSP_USING_TOUCH 245 bool "Enable touch" 246 default n 247 if BSP_USING_TOUCH 248 config BSP_USING_TOUCH_GT911 249 bool "Enable GT911" 250 default y 251 252 config BSP_USING_TOUCH_FT5406 253 bool "Enable FT5406" 254 default n 255 endif 256 257 menuconfig BSP_USING_LCD 258 bool "Enable LCD" 259 default n 260 if BSP_USING_LCD 261 config BSP_USING_LCD_ISR 262 bool "Enable LCD interrupt" 263 default n 264 endif 265 266 menuconfig BSP_USING_LVGL 267 bool "Enable LVGL" 268 default n 269 select PKG_USING_LVGL if BSP_USING_LVGL 270 select BSP_USING_PDMA if BSP_USING_LVGL 271 272 menuconfig BSP_USING_PDMA 273 bool "Enable PDMA Driver" 274 default n 275 276 menuconfig BSP_USING_GPTMR 277 bool "Enable GPTMR" 278 default n 279 select RT_USING_HWTIMER if BSP_USING_GPTMR 280 if BSP_USING_GPTMR 281 config BSP_USING_GPTMR1 282 bool "Enable GPTMR1" 283 default n 284 config BSP_USING_GPTMR2 285 bool "Enable GPTMR2" 286 default n 287 config BSP_USING_GPTMR3 288 bool "Enable GPTMR3" 289 default n 290 config BSP_USING_GPTMR4 291 bool "Enable GPTMR4" 292 default n 293 config BSP_USING_GPTMR5 294 bool "Enable GPTMR5" 295 default n 296 config BSP_USING_GPTMR6 297 bool "Enable GPTMR6" 298 default n 299 config BSP_USING_GPTMR7 300 bool "Enable GPTMR7" 301 default n 302 endif 303 304 menuconfig BSP_USING_I2C 305 bool "Enable I2C" 306 default n 307 select RT_USING_I2C if BSP_USING_I2C 308 if BSP_USING_I2C 309 config BSP_USING_I2C0 310 bool "Enable I2C0" 311 default y 312 endif 313 if BSP_USING_I2C0 314 config BSP_I2C0_USING_DMA 315 bool "Enable I2C0 DMA" 316 default n 317 endif 318 319 menuconfig BSP_USING_FEMC 320 bool "Enable DRAM" 321 default y 322 menuconfig INIT_EXT_RAM_FOR_DATA 323 bool "INIT_EXT_RAM_FOR_DATA" 324 default y 325 326 327 menuconfig BSP_USING_XPI_FLASH 328 bool "Enable XPI FLASH" 329 default n 330 select RT_USING_FAL if BSP_USING_XPI_FLASH 331 332 menuconfig BSP_USING_PWM 333 bool "Enable PWM" 334 default n 335 336 menuconfig BSP_USING_DAO 337 bool "Enable Audio DAO play" 338 default n 339 select RT_USING_AUDIO if BSP_USING_DAO 340 341 menuconfig BSP_USING_PDM 342 bool "Enable Audio PDM record" 343 default n 344 select RT_USING_AUDIO if BSP_USING_PDM 345 346 menuconfig BSP_USING_I2S 347 bool "Enable Audio I2S device" 348 default n 349 select RT_USING_AUDIO if BSP_USING_I2S 350 if BSP_USING_I2S 351 config BSP_USING_I2S0 352 bool "Enable I2S0" 353 default y 354 config BSP_USING_AUDIO_CODEC_WM8960 355 bool "Enable audio codec on board" 356 default y 357 endif 358 359 menuconfig BSP_USING_USB 360 bool "Enable USB" 361 default n 362 if BSP_USING_USB 363 config BSP_USING_USB_DEVICE 364 bool "Enable USB Device" 365 default n 366 select RT_USING_CHERRYUSB 367 select RT_CHERRYUSB_DEVICE 368 select RT_CHERRYUSB_DEVICE_SPEED_HS 369 select RT_CHERRYUSB_DEVICE_HPM 370 config BSP_USING_USB_HOST 371 bool "Enable USB Host" 372 default n 373 select RT_USING_CACHE 374 select RT_USING_CHERRYUSB 375 select RT_CHERRYUSB_HOST 376 select RT_CHERRYUSB_HOST_EHCI_HPM 377 endif 378 379 380 menuconfig BSP_USING_WDG 381 bool "Enable Watchdog" 382 default n 383 select RT_USING_WDT if BSP_USING_WDG 384 if BSP_USING_WDG 385 config BSP_USING_WDG0 386 bool "Enable WDG0" 387 default n 388 config BSP_USING_WDG1 389 bool "Enable WDG1" 390 default n 391 config BSP_USING_WDG2 392 bool "Enable WDG2" 393 default n 394 config BSP_USING_WDG3 395 bool "Enable WDG3" 396 default n 397 endif 398 399 menuconfig BSP_USING_CAN 400 bool "Enable CAN" 401 default n 402 select RT_USING_CAN if BSP_USING_CAN 403 if BSP_USING_CAN 404 config BSP_USING_CAN0 405 bool "Enable CAN0" 406 default n 407 config BSP_USING_CAN1 408 bool "Enable CAN1" 409 default n 410 config BSP_USING_CAN2 411 bool "Enable CAN2" 412 default n 413 config BSP_USING_CAN3 414 bool "Enable CAN3" 415 default n 416 endif 417 418 menuconfig BSP_USING_ADC 419 bool "Enable ADC" 420 default n 421 select RT_USING_ADC if BSP_USING_ADC 422 if BSP_USING_ADC 423 menuconfig BSP_USING_ADC12 424 bool "Enable ADC12" 425 default n 426 if BSP_USING_ADC12 427 config BSP_USING_ADC0 428 bool "Enable ADC0" 429 default n 430 config BSP_USING_ADC1 431 bool "Enable ADC1" 432 default n 433 config BSP_USING_ADC2 434 bool "Enable ADC2" 435 default n 436 endif 437 menuconfig BSP_USING_ADC16 438 bool "Enable ADC16" 439 default n 440 if BSP_USING_ADC16 441 config BSP_USING_ADC3 442 bool "Enable ADC3" 443 default n 444 endif 445 endif 446 447 menuconfig BSP_USING_CAMERA 448 bool "Enable camera" 449 default n 450 if BSP_USING_CAMERA 451 config BSP_USING_CAMERA_MT9M114 452 bool "Enable mt9m114" 453 default y 454 455 config BSP_USING_CAMERA_OV5640 456 bool "Enable ov5640" 457 default n 458 459 config BSP_USING_CAMERA_OV7725 460 bool "Enable ov7725" 461 default n 462 endif 463 464 menuconfig BSP_USING_JPEG 465 bool "Enable JPEG Driver" 466 default n 467 468 menuconfig BSP_USING_CAM 469 bool "Enable CAM Driver" 470 default n 471 472 menuconfig BSP_USING_PANEL 473 bool "Enable panel" 474 default n 475 if BSP_USING_PANEL 476 config BSP_USEING_PANEL_RGB_TM070RDH13 477 bool "Enable RGB TM070RDH13" 478 default y 479 endif 480 menuconfig BSP_USING_RTT_LCD_DRIVER 481 bool "Enable RTT LCD Driver" 482 select BSP_USING_LCD 483 default n 484endmenu 485 486endmenu 487