1menu "Hardware Drivers Config" 2 3config SOC_CY8C624ALQI_S2D42 4 bool 5 select SOC_SERIES_IFX_PSOC62 6 select RT_USING_COMPONENTS_INIT 7 select RT_USING_USER_MAIN 8 default y 9 10menu "Onboard Peripheral Drivers" 11 12 config BSP_USING_USB_TO_USART 13 bool "Enable USB TO USART (uart6)" 14 select BSP_USING_UART 15 select BSP_USING_UART6 16 default y 17 18 config BSP_USING_ARDUINO 19 bool "Compatible with Arduino Ecosystem (RTduino)" 20 select PKG_USING_RTDUINO 21 select BSP_USING_STLINK_TO_USART 22 select BSP_USING_UART6 23 select BSP_USING_GPIO 24 select BSP_USING_PWM 25 select BSP_USING_PWM0 26 select BSP_USING_PWM0_CH2 27 select BSP_USING_PWM0_CH3 28 select BSP_USING_PWM0_CH4 29 select BSP_USING_PWM0_CH7 30 select BSP_USING_PWM0_CH2_PORT11_COMPL 31 select BSP_USING_PWM0_CH3_PORT11 32 select BSP_USING_PWM0_CH4_PORT5_COMPL 33 select BSP_USING_PWM0_CH7_PORT5_COMPL 34 select BSP_USING_HW_I2C 35 select BSP_USING_HW_I2C4 36 select BSP_USING_SPI 37 select BSP_USING_SPI0 38 imply RTDUINO_USING_SERVO 39 imply RTDUINO_USING_WIRE 40 imply RTDUINO_USING_SPI 41 default n 42 43endmenu 44 45menu "On-chip Peripheral Drivers" 46 47 config BSP_USING_GPIO 48 bool "Enable GPIO" 49 select RT_USING_PIN 50 default y 51 52 menuconfig BSP_USING_UART 53 bool "Enable UART" 54 default y 55 select RT_USING_SERIAL 56 if BSP_USING_UART 57 config BSP_USING_UART0 58 bool "Enable UART0" 59 default y 60 config BSP_USING_UART1 61 bool "Enable UART1" 62 default n 63 config BSP_USING_UART2 64 bool "Enable UART2" 65 default n 66 config BSP_USING_UART3 67 bool "Enable UART3" 68 default n 69 config BSP_USING_UART4 70 bool "Enable UART4" 71 default n 72 config BSP_USING_UART5 73 bool "Enable UART5" 74 default n 75 config BSP_USING_UART6 76 bool "Enable UART6" 77 default n 78 endif 79 80 menuconfig BSP_USING_PWM 81 bool "Enable PWM" 82 default n 83 select RT_USING_PWM 84 if BSP_USING_PWM 85 menuconfig BSP_USING_PWM0 86 bool "Enable timer0 output pwm" 87 default n 88 if BSP_USING_PWM0 89 menuconfig BSP_USING_PWM0_CH0 90 bool "Enable PWM0 channel0" 91 default n 92 if BSP_USING_PWM0_CH0 93 config BSP_USING_PWM0_CH0_PORT0 94 bool "Enable PWM0-CH0-PORT0 output pwm" 95 default n 96 endif 97 98 menuconfig BSP_USING_PWM0_CH2 99 bool "Enable PWM0 channel2" 100 default n 101 if BSP_USING_PWM0_CH2 102 config BSP_USING_PWM0_CH2_PORT11_COMPL 103 bool "Enable PWM0-CH2-PORT11-COMPL output pwm (Arduino PWM)" 104 default n 105 endif 106 107 menuconfig BSP_USING_PWM0_CH3 108 bool "Enable PWM0 channel3" 109 default n 110 if BSP_USING_PWM0_CH3 111 config BSP_USING_PWM0_CH3_PORT11 112 bool "Enable PWM0-CH3-PORT11 output pwm (Arduino PWM)" 113 default n 114 endif 115 116 menuconfig BSP_USING_PWM0_CH4 117 bool "Enable PWM0 channel4" 118 default n 119 if BSP_USING_PWM0_CH4 120 config BSP_USING_PWM0_CH4_PORT5_COMPL 121 bool "Enable PWM0-CH4-PORT5-CPMPL output pwm (Arduino PWM)" 122 default n 123 endif 124 125 menuconfig BSP_USING_PWM0_CH7 126 bool "Enable PWM0 channel7" 127 default n 128 if BSP_USING_PWM0_CH7 129 config BSP_USING_PWM0_CH7_PORT2 130 bool "Enable PWM0-CH7-PORT2 output pwm" 131 default n 132 endif 133 if BSP_USING_PWM0_CH7 134 config BSP_USING_PWM0_CH7_PORT5 135 bool "Enable PWM0-CH7-PORT5 output pwm" 136 default n 137 endif 138 if BSP_USING_PWM0_CH7 139 config BSP_USING_PWM0_CH7_PORT5_COMPL 140 bool "Enable PWM0-CH7-PORT5-COMPL output pwm (Arduino PWM)" 141 default n 142 endif 143 if BSP_USING_PWM0_CH7 144 config BSP_USING_PWM0_CH7_PORT7 145 bool "Enable PWM0-CH7-PORT7 output pwm" 146 default n 147 endif 148 if BSP_USING_PWM0_CH7 149 config BSP_USING_PWM0_CH7_PORT9 150 bool "Enable PWM0-CH7-PORT9 output pwm" 151 default n 152 endif 153 if BSP_USING_PWM0_CH7 154 config BSP_USING_PWM0_CH7_PORT10 155 bool "Enable PWM0-CH7-PORT10 output pwm" 156 default n 157 endif 158 if BSP_USING_PWM0_CH7 159 config BSP_USING_PWM0_CH7_PORT12 160 bool "Enable PWM0-CH7-PORT12 output pwm" 161 default n 162 endif 163 endif 164 endif 165 166 menuconfig BSP_USING_SPI 167 bool "Enable SPI BUS" 168 select RT_USING_SPI 169 default n 170 if BSP_USING_SPI 171 menuconfig BSP_USING_SPI0 172 bool "Enable SPI0 BUS" 173 default n 174 menuconfig BSP_USING_SPI3 175 bool "Enable SPI3 BUS" 176 default n 177 if BSP_USING_SPI3 178 config BSP_USING_SPI3_SAMPLE 179 bool "Enable SPI3 BUS Sample" 180 default n 181 endif 182 menuconfig BSP_USING_SPI6 183 bool "Enable SPI6 BUS" 184 default n 185 endif 186 187 menuconfig BSP_USING_ADC 188 bool "Enable ADC" 189 default n 190 select RT_USING_ADC 191 if BSP_USING_ADC 192 config BSP_USING_ADC1 193 bool "Enable ADC1" 194 default n 195 endif 196 197 menuconfig BSP_USING_HW_I2C 198 bool "Enable Hardware I2C Bus" 199 default n 200 select RT_USING_I2C 201 select RT_USING_PIN 202 if BSP_USING_HW_I2C 203 config BSP_USING_HW_I2C2 204 bool "Enable I2C2 Bus (User I2C)" 205 default n 206 if BSP_USING_HW_I2C2 207 comment "Notice: P3_0 --> 24; P3_1 --> 25" 208 config BSP_I2C2_SCL_PIN 209 int "i2c2 SCL pin number" 210 range 1 113 211 default 24 212 config BSP_I2C2_SDA_PIN 213 int "i2c2 SDA pin number" 214 range 1 113 215 default 25 216 endif 217 config BSP_USING_HW_I2C4 218 bool "Enable I2C4 Bus (Arduino I2C)" 219 default n 220 if BSP_USING_HW_I2C4 221 comment "Notice: P8_0 --> 64; P8_1 --> 65" 222 config BSP_I2C4_SCL_PIN 223 int "i2c4 SCL pin number" 224 range 1 113 225 default 64 226 config BSP_I2C4_SDA_PIN 227 int "i2c4 SDA pin number" 228 range 1 113 229 default 65 230 endif 231 endif 232 233 menuconfig BSP_USING_I2C 234 bool "Enable Software I2C Bus" 235 default n 236 select RT_USING_I2C 237 select RT_USING_I2C_BITOPS 238 select RT_USING_PIN 239 if BSP_USING_I2C 240 config BSP_USING_I2C1 241 bool "Enable I2C1 Bus (User I2C)" 242 default n 243 if BSP_USING_I2C1 244 comment "Notice: P13_1 --> 105; P13_2 --> 106" 245 config BSP_I2C1_SCL_PIN 246 int "i2c1 SCL pin number" 247 range 1 113 248 default 105 249 config BSP_I2C1_SDA_PIN 250 int "i2c1 SDA pin number" 251 range 1 113 252 default 106 253 endif 254 endif 255 256 menuconfig BSP_USING_RTC 257 bool "Enable RTC" 258 select RT_USING_RTC 259 default n 260 if BSP_USING_RTC 261 choice 262 prompt "Select clock source" 263 default BSP_RTC_USING_LSE 264 265 config BSP_RTC_USING_LSE 266 bool "RTC USING LSE" 267 268 config BSP_RTC_USING_LSI 269 bool "RTC USING LSI" 270 endchoice 271 endif 272 273 config BSP_USING_ON_CHIP_FLASH 274 bool "Enable on-chip FLASH" 275 default n 276 277 config BSP_USING_WDT 278 bool "Enable Watchdog Timer" 279 select RT_USING_WDT 280 default n 281 282 menuconfig BSP_USING_DAC 283 bool "Enable DAC" 284 default n 285 select RT_USING_DAC 286 if BSP_USING_DAC 287 config BSP_USING_DAC1 288 bool "Enable DAC1" 289 default n 290 config BSP_USING_DAC2 291 bool "Enable DAC2" 292 default n 293 endif 294 295 menuconfig BSP_USING_TIM 296 bool "Enable timer" 297 default n 298 select RT_USING_HWTIMER 299 if BSP_USING_TIM 300 config BSP_USING_TIM1 301 bool "Enable TIM1" 302 default n 303 config BSP_USING_TIM2 304 bool "Enable TIM2" 305 default n 306 endif 307 308 menuconfig BSP_USING_SDMMC 309 bool "Enable SDMMC (sd card)" 310 default n 311 select RT_USING_DFS 312 select RT_USING_DFS_ELMFAT 313 if BSP_USING_SDMMC 314 menuconfig BSP_USING_SDCARD 315 bool "Enable SDCARD (sd card)" 316 select BSP_USING_SDCARD_PIN_CONFIG 317 default n 318 if BSP_USING_SDCARD 319 config BSP_USING_SDCARD_EMMC_ENANBLE 320 bool "Enable SDCARD emmc" 321 default false 322 config BSP_USING_SDCARD_BUS_WIDTH 323 int "Enable SDCARD bus width" 324 default 4 325 config BSP_USING_SDCARD_LED_CTRL_ENANBLE 326 bool "Enable SDCARD led control" 327 default false 328 menuconfig BSP_USING_SDCARD_PIN_CONFIG 329 bool "Enable SDCARD pin config" 330 default y 331 if BSP_USING_SDCARD_PIN_CONFIG 332 config BSP_USING_SDCARD_CMD_PIN 333 int "Enable SDCARD cmd pin,default:P2_4 --> 20" 334 default 20 335 config BSP_USING_SDCARD_CLK_PIN 336 int "Enable SDCARD clk pin,default:P2_5 --> 21" 337 default 21 338 config BSP_USING_SDCARD_DAT0_PIN 339 int "Enable SDCARD dat0 pin,default:P2_0 --> 16" 340 default 16 341 config BSP_USING_SDCARD_DAT1_PIN 342 int "Enable SDCARD dat1 pin,default:P2_1 --> 17" 343 default 17 344 config BSP_USING_SDCARD_DAT2_PIN 345 int "Enable SDCARD dat2 pin,default:P2_2 --> 18" 346 default 18 347 config BSP_USING_SDCARD_DAT3_PIN 348 int "Enable SDCARD dat3 pin,default:P2_3 --> 19" 349 default 19 350 config BSP_USING_SDCARD_DAT4_PIN 351 int "Enable SDCARD dat4 pin,default:NC" 352 default -1 353 config BSP_USING_SDCARD_DAT5_PIN 354 int "Enable SDCARD dat5 pin,default:NC" 355 default -1 356 config BSP_USING_SDCARD_DAT6_PIN 357 int "Enable SDCARD dat6 pin,default:NC" 358 default -1 359 config BSP_USING_SDCARD_DAT7_PIN 360 int "Enable SDCARD dat7 pin,default:NC" 361 default -1 362 config BSP_USING_SDCARD_DETECT_PIN 363 int "Enable SDCARD detect pin,default:P2_6 --> 22" 364 default 22 365 config BSP_USING_SDCARD_IO_VOLT_SEL_PIN 366 int "Enable SDCARD io volt sel pin,default:NC" 367 default -1 368 config BSP_USING_SDCARD_CARD_IF_PWR_EN_PIN 369 int "Enable SDCARD card if pwr en pin,default:NC" 370 default -1 371 config BSP_USING_SDCARD_CARD_MECH_WRITE_PROT_PIN 372 int "Enable SDCARD card mech write prot pin,default:NC" 373 default -1 374 if BSP_USING_SDCARD_LED_CTRL_ENANBLE 375 config BSP_USING_SDCARD_LED_CTRL_PIN 376 int "Enable SDCARD led ctrl pin,default:NC" 377 default -1 378 endif 379 config BSP_USING_SDCARD_CARD_EMMC_RESET_PIN 380 int "Enable SDCARD card emmc reset pin,default:NC" 381 default -1 382 endif 383 endif 384 endif 385 386 menuconfig BSP_USING_FS 387 bool "Enable filesystem" 388 default n 389 if BSP_USING_FS 390 config BSP_USING_SDCARD_FS 391 bool "Enable SDCARD filesystem" 392 select BSP_USING_SDHI 393 select RT_USING_DFS_ELMFAT 394 default n 395 endif 396 397 menuconfig BSP_USING_LVGL 398 bool "Enable LVGL for LCD" 399 select PKG_USING_LVGL 400 default n 401 if BSP_USING_LVGL 402 config BSP_USING_LCD_ILI9431 403 bool "Enable LVGL for LCD_ILI9431" 404 select PKG_USING_ILI9341 405 select BSP_USING_SPI 406 select BSP_USING_SPI0 407 default n 408 endif 409 410 if BSP_USING_LVGL 411 config BSP_USING_LVGL_DEMO 412 bool "Enable LVGL demo" 413 select PKG_USING_LV_MUSIC_DEMO 414 default y 415 endif 416endmenu 417 418menu "Board extended module Drivers" 419 420 config BSP_USING_SLIDER 421 bool "Enable Slider" 422 default n 423 if BSP_USING_SLIDER 424 config BSP_USING_SLIDER_SAMPLE 425 bool "Enable Slider Demo" 426 select BSP_USING_PWM 427 select BSP_USING_PWM0 428 select BSP_USING_PWM0_CH0 429 select BSP_USING_PWM0_CH0_PORT0 430 default n 431 endif 432 433 menuconfig BSP_USING_RW007 434 bool "Enable RW007" 435 default n 436 select PKG_USING_RW007 437 select BSP_USING_SPI 438 select BSP_USING_SPI0 439 select RW007_NOT_USE_EXAMPLE_DRIVERS 440 441 if BSP_USING_RW007 442 comment "Notice: P5_7 --> 47; P5_6 -->46; P0_5 --> 5; P0_4 --> 4" 443 config IFX_RW007_SPI_BUS_NAME 444 string "RW007 BUS NAME" 445 default "spi0" 446 447 config IFX_RW007_WIFI_SSID 448 string "Wi-Fi SSID" 449 default "realthread_VIP" 450 451 config IFX_RW007_WIFI_PASSWORD 452 string "Wi-Fi Password" 453 default "your wifi password" 454 455 config IFX_RW007_CS_PIN 456 int "(INT)CS pin index" 457 range 1 113 458 default 5 459 460 config IFX_RW007_BOOT0_PIN 461 int "(INT)BOOT0 pin index (same as spi clk pin)" 462 range 1 113 463 default 4 464 465 config IFX_RW007_BOOT1_PIN 466 int "(INT)BOOT1 pin index (same as spi cs pin)" 467 range 1 113 468 default 5 469 470 config IFX_RW007_INT_BUSY_PIN 471 int "(INT)INT/BUSY pin index" 472 range 1 113 473 default 47 474 475 config IFX_RW007_RST_PIN 476 int "(INT)RESET pin index" 477 range 1 113 478 default 46 479 endif 480 config BSP_USING_CYW43012_WIFI 481 bool "Enable cyw43012 wifi" 482 select PKG_USING_WLAN_CYW43012 483 default n 484 config BSP_USING_CYW43012_BT 485 bool "Enable cyw43012 Bluetooth" 486 select PKG_USING_BT_CYW43012 487 default n 488endmenu 489 490endmenu