1 config SOC_SERIES_MA35D1 2 bool 3 select SOC_FAMILY_NUMICRO 4 select RT_USING_COMPONENTS_INIT 5 select RT_USING_USER_MAIN 6 select PKG_USING_NUVOTON_SERIES_DRIVER 7 default y 8 9 config BSP_USING_SSPCC 10 bool 11 depends on SOC_SERIES_MA35D1 && !USE_MA35D1_SUBM 12 default y 13 14 config BSP_USING_SSMCC 15 bool 16 depends on SOC_SERIES_MA35D1 && !USE_MA35D1_SUBM 17 default y 18 19 config BSP_USING_UMCTL2 20 bool 21 depends on SOC_SERIES_MA35D1 && !USE_MA35D1_SUBM 22 default y 23 24 config BSP_USING_RTP 25 bool 26 depends on SOC_SERIES_MA35D1 && !USE_MA35D1_SUBM 27 default y 28 29 if BSP_USING_RTP 30 config RTP_USING_AT_STARTUP 31 bool "Enable RTP Executation at startup" 32 default y 33 endif 34 35 config USE_MA35D1_AARCH32 36 bool 37 select ARCH_ARM_CORTEX_A 38 select RT_USING_GIC_V2 39 select RT_USING_FPU 40 select ARCH_ARMV8 41 select RT_SMP_AUTO_BOOT 42 43 config USE_MA35D1_AARCH64 44 bool 45 select ARCH_ARMV8 46 47 if USE_MA35D1_AARCH64 48 config BSP_USING_GIC 49 bool 50 default y 51 config BSP_USING_GICV2 52 bool 53 default y 54 endif 55 56 config USE_MA35D1_SUBM 57 bool 58 select ARCH_ARM_CORTEX_M4 59 60 config RT_USING_FPU 61 bool 62 63 config BSP_USE_STDDRIVER_SOURCE 64 bool "Build StdDriver source" 65 default n 66 67 menuconfig BSP_USING_PDMA 68 bool "Enable Peripheral Direct Memory Access Controller(PDMA)" 69 default y 70 71 if BSP_USING_PDMA 72 config BSP_USING_PDMA0 73 bool "Enable PDMA0" 74 depends on !USE_MA35D1_SUBM 75 76 config BSP_USING_PDMA1 77 bool "Enable PDMA1" 78 depends on !USE_MA35D1_SUBM 79 80 config BSP_USING_PDMA2 81 bool "Enable PDMA2" 82 83 config BSP_USING_PDMA3 84 bool "Enable PDMA3" 85 86 config NU_PDMA_MEMFUN_ACTOR_MAX 87 int "Specify maximum mem actor for memfun" 88 range 1 4 89 default 2 90 endif 91 92 config BSP_USING_GPIO 93 bool "Enable General Purpose I/O(GPIO)" 94 select RT_USING_PIN 95 default y 96 97 menuconfig BSP_USING_GMAC 98 bool "Enable Ethernet Gigabit MAC Controller(GMAC)" 99 select RT_USING_LWIP 100 select RT_USING_NETDEV 101 depends on !USE_MA35D1_SUBM 102 103 if BSP_USING_GMAC 104 config BSP_USING_GMAC0 105 bool "Enable GMAC0" 106 107 config BSP_USING_GMAC1 108 bool "Enable GMAC1" 109 endif 110 111 menuconfig BSP_USING_RTC 112 bool "Enable Real Time Clock(RTC)" 113 select RT_USING_RTC 114 115 config NU_RTC_SUPPORT_IO_RW 116 bool "Support device RW entry" 117 depends on BSP_USING_RTC && RT_USING_RTC 118 119 config NU_RTC_SUPPORT_MSH_CMD 120 bool "Support module shell command" 121 depends on BSP_USING_RTC && RT_USING_RTC 122 123 menuconfig BSP_USING_ADC 124 bool "Enable Analog-to-Digital Converter(ADC)" 125 select RT_USING_ADC 126 depends on !USE_MA35D1_SUBM 127 128 if BSP_USING_ADC 129 config BSP_USING_ADC_TOUCH 130 bool "Enable ADC Touching function" 131 select RT_USING_TOUCH 132 default y 133 endif 134 135 menuconfig BSP_USING_CCAP 136 bool "Enable Camera Capture Interface Controller(CCAP)" 137 select RT_USING_PIN 138 depends on !USE_MA35D1_SUBM 139 140 if BSP_USING_CCAP 141 config BSP_USING_CCAP0 142 bool "Enable CCAP0" 143 config BSP_USING_CCAP1 144 bool "Enable CCAP1" 145 endif 146 menuconfig BSP_USING_EADC 147 bool "Enable Enhanced Analog-to-Digital Converter(EADC)" 148 select RT_USING_ADC 149 150 if BSP_USING_EADC 151 config BSP_USING_EADC0 152 bool "Enable EADC0" 153 endif 154 155 menuconfig BSP_USING_TMR 156 bool "Enable Timer Controller(TIMER)" 157 158 if BSP_USING_TMR 159 160 config BSP_USING_TIMER 161 bool 162 163 config BSP_USING_TPWM 164 bool 165 166 config BSP_USING_TMR0 167 bool "Enable TIMER0" 168 depends on BSP_USING_TMR && !USE_MA35D1_SUBM 169 170 if BSP_USING_TMR0 171 choice 172 prompt "Select TIMER0 function mode" 173 174 config BSP_USING_TIMER0 175 select BSP_USING_TIMER 176 select RT_USING_HWTIMER 177 bool "Timer" 178 help 179 Choose this option if you need TIMER function mode. 180 181 config BSP_USING_TPWM0 182 select BSP_USING_TPWM 183 select RT_USING_PWM 184 bool "Timer PWM" 185 help 186 Choose this option if you need Timer PWM function mode. 187 188 endchoice 189 endif 190 191 config BSP_USING_TMR1 192 bool "Enable TIMER1" 193 depends on BSP_USING_TMR && !USE_MA35D1_SUBM 194 195 if BSP_USING_TMR1 196 choice 197 prompt "Select TIMER1 function mode" 198 199 config BSP_USING_TIMER1 200 select BSP_USING_TIMER 201 select RT_USING_HWTIMER 202 bool "Timer" 203 help 204 Choose this option if you need TIMER function mode. 205 206 config BSP_USING_TPWM1 207 select BSP_USING_TPWM 208 select RT_USING_PWM 209 bool "Timer PWM" 210 help 211 Choose this option if you need Timer PWM function mode. 212 endchoice 213 endif 214 215 config BSP_USING_TMR2 216 bool "Enable TIMER2" 217 depends on BSP_USING_TMR 218 219 if BSP_USING_TMR2 220 choice 221 prompt "Select TIMER2 function mode" 222 223 config BSP_USING_TIMER2 224 select BSP_USING_TIMER 225 select RT_USING_HWTIMER 226 bool "Timer" 227 help 228 Choose this option if you need TIMER function mode. 229 230 config BSP_USING_TPWM2 231 select BSP_USING_TPWM 232 select RT_USING_PWM 233 bool "Timer PWM" 234 help 235 Choose this option if you need Timer PWM function mode. 236 endchoice 237 endif 238 239 config BSP_USING_TMR3 240 bool "Enable TIMER3" 241 depends on BSP_USING_TMR 242 243 if BSP_USING_TMR3 244 choice 245 prompt "Select TIMER3 function mode" 246 247 config BSP_USING_TIMER3 248 select BSP_USING_TIMER 249 select RT_USING_HWTIMER 250 bool "Timer" 251 help 252 Choose this option if you need TIMER function mode. 253 254 config BSP_USING_TPWM3 255 select BSP_USING_TPWM 256 select RT_USING_PWM 257 bool "Timer PWM" 258 help 259 Choose this option if you need Timer PWM function mode. 260 endchoice 261 endif 262 263 config BSP_USING_TMR4 264 bool "Enable TIMER4" 265 depends on BSP_USING_TMR 266 267 if BSP_USING_TMR4 268 choice 269 prompt "Select TIMER4 function mode" 270 271 config BSP_USING_TIMER4 272 select BSP_USING_TIMER 273 select RT_USING_HWTIMER 274 bool "Timer" 275 help 276 Choose this option if you need TIMER function mode. 277 278 config BSP_USING_TPWM4 279 select BSP_USING_TPWM 280 select RT_USING_PWM 281 bool "Timer PWM" 282 help 283 Choose this option if you need Timer PWM function mode. 284 285 endchoice 286 endif 287 288 config BSP_USING_TMR5 289 bool "Enable TIMER5" 290 depends on BSP_USING_TMR 291 292 if BSP_USING_TMR5 293 choice 294 prompt "Select TIMER5 function mode" 295 296 config BSP_USING_TIMER5 297 select BSP_USING_TIMER 298 select RT_USING_HWTIMER 299 bool "Timer" 300 help 301 Choose this option if you need TIMER function mode. 302 303 config BSP_USING_TPWM5 304 select BSP_USING_TPWM 305 select RT_USING_PWM 306 bool "Timer PWM" 307 help 308 Choose this option if you need Timer PWM function mode. 309 310 endchoice 311 endif 312 313 config BSP_USING_TMR6 314 bool "Enable TIMER6" 315 depends on BSP_USING_TMR 316 317 if BSP_USING_TMR6 318 choice 319 prompt "Select TIMER6 function mode" 320 321 config BSP_USING_TIMER6 322 select BSP_USING_TIMER 323 select RT_USING_HWTIMER 324 bool "Timer" 325 help 326 Choose this option if you need TIMER function mode. 327 328 config BSP_USING_TPWM6 329 select BSP_USING_TPWM 330 select RT_USING_PWM 331 bool "Timer PWM" 332 help 333 Choose this option if you need Timer PWM function mode. 334 335 endchoice 336 endif 337 338 339 config BSP_USING_TMR7 340 bool "Enable TIMER7" 341 depends on BSP_USING_TMR 342 343 if BSP_USING_TMR7 344 choice 345 prompt "Select TIMER7 function mode" 346 347 config BSP_USING_TIMER7 348 select BSP_USING_TIMER 349 select RT_USING_HWTIMER 350 bool "Timer" 351 help 352 Choose this option if you need TIMER function mode. 353 354 config BSP_USING_TPWM7 355 select BSP_USING_TPWM 356 select RT_USING_PWM 357 bool "Timer PWM" 358 help 359 Choose this option if you need Timer PWM function mode. 360 361 endchoice 362 endif 363 364 config BSP_USING_TMR8 365 bool "Enable TIMER8" 366 depends on BSP_USING_TMR 367 368 if BSP_USING_TMR8 369 choice 370 prompt "Select TIMER8 function mode" 371 372 config BSP_USING_TIMER8 373 select BSP_USING_TIMER 374 select RT_USING_HWTIMER 375 bool "Timer" 376 help 377 Choose this option if you need TIMER function mode. 378 379 config BSP_USING_TPWM8 380 select BSP_USING_TPWM 381 select RT_USING_PWM 382 bool "Timer PWM" 383 help 384 Choose this option if you need Timer PWM function mode. 385 386 endchoice 387 endif 388 389 config BSP_USING_TMR9 390 bool "Enable TIMER9" 391 depends on BSP_USING_TMR 392 393 if BSP_USING_TMR9 394 choice 395 prompt "Select TIMER9 function mode" 396 397 config BSP_USING_TIMER9 398 select BSP_USING_TIMER 399 select RT_USING_HWTIMER 400 bool "Timer" 401 help 402 Choose this option if you need TIMER function mode. 403 404 config BSP_USING_TPWM9 405 select BSP_USING_TPWM 406 select RT_USING_PWM 407 bool "Timer PWM" 408 help 409 Choose this option if you need Timer PWM function mode. 410 411 endchoice 412 endif 413 414 config BSP_USING_TMR10 415 bool "Enable TIMER10" 416 depends on BSP_USING_TMR 417 418 if BSP_USING_TMR10 419 choice 420 prompt "Select TIMER10 function mode" 421 422 config BSP_USING_TIMER10 423 select BSP_USING_TIMER 424 select RT_USING_HWTIMER 425 bool "Timer" 426 help 427 Choose this option if you need TIMER function mode. 428 429 config BSP_USING_TPWM10 430 select BSP_USING_TPWM 431 select RT_USING_PWM 432 bool "Timer PWM" 433 help 434 Choose this option if you need Timer PWM function mode. 435 436 endchoice 437 endif 438 439 config BSP_USING_TMR11 440 bool "Enable TIMER11" 441 depends on BSP_USING_TMR 442 443 if BSP_USING_TMR11 444 choice 445 prompt "Select TIMER11 function mode" 446 447 config BSP_USING_TIMER11 448 select BSP_USING_TIMER 449 select RT_USING_HWTIMER 450 bool "Timer" 451 help 452 Choose this option if you need TIMER function mode. 453 454 config BSP_USING_TPWM11 455 select BSP_USING_TPWM 456 select RT_USING_PWM 457 bool "Timer PWM" 458 help 459 Choose this option if you need Timer PWM function mode. 460 461 endchoice 462 endif 463 464 endif 465 466 menuconfig BSP_USING_UART 467 bool "Enable Universal Asynchronous Receiver/Transmitters(UART)" 468 select RT_USING_SERIAL 469 470 if BSP_USING_UART 471 config BSP_USING_UART0 472 bool "Enable UART0" 473 depends on !USE_MA35D1_SUBM 474 475 config BSP_USING_UART0_TX_DMA 476 bool "Enable UART0 TX DMA" 477 depends on BSP_USING_UART0 && RT_SERIAL_USING_DMA 478 479 config BSP_USING_UART0_RX_DMA 480 bool "Enable UART0 RX DMA" 481 depends on BSP_USING_UART0 && RT_SERIAL_USING_DMA 482 483 config BSP_USING_UART1 484 bool "Enable UART1" 485 486 config BSP_USING_UART1_TX_DMA 487 bool "Enable UART1 TX DMA" 488 depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA 489 490 config BSP_USING_UART1_RX_DMA 491 bool "Enable UART1 RX DMA" 492 depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA 493 494 config BSP_USING_UART2 495 bool "Enable UART2" 496 497 config BSP_USING_UART2_TX_DMA 498 bool "Enable UART2 TX DMA" 499 depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA 500 501 config BSP_USING_UART2_RX_DMA 502 bool "Enable UART2 RX DMA" 503 depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA 504 505 config BSP_USING_UART3 506 bool "Enable UART3" 507 508 config BSP_USING_UART3_TX_DMA 509 bool "Enable UART3 TX DMA" 510 depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA 511 512 config BSP_USING_UART3_RX_DMA 513 bool "Enable UART3 RX DMA" 514 depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA 515 516 config BSP_USING_UART4 517 bool "Enable UART4" 518 519 config BSP_USING_UART4_TX_DMA 520 bool "Enable UART4 TX DMA" 521 depends on BSP_USING_UART4 && RT_SERIAL_USING_DMA 522 523 config BSP_USING_UART4_RX_DMA 524 bool "Enable UART4 RX DMA" 525 depends on BSP_USING_UART4 && RT_SERIAL_USING_DMA 526 527 config BSP_USING_UART5 528 bool "Enable UART5" 529 530 config BSP_USING_UART5_TX_DMA 531 bool "Enable UART5 TX DMA" 532 depends on BSP_USING_UART5 && RT_SERIAL_USING_DMA 533 534 config BSP_USING_UART5_RX_DMA 535 bool "Enable UART5 RX DMA" 536 depends on BSP_USING_UART5 && RT_SERIAL_USING_DMA 537 538 config BSP_USING_UART6 539 bool "Enable UART6" 540 541 config BSP_USING_UART6_TX_DMA 542 bool "Enable UART6 TX DMA" 543 depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA 544 545 config BSP_USING_UART6_RX_DMA 546 bool "Enable UART6 RX DMA" 547 depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA 548 549 config BSP_USING_UART7 550 bool "Enable UART7" 551 552 config BSP_USING_UART7_TX_DMA 553 bool "Enable UART7 TX DMA" 554 depends on BSP_USING_UART7 && RT_SERIAL_USING_DMA 555 556 config BSP_USING_UART7_RX_DMA 557 bool "Enable UART7 RX DMA" 558 depends on BSP_USING_UART7 && RT_SERIAL_USING_DMA 559 560 config BSP_USING_UART8 561 bool "Enable UART8" 562 563 config BSP_USING_UART8_TX_DMA 564 bool "Enable UART8 TX DMA" 565 depends on BSP_USING_UART8 && RT_SERIAL_USING_DMA 566 567 config BSP_USING_UART8_RX_DMA 568 bool "Enable UART8 RX DMA" 569 depends on BSP_USING_UART8 && RT_SERIAL_USING_DMA 570 571 config BSP_USING_UART9 572 bool "Enable UART9" 573 574 config BSP_USING_UART9_TX_DMA 575 bool "Enable UART9 TX DMA" 576 depends on BSP_USING_UART9 && RT_SERIAL_USING_DMA 577 578 config BSP_USING_UART9_RX_DMA 579 bool "Enable UART9 RX DMA" 580 depends on BSP_USING_UART9 && RT_SERIAL_USING_DMA 581 582 config BSP_USING_UART10 583 bool "Enable UART10" 584 585 config BSP_USING_UART10_TX_DMA 586 bool "Enable UART10 TX DMA" 587 depends on BSP_USING_UART10 && RT_SERIAL_USING_DMA 588 589 config BSP_USING_UART10_RX_DMA 590 bool "Enable UART10 RX DMA" 591 depends on BSP_USING_UART10 && RT_SERIAL_USING_DMA 592 593 config BSP_USING_UART11 594 bool "Enable UART11" 595 596 config BSP_USING_UART11_TX_DMA 597 bool "Enable UART11 TX DMA" 598 depends on BSP_USING_UART11 && RT_SERIAL_USING_DMA 599 600 config BSP_USING_UART11_RX_DMA 601 bool "Enable UART11 RX DMA" 602 depends on BSP_USING_UART11 && RT_SERIAL_USING_DMA 603 604 config BSP_USING_UART12 605 bool "Enable UART12" 606 607 config BSP_USING_UART12_TX_DMA 608 bool "Enable UART12 TX DMA" 609 depends on BSP_USING_UART12 && RT_SERIAL_USING_DMA 610 611 config BSP_USING_UART12_RX_DMA 612 bool "Enable UART12 RX DMA" 613 depends on BSP_USING_UART12 && RT_SERIAL_USING_DMA 614 615 config BSP_USING_UART13 616 bool "Enable UART13" 617 618 config BSP_USING_UART13_TX_DMA 619 bool "Enable UART13 TX DMA" 620 depends on BSP_USING_UART13 && RT_SERIAL_USING_DMA 621 622 config BSP_USING_UART13_RX_DMA 623 bool "Enable UART13 RX DMA" 624 depends on BSP_USING_UART13 && RT_SERIAL_USING_DMA 625 626 config BSP_USING_UART14 627 bool "Enable UART14" 628 629 config BSP_USING_UART14_TX_DMA 630 bool "Enable UART14 TX DMA" 631 depends on BSP_USING_UART14 && RT_SERIAL_USING_DMA 632 633 config BSP_USING_UART14_RX_DMA 634 bool "Enable UART14 RX DMA" 635 depends on BSP_USING_UART14 && RT_SERIAL_USING_DMA 636 637 config BSP_USING_UART15 638 bool "Enable UART15" 639 640 config BSP_USING_UART15_TX_DMA 641 bool "Enable UART15 TX DMA" 642 depends on BSP_USING_UART15 && RT_SERIAL_USING_DMA 643 644 config BSP_USING_UART15_RX_DMA 645 bool "Enable UART15 RX DMA" 646 depends on BSP_USING_UART15 && RT_SERIAL_USING_DMA 647 648 config BSP_USING_UART16 649 bool "Enable UART16" 650 651 config BSP_USING_UART16_TX_DMA 652 bool "Enable UART16 TX DMA" 653 depends on BSP_USING_UART16 && RT_SERIAL_USING_DMA 654 655 config BSP_USING_UART16_RX_DMA 656 bool "Enable UART16 RX DMA" 657 depends on BSP_USING_UART16 && RT_SERIAL_USING_DMA 658 659 endif 660 661 menuconfig BSP_USING_I2C 662 bool "Enable I2C Serial Interface Controller(I2C)" 663 select RT_USING_I2C 664 665 if BSP_USING_I2C 666 config BSP_USING_I2C0 667 bool "Enable I2C0" 668 669 config BSP_USING_I2C1 670 bool "Enable I2C1" 671 672 config BSP_USING_I2C2 673 bool "Enable I2C2" 674 675 config BSP_USING_I2C3 676 bool "Enable I2C3" 677 678 config BSP_USING_I2C4 679 bool "Enable I2C4" 680 681 config BSP_USING_I2C5 682 bool "Enable I2C5" 683 684 endif 685 686 menuconfig BSP_USING_SDH 687 bool "Enable Secure Digital Host Controller(SDH)" 688 select RT_USING_DFS 689 select RT_USING_SDIO 690 depends on !USE_MA35D1_SUBM 691 692 if BSP_USING_SDH 693 config BSP_USING_SDH0 694 bool "Enable SDH0" 695 696 config BSP_USING_SDH1 697 bool "Enable SDH1" 698 endif 699 700 menuconfig BSP_USING_CANFD 701 bool "Enable CAN with Flexible Data-rate(CAN FD)" 702 select RT_USING_CAN 703 704 if BSP_USING_CANFD 705 config BSP_USING_CANFD0 706 bool "Enable CANFD0" 707 708 config BSP_USING_CANFD1 709 bool "Enable CANFD1" 710 711 config BSP_USING_CANFD2 712 bool "Enable CANFD2" 713 714 config BSP_USING_CANFD3 715 bool "Enable CANFD3" 716 endif 717 718 menuconfig BSP_USING_EPWM 719 bool "Enable EPWM Generator and Capture Timer(EPWM)" 720 721 if BSP_USING_EPWM 722 723 config BSP_USING_EPWM0 724 bool "Enable EPWM0" 725 depends on BSP_USING_EPWM && !USE_MA35D1_SUBM 726 727 config BSP_USING_EPWM_CAPTURE 728 bool 729 730 if BSP_USING_EPWM0 731 choice 732 prompt "Select EPWM0 function mode" 733 config BSP_USING_EPWM0_PWM 734 select RT_USING_PWM 735 bool "EPWM0 PWM" 736 help 737 Choose this option if you need PWM function mode. 738 739 config BSP_USING_EPWM0_CAPTURE 740 select RT_USING_INPUT_CAPTURE 741 select BSP_USING_EPWM_CAPTURE 742 bool "EPWM0 CAPTURE" 743 help 744 Choose this option if you need PWM capture function mode. 745 endchoice 746 endif 747 748 config BSP_USING_EPWM1 749 bool "Enable EPWM1" 750 depends on BSP_USING_EPWM && !USE_MA35D1_SUBM 751 752 if BSP_USING_EPWM1 753 choice 754 prompt "Select EPWM1 function mode" 755 config BSP_USING_EPWM1_PWM 756 select RT_USING_PWM 757 bool "EPWM1 PWM" 758 help 759 Choose this option if you need PWM function mode. 760 761 config BSP_USING_EPWM1_CAPTURE 762 select RT_USING_INPUT_CAPTURE 763 select BSP_USING_EPWM_CAPTURE 764 bool "EPWM1 CAPTURE" 765 help 766 Choose this option if you need PWM capture function mode. 767 endchoice 768 endif 769 770 config BSP_USING_EPWM2 771 bool "Enable EPWM2" 772 depends on BSP_USING_EPWM && !USE_MA35D1_SUBM 773 774 if BSP_USING_EPWM2 775 choice 776 prompt "Select EPWM2 function mode" 777 config BSP_USING_EPWM2_PWM 778 select RT_USING_PWM 779 bool "EPWM2 PWM" 780 help 781 Choose this option if you need PWM function mode. 782 783 config BSP_USING_EPWM2_CAPTURE 784 select RT_USING_INPUT_CAPTURE 785 select BSP_USING_EPWM_CAPTURE 786 bool "EPWM2 CAPTURE" 787 help 788 Choose this option if you need PWM capture function mode. 789 endchoice 790 endif 791 792 endif 793 794 menuconfig BSP_USING_SPI 795 bool "Enable Serial Peripheral Interface(SPI)" 796 select RT_USING_SPI 797 798 if BSP_USING_SPI 799 config BSP_USING_SPI_PDMA 800 bool 801 default n 802 803 config BSP_USING_SPII2S 804 bool 805 806 choice 807 prompt "Select SPI0 function mode" 808 config BSP_USING_SPI0_NONE 809 bool "NONE" 810 help 811 Choose this option if you need not SPI0. 812 813 config BSP_USING_SPI0 814 bool "Enable SPI0" 815 help 816 Choose this option if you need SPI function mode. 817 818 config BSP_USING_SPII2S0 819 select RT_USING_AUDIO 820 select BSP_USING_SPII2S 821 bool "Enable SPII2S0" 822 help 823 Choose this option if you need SPII2S function mode. 824 825 endchoice 826 827 if BSP_USING_SPI0 828 config BSP_USING_SPI0_PDMA 829 bool "Enable PDMA for SPI0" 830 select BSP_USING_SPI_PDMA 831 depends on BSP_USING_SPI0 832 endif 833 834 choice 835 prompt "Select SPI1 function mode" 836 config BSP_USING_SPI1_NONE 837 bool "NONE" 838 help 839 Choose this option if you need not SPI1. 840 841 config BSP_USING_SPI1 842 bool "Enable SPI1" 843 help 844 Choose this option if you need SPI function mode. 845 846 config BSP_USING_SPII2S1 847 select RT_USING_AUDIO 848 select BSP_USING_SPII2S 849 bool "Enable SPII2S1" 850 help 851 Choose this option if you need SPII2S function mode. 852 853 endchoice 854 855 if BSP_USING_SPI1 856 config BSP_USING_SPI1_PDMA 857 bool "Enable PDMA for SPI1" 858 select BSP_USING_SPI_PDMA 859 depends on BSP_USING_SPI1 860 endif 861 862 choice 863 prompt "Select SPI2 function mode" 864 config BSP_USING_SPI2_NONE 865 bool "NONE" 866 help 867 Choose this option if you need not SPI2. 868 869 config BSP_USING_SPI2 870 bool "Enable SPI2" 871 help 872 Choose this option if you need SPI function mode. 873 874 config BSP_USING_SPII2S2 875 select RT_USING_AUDIO 876 select BSP_USING_SPII2S 877 bool "Enable SPII2S2" 878 help 879 Choose this option if you need SPII2S function mode. 880 881 endchoice 882 883 if BSP_USING_SPI2 884 config BSP_USING_SPI1_PDMA 885 bool "Enable PDMA for SPI2" 886 select BSP_USING_SPI_PDMA 887 depends on BSP_USING_SPI2 888 endif 889 890 choice 891 prompt "Select SPI3 function mode" 892 config BSP_USING_SPI3_NONE 893 bool "NONE" 894 help 895 Choose this option if you need not SPI3. 896 897 config BSP_USING_SPI3 898 bool "Enable SPI3" 899 help 900 Choose this option if you need SPI function mode. 901 902 config BSP_USING_SPII2S3 903 select RT_USING_AUDIO 904 select BSP_USING_SPII2S 905 bool "Enable SPII2S3" 906 help 907 Choose this option if you need SPII2S function mode. 908 909 endchoice 910 911 if BSP_USING_SPI3 912 config BSP_USING_SPI3_PDMA 913 bool "Enable PDMA for SPI3" 914 select BSP_USING_SPI_PDMA 915 depends on BSP_USING_SPI3 916 endif 917 918 endif 919 920 menuconfig BSP_USING_I2S 921 bool "Enable I2S Controller(I2S)" 922 select RT_USING_AUDIO 923 924 if BSP_USING_I2S 925 config BSP_USING_I2S0 926 bool "Enable I2S0" 927 928 config BSP_USING_I2S1 929 bool "Enable I2S1" 930 931 config NU_I2S_DMA_FIFO_SIZE 932 int "DMA Buffer size of capture and playback" 933 range 2048 4096 934 default 2048 935 endif 936 937 menuconfig BSP_USING_QSPI 938 bool "Enable Quad Serial Peripheral Interface(QSPI)" 939 select RT_USING_SPI 940 select RT_USING_QSPI 941 select BSP_USING_SPI 942 943 if BSP_USING_QSPI 944 945 config BSP_USING_QSPI_PDMA 946 bool 947 select BSP_USING_SPI_PDMA 948 default n 949 950 config BSP_USING_QSPI0 951 bool "Enable QSPI0" 952 953 config BSP_USING_QSPI0_PDMA 954 bool "Enable PDMA for QSPI0" 955 select BSP_USING_QSPI_PDMA 956 depends on BSP_USING_QSPI0 957 958 config BSP_USING_QSPI1 959 bool "Enable QSPI1" 960 961 config BSP_USING_QSPI1_PDMA 962 bool "Enable PDMA for QSPI1" 963 select BSP_USING_QSPI_PDMA 964 depends on BSP_USING_QSPI1 965 966 endif 967 968 menuconfig BSP_USING_SCUART 969 bool "Enable Smart Card Host Interface - UART(SCUART)" 970 971 if BSP_USING_SCUART 972 config BSP_USING_SCUART0 973 bool "Enable SCUART0" 974 975 config BSP_USING_SCUART1 976 bool "Enable SCUART1" 977 978 endif 979 980 menuconfig BSP_USING_ECAP 981 bool "Enable Enhanced Input Capture Timer(ECAP)" 982 select RT_USING_INPUT_CAPTURE 983 984 if BSP_USING_ECAP 985 986 config BSP_USING_ECAP0 987 select RT_USING_INPUT_CAPTURE 988 bool "Enable ECAP0" 989 help 990 Choose this option if you need ECAP0. 991 992 config BSP_USING_ECAP1 993 select RT_USING_INPUT_CAPTURE 994 bool "Enable ECAP1" 995 help 996 Choose this option if you need ECAP1. 997 998 config BSP_USING_ECAP2 999 select RT_USING_INPUT_CAPTURE 1000 bool "Enable ECAP2" 1001 help 1002 Choose this option if you need ECAP2. 1003 1004 endif 1005 1006 menuconfig BSP_USING_QEI 1007 bool "Enable Quadrature Encoder Interface(QEI)" 1008 1009 if BSP_USING_QEI 1010 config BSP_USING_QEI0 1011 bool "Enable QEI0" 1012 select RT_USING_PULSE_ENCODER 1013 1014 config BSP_USING_QEI1 1015 bool "Enable QEI1" 1016 select RT_USING_PULSE_ENCODER 1017 1018 config BSP_USING_QEI2 1019 bool "Enable QEI2" 1020 select RT_USING_PULSE_ENCODER 1021 1022 endif 1023 1024 menuconfig BSP_USING_SOFT_I2C 1025 bool "Enable SOFT I2C" 1026 1027 if BSP_USING_SOFT_I2C 1028 config BSP_USING_SOFT_I2C0 1029 bool "Enable SOFT I2C0" 1030 select RT_USING_I2C 1031 select RT_USING_I2C_BITOPS 1032 default n 1033 1034 if BSP_USING_SOFT_I2C0 1035 config BSP_SOFT_I2C0_SCL_PIN 1036 hex "Specify the pin index of SCL of SOFT I2C0" 1037 range 0 0xDF 1038 default 0x19 1039 1040 config BSP_SOFT_I2C0_SDA_PIN 1041 hex "Specify the pin index of SDA of SOFT I2C0" 1042 range 0 0xDF 1043 default 0x18 1044 endif 1045 1046 config BSP_USING_SOFT_I2C1 1047 bool "Enable SOFT I2C1" 1048 select RT_USING_I2C 1049 select RT_USING_I2C_BITOPS 1050 default n 1051 1052 if BSP_USING_SOFT_I2C1 1053 config BSP_SOFT_I2C1_SCL_PIN 1054 hex "Specify the pin index of SCL of SOFT I2C1" 1055 range 0 0xDF 1056 default 0x0B 1057 1058 config BSP_SOFT_I2C1_SDA_PIN 1059 hex "Specify the pin index of SDA of SOFT I2C1" 1060 range 0 0xDF 1061 default 0x0A 1062 endif 1063 endif 1064 1065 config BSP_USING_DISP 1066 bool "Enable Display" 1067 depends on !USE_MA35D1_SUBM 1068 default y 1069 1070 if BSP_USING_DISP 1071 choice 1072 prompt "Select Supported LCM panel" 1073 default LCM_USING_FW070TFT_WSVGA 1074 config LCM_USING_FW070TFT_WSVGA 1075 bool "eDispLcd_1024x600(1024x600-RGB888)" 1076 1077 config LCM_USING_FW070TFT_WVGA 1078 bool "eDispLcd_800x480(800x480-RGB888)" 1079 1080 config LCM_USING_FHD 1081 bool "eDispLcd_1920x1080(1920x1080-RGB888)" 1082 endchoice 1083 1084 config DISP_USING_LCD_IDX 1085 int 1086 default 0 if LCM_USING_FW070TFT_WSVGA 1087 default 1 if LCM_USING_FW070TFT_WVGA 1088 default 2 if LCM_USING_FHD 1089 1090 config BSP_LCD_BPP 1091 int 1092 default 32 if LCM_USING_FW070TFT_WSVGA 1093 default 32 if LCM_USING_FW070TFT_WVGA 1094 default 32 if LCM_USING_FHD 1095 1096 config BSP_LCD_WIDTH 1097 int 1098 default 1024 if LCM_USING_FW070TFT_WSVGA 1099 default 800 if LCM_USING_FW070TFT_WVGA 1100 default 1920 if LCM_USING_FHD 1101 1102 config BSP_LCD_HEIGHT 1103 int 1104 default 600 if LCM_USING_FW070TFT_WSVGA 1105 default 480 if LCM_USING_FW070TFT_WVGA 1106 default 1080 if LCM_USING_FHD 1107 1108 config DISP_USING_OVERLAY 1109 bool "Enable Overlay layer" 1110 default n 1111 endif 1112 1113 config BSP_USING_WDT 1114 bool "Enable Watchdog Timer(WDT)" 1115 select RT_USING_WDT 1116 default y 1117 1118 if BSP_USING_WDT 1119 config BSP_USING_WDT0 1120 bool "Enable WDT0" 1121 select RT_USING_WATCHDOG 1122 depends on !USE_MA35D1_SUBM 1123 default n 1124 1125 config BSP_USING_WDT1 1126 bool "Enable WDT1" 1127 select RT_USING_WATCHDOG 1128 depends on !USE_MA35D1_SUBM 1129 default n 1130 1131 config BSP_USING_WDT2 1132 bool "Enable WDT2" 1133 select RT_USING_WATCHDOG 1134 default n 1135 endif 1136 1137 config BSP_USING_HWSEM 1138 bool "Enable Hardware semaphore(HWSEM)" 1139 default y 1140 1141 if BSP_USING_HWSEM 1142 config BSP_USING_HWSEM0 1143 bool "Enable HWSEM0" 1144 default y 1145 endif 1146 1147 config BSP_USING_WHC 1148 bool "Enable Wormhole(WHC)" 1149 default y 1150 1151 if BSP_USING_WHC 1152 config BSP_USING_WHC0 1153 bool "Enable WHC0" 1154 default y 1155 1156 config BSP_USING_WHC1 1157 bool "Enable WHC1" 1158 depends on !USE_MA35D1_SUBM 1159 default n 1160 endif 1161 1162 config BSP_USING_NFI 1163 bool "Enable Raw NAND flash Interface(NFI)" 1164 depends on !USE_MA35D1_SUBM 1165 default y 1166 1167 config BSP_USING_EBI 1168 bool "Enable External Bus Interface(EBI)" 1169 default n 1170 1171 config BSP_USING_USBH 1172 bool "Enable USB Host Controller(USBH)" 1173 select RT_USING_USB_HOST 1174 select RT_USBH_MSTORAGE 1175 depends on !USE_MA35D1_SUBM 1176 1177 if BSP_USING_USBH 1178 config BSP_USING_HSUSBH0 1179 bool "Enable HSUSBH0" 1180 default y 1181 1182 config BSP_USING_HSUSBH1 1183 bool "Enable HSUSBH1" 1184 default y 1185 endif 1186