Kconfig 22.3 KB
Newer Older
B
bernard 已提交
1 2
menu "Device Drivers"

B
bernard 已提交
3 4 5 6
config RT_USING_DEVICE_IPC
    bool "Using device drivers IPC"
    default y

7 8 9 10
if RT_USING_DEVICE_IPC
    config RT_PIPE_BUFSZ
        int "Set pipe buffer size"
        default 512
11 12
    
    config RT_USING_SYSTEM_WORKQUEUE
13 14
        bool "Using system default workqueue"
        default n
15 16

    if RT_USING_SYSTEM_WORKQUEUE
17 18 19
        config RT_SYSTEM_WORKQUEUE_STACKSIZE
            int "The stack size for system workqueue thread"
            default 2048
20

21 22 23
    config RT_SYSTEM_WORKQUEUE_PRIORITY
            int "The priority level of system workqueue thread"
            default 23
24
    endif
25 26
endif

B
bernard 已提交
27
config RT_USING_SERIAL
B
bernard 已提交
28
    bool "Using serial device drivers"
杭州_燕十三's avatar
杭州_燕十三 已提交
29
    select RT_USING_DEVICE_IPC
B
BernardXiong 已提交
30
    select RT_USING_DEVICE
B
bernard 已提交
31
    default y
B
bernard 已提交
32

33 34 35 36
if RT_USING_SERIAL
    config RT_SERIAL_USING_DMA
        bool "Enable serial DMA mode"
        default y
37 38

    config RT_SERIAL_RB_BUFSZ
B
Bernard Xiong 已提交
39 40
        int "Set RX buffer size"
        default 64
41 42

endif
43

B
bernard 已提交
44
config RT_USING_CAN
B
bernard 已提交
45 46
    bool "Using CAN device drivers"
    default n
B
bernard 已提交
47

48 49 50
if RT_USING_CAN
    config RT_CAN_USING_HDR
        bool "Enable CAN hardware filter"
51
        default n
52 53
endif

B
bernard 已提交
54
config RT_USING_HWTIMER
B
bernard 已提交
55 56
    bool "Using hardware timer device drivers"
    default n
B
bernard 已提交
57

B
Bernard Xiong 已提交
58 59 60 61 62 63
config RT_USING_CPUTIME
    bool "Enable CPU time for high resolution clock counter"
    default n
    help
        When enable this option, the BSP should provide a rt_clock_cputime_ops
        for CPU time by:
B
BernardXiong 已提交
64 65
        const static struct rt_clock_cputime_ops _ops = {...};
        clock_cpu_setops(&_ops);
B
Bernard Xiong 已提交
66

B
BernardXiong 已提交
67
        Then user can use high resolution clock counter with:
B
Bernard Xiong 已提交
68

B
BernardXiong 已提交
69 70 71 72 73 74
        ts1 = clock_cpu_gettime();
        ts2 = clock_cpu_gettime();

        /* and get the ms of delta tick with API: */
        ms_tick = clock_cpu_millisecond(t2 - t1);
        us_tick = clock_cpu_microsecond(t2 - t1);
B
Bernard Xiong 已提交
75

L
liang yongxiang 已提交
76
if RT_USING_CPUTIME
B
Bernard Xiong 已提交
77 78 79 80 81
    config RT_USING_CPUTIME_CORTEXM
        bool "Use DWT for CPU time"
        default y
        depends on ARCH_ARM_CORTEX_M3 || ARCH_ARM_CORTEX_M4 || ARCH_ARM_CORTEX_M7
        help
L
liang yongxiang 已提交
82
            Some Cortex-M3/4/7 MCU has Data Watchpoint and Trace Register, use
B
Bernard Xiong 已提交
83 84 85
            the cycle counter in DWT for CPU time.
endif

B
bernard 已提交
86
config RT_USING_I2C
B
bernard 已提交
87 88
    bool "Using I2C device drivers"
    default n
B
bernard 已提交
89

S
SummerGift 已提交
90 91
if RT_USING_I2C
    config RT_USING_I2C_BITOPS
B
bernard 已提交
92
        bool "Use GPIO to simulate I2C"
S
SummerGift 已提交
93 94
        default y
endif
B
bernard 已提交
95 96

config RT_USING_PIN
B
bernard 已提交
97 98
    bool "Using generic GPIO device drivers"
    default y
B
bernard 已提交
99

C
chenchaoqun@rt-thread.com 已提交
100 101 102 103
config RT_USING_ADC
    bool "Using ADC device drivers"
    default n

104 105 106 107
config RT_USING_PWM
    bool "Using PWM device drivers"
    default n

B
bernard 已提交
108
config RT_USING_MTD_NOR
B
bernard 已提交
109 110
    bool "Using MTD Nor Flash device drivers"
    default n
B
bernard 已提交
111 112

config RT_USING_MTD_NAND
B
bernard 已提交
113 114
    bool "Using MTD Nand Flash device drivers"
    default n
B
bernard 已提交
115 116 117 118 119 120

    if RT_USING_MTD_NAND
    config RT_MTD_NAND_DEBUG
        bool "Enable MTD Nand operations debug information"
        default n
    endif
B
bernard 已提交
121

122 123 124 125
config RT_USING_PM
    bool "Using Power Management device drivers"
    default n

B
bernard 已提交
126
config RT_USING_RTC
B
bernard 已提交
127
    bool "Using RTC device drivers"
128
    select RT_USING_LIBC
B
bernard 已提交
129
    default n
B
bernard 已提交
130

131
    if RT_USING_RTC
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152
        config RT_USING_ALARM
            bool "Using RTC alarm"
            default n

        config RT_USING_SOFT_RTC
            bool "Using software simulation RTC device"
            default n

        config RTC_SYNC_USING_NTP
            bool "Using NTP auto sync RTC time"
            depends on PKG_NETUTILS_NTP
            default y

            if RTC_SYNC_USING_NTP
                config RTC_NTP_FIRST_SYNC_DELAY
                    int "NTP first sync delay time(second) for network connect"
                    default 30
                config RTC_NTP_SYNC_PERIOD
                    int "NTP auto sync period(second)"
                    default 3600
           endif
153 154
    endif

B
bernard 已提交
155
config RT_USING_SDIO
B
bernard 已提交
156 157
    bool "Using SD/MMC device drivers"
    default n
B
bernard 已提交
158

159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178
    if RT_USING_SDIO
        config RT_SDIO_STACK_SIZE
            int "The stack size for sdio irq thread"
            default 512

        config RT_SDIO_THREAD_PRIORITY
            int "The priority level value of sdio irq thread"
            default 15

        config RT_MMCSD_STACK_SIZE
            int "The stack size for mmcsd thread"
            default 1024

        config RT_MMCSD_THREAD_PREORITY
            int "The priority level value of mmcsd thread"
            default 22

        config RT_MMCSD_MAX_PARTITION
            int "mmcsd max partition"
            default 16
179 180 181
        config RT_SDIO_DEBUG
            bool "Enable SDIO debug log output"
        default n
182 183
    endif

B
bernard 已提交
184
config RT_USING_SPI
B
bernard 已提交
185 186
    bool "Using SPI Bus/Device device drivers"
    default n
B
bernard 已提交
187

188 189 190 191 192
    if RT_USING_SPI  
        config RT_USING_QSPI
            bool "Enable QSPI mode"
            default n

193 194 195 196 197
        config RT_USING_SPI_MSD
            bool "Using SD/TF card driver with spi"
            select RT_USING_DFS
            default n

armink_ztl's avatar
armink_ztl 已提交
198 199 200
        config RT_USING_SFUD
            bool "Using Serial Flash Universal Driver"
            default n
201 202 203
            help
                An using JEDEC's SFDP standard serial (SPI) flash universal driver library

L
liang yongxiang 已提交
204
            if RT_USING_SFUD
armink_ztl's avatar
armink_ztl 已提交
205 206 207
                config RT_SFUD_USING_SFDP
                bool "Using auto probe flash JEDEC SFDP parameter"
                default y
L
liang yongxiang 已提交
208

armink_ztl's avatar
armink_ztl 已提交
209 210 211
                config RT_SFUD_USING_FLASH_INFO_TABLE
                bool "Using defined supported flash chip information table"
                default y
212 213 214
                
                config RT_SFUD_USING_QSPI
                bool "Using QSPI mode support"
215
                select RT_USING_QSPI
216
                default n
L
liang yongxiang 已提交
217

218
                config RT_DEBUG_SFUD
armink_ztl's avatar
armink_ztl 已提交
219 220 221
                bool "Show more SFUD debug information"
                default n
            endif
L
liang yongxiang 已提交
222

B
bernard 已提交
223 224 225 226
        config RT_USING_ENC28J60
            bool "Using ENC28J60 SPI Ethernet network interface"
            select RT_USING_LWIP
            default n
B
bernard 已提交
227

B
bernard 已提交
228 229 230 231 232
        config RT_USING_SPI_WIFI
            bool "Using RW009/007 SPI Wi-Fi wireless interface"
            select RT_USING_LWIP
            default n
    endif
B
bernard 已提交
233 234

config RT_USING_WDT
B
bernard 已提交
235 236
    bool "Using Watch Dog device drivers"
    default n
B
bernard 已提交
237

238 239 240
config RT_USING_AUDIO
    bool "Using Audio device drivers"
    default n
241 242 243 244 245 246 247 248 249 250 251 252 253 254
    
    if RT_USING_AUDIO
        config RT_AUDIO_REPLAY_MP_BLOCK_SIZE
            int "Replay memmory pool block size"
            default 4096

        config RT_AUDIO_REPLAY_MP_BLOCK_COUNT
            int "Replay memmory pool block count"
            default 2

        config RT_AUDIO_RECORD_PIPE_SIZE
            int "Record pipe size"
            default 2048
    endif
255

G
guozhanxin 已提交
256 257 258 259 260 261
config RT_USING_SENSOR
    bool "Using Sensor device drivers"
    select RT_USING_PIN
    default n

if RT_USING_SENSOR
G
guozhanxin 已提交
262 263
    config RT_USING_SENSOR_CMD
        bool "Using Sensor cmd"
G
guozhanxin 已提交
264 265 266
        default y
endif

T
tyustli 已提交
267 268 269 270
config RT_USING_TOUCH
    bool "Using Touch device drivers"
    default n

271 272
menuconfig RT_USING_HWCRYPTO
        bool "Using Hardware Crypto drivers"
273 274 275 276 277 278 279 280 281 282 283
        default n

    if RT_USING_HWCRYPTO
        config RT_HWCRYPTO_DEFAULT_NAME
            string "Hardware crypto device name"
            default "hwcryto"

        config RT_HWCRYPTO_IV_MAX_SIZE
            int "IV max size"
            default "16"

284
        config RT_HWCRYPTO_KEYBIT_MAX_SIZE
285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436
            int "Key max bit length"
            default 256

        config RT_HWCRYPTO_USING_GCM
            bool "Using Hardware GCM"
            default n

        config RT_HWCRYPTO_USING_AES
            bool "Using Hardware AES"
            default n

        if RT_HWCRYPTO_USING_AES
            config RT_HWCRYPTO_USING_AES_ECB
                bool "Using Hardware AES ECB mode"
                default y

            config RT_HWCRYPTO_USING_AES_CBC
                bool "Using Hardware AES CBC mode"
                default n

            config RT_HWCRYPTO_USING_AES_CFB
                bool "Using Hardware AES CFB mode"
                default n

            config RT_HWCRYPTO_USING_AES_CTR
                bool "Using Hardware AES CTR mode"
                default n

            config RT_HWCRYPTO_USING_AES_OFB
                bool "Using Hardware AES OFB mode"
                default n
        endif

        config RT_HWCRYPTO_USING_DES
            bool "Using Hardware DES"
            default n

        if RT_HWCRYPTO_USING_DES
            config RT_HWCRYPTO_USING_DES_ECB
                bool "Using Hardware DES ECB mode"
                default y

            config RT_HWCRYPTO_USING_DES_CBC
                bool "Using Hardware DES CBC mode"
                default n
        endif

        config RT_HWCRYPTO_USING_3DES
            bool "Using Hardware 3DES"
            default n

        if RT_HWCRYPTO_USING_3DES
            config RT_HWCRYPTO_USING_3DES_ECB
                bool "Using Hardware 3DES ECB mode"
                default y

            config RT_HWCRYPTO_USING_3DES_CBC
                bool "Using Hardware 3DES CBC mode"
                default n
        endif

        config RT_HWCRYPTO_USING_RC4
            bool "Using Hardware RC4"
            default n

        config RT_HWCRYPTO_USING_MD5
            bool "Using Hardware MD5"
            default n

        config RT_HWCRYPTO_USING_SHA1
            bool "Using Hardware SHA1"
            default n

        config RT_HWCRYPTO_USING_SHA2
            bool "Using Hardware SHA2"
            default n

        if RT_HWCRYPTO_USING_SHA2
            config RT_HWCRYPTO_USING_SHA2_224
                bool "Using Hardware SHA2_224 mode"
                default n

            config RT_HWCRYPTO_USING_SHA2_256
                bool "Using Hardware SHA2_256 mode"
                default y

            config RT_HWCRYPTO_USING_SHA2_384
                bool "Using Hardware SHA2_384 mode"
                default n

            config RT_HWCRYPTO_USING_SHA2_512
                bool "Using Hardware SHA2_512 mode"
                default n
        endif

        config RT_HWCRYPTO_USING_RNG
            bool "Using Hardware RNG"
            default n

        config RT_HWCRYPTO_USING_CRC
            bool "Using Hardware CRC"
            default n

        if RT_HWCRYPTO_USING_CRC
            config RT_HWCRYPTO_USING_CRC_07
                bool "Using Hardware CRC-8 0x07 polynomial"
                default n

            config RT_HWCRYPTO_USING_CRC_8005
                bool "Using Hardware CRC-16 0x8005 polynomial"
                default n

            config RT_HWCRYPTO_USING_CRC_1021
                bool "Using Hardware CRC-16 0x1021 polynomial"
                default n

            config RT_HWCRYPTO_USING_CRC_3D65
                bool "Using Hardware CRC-16 0x3D65 polynomial"
                default n

            config RT_HWCRYPTO_USING_CRC_04C11DB7
                bool "Using Hardware CRC-32 0x04C11DB7 polynomial"
                default n
        endif

        config RT_HWCRYPTO_USING_BIGNUM
            bool "Using Hardware bignum"
            default n

        if RT_HWCRYPTO_USING_BIGNUM
            config RT_HWCRYPTO_USING_BIGNUM_EXPTMOD
                bool "Using Hardware bignum expt_mod operation"
                default y

            config RT_HWCRYPTO_USING_BIGNUM_MULMOD
                bool "Using Hardware bignum mul_mod operation"
                default y

            config RT_HWCRYPTO_USING_BIGNUM_MUL
                bool "Using Hardware bignum mul operation"
                default n

            config RT_HWCRYPTO_USING_BIGNUM_ADD
                bool "Using Hardware bignum add operation"
                default n

            config RT_HWCRYPTO_USING_BIGNUM_SUB
                bool "Using Hardware bignum sub operation"
                default n
        endif
    endif

437 438 439 440
config RT_USING_ENCODER
    bool "Using ENCODER device drivers"
    default n

441 442 443
menuconfig RT_USING_WIFI
    bool "Using Wi-Fi framework"
    default n
B
bernard 已提交
444

445
    if RT_USING_WIFI
446
        config RT_WLAN_DEVICE_STA_NAME
447
            string "The device name for station"
448 449 450
            default "wlan0"

        config RT_WLAN_DEVICE_AP_NAME
451
            string "The device name for ap"
452 453 454
            default "wlan1"

        config RT_WLAN_SSID_MAX_LENGTH
455
            int "SSID maximum length"
456 457 458
            default 32

        config RT_WLAN_PASSWORD_MAX_LENGTH
459
            int "Password maximum length"
460 461
            default 32

462 463 464 465 466 467
        config RT_WLAN_DEV_EVENT_NUM
            int "Driver events maxcount"
            default 2

        config RT_WLAN_MANAGE_ENABLE
            bool "Connection management Enable"
468
            default y
469

470 471 472 473
        if RT_WLAN_MANAGE_ENABLE
            config RT_WLAN_SCAN_WAIT_MS
                int "Set scan timeout time(ms)"
                default 10000
474

475 476 477
            config RT_WLAN_CONNECT_WAIT_MS
                int "Set connect timeout time(ms)"
                default 10000
478

479 480 481
            config RT_WLAN_SCAN_SORT
                bool "Automatic sorting of scan results"
                default y
482

483 484 485
            config RT_WLAN_MSH_CMD_ENABLE
                bool "MSH command Enable"
                default y
486

487 488 489 490 491
            config RT_WLAN_AUTO_CONNECT_ENABLE
                bool "Auto connect Enable"
                select RT_WLAN_CFG_ENABLE
                select RT_WLAN_WORK_THREAD_ENABLE
                default y
492 493 494 495 496 497

            if RT_WLAN_AUTO_CONNECT_ENABLE
                config AUTO_CONNECTION_PERIOD_MS
                    int "Auto connect period(ms)"
                    default 2000
            endif
498
        endif
499

500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559
        config RT_WLAN_CFG_ENABLE
            bool "WiFi information automatically saved Enable"
            default y

        if RT_WLAN_CFG_ENABLE
            config RT_WLAN_CFG_INFO_MAX
                int "Maximum number of WiFi information automatically saved"
                default 3
        endif

        config RT_WLAN_PROT_ENABLE
            bool "Transport protocol manage Enable"
            default y

        if RT_WLAN_PROT_ENABLE
            config RT_WLAN_PROT_NAME_LEN
                int "Transport protocol name length"
                default 8

            config RT_WLAN_PROT_MAX
                int "Transport protocol maxcount"
                default 2

            config RT_WLAN_DEFAULT_PROT
                string "Default transport protocol"
                default "lwip"

            config RT_WLAN_PROT_LWIP_ENABLE
                bool "LWIP transport protocol Enable"
                select RT_USING_LWIP
                default y

            if RT_WLAN_PROT_LWIP_ENABLE
                config RT_WLAN_PROT_LWIP_NAME
                    string "LWIP transport protocol name"
                    default "lwip"

                config RT_WLAN_PROT_LWIP_PBUF_FORCE
                    bool "Forced use of PBUF transmission"
                    default n
            endif
        endif

        config RT_WLAN_WORK_THREAD_ENABLE
            bool "WLAN work queue thread Enable"
            default y

        if RT_WLAN_WORK_THREAD_ENABLE
            config RT_WLAN_WORKQUEUE_THREAD_NAME
                string "WLAN work queue thread name"
                default "wlan"

            config RT_WLAN_WORKQUEUE_THREAD_SIZE
                int "WLAN work queue thread size"
                default 2048

            config RT_WLAN_WORKQUEUE_THREAD_PRIO
                int "WLAN work queue thread priority"
                default 15
        endif
560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589

        menuconfig RT_WLAN_DEBUG
            bool "Enable WLAN Debugging Options"
            default n

        if RT_WLAN_DEBUG
            config RT_WLAN_CMD_DEBUG
                bool "Enable Debugging of wlan_cmd.c"
                default n

            config RT_WLAN_MGNT_DEBUG
                bool "Enable Debugging of wlan_mgnt.c"
                default n

            config RT_WLAN_DEV_DEBUG
                bool "Enable Debugging of wlan_dev.c"
                default n

            config RT_WLAN_PROT_DEBUG
                bool "Enable Debugging of wlan_prot.c"
                default n

            config RT_WLAN_CFG_DEBUG
                bool "Enable Debugging of wlan_cfg.c"
                default n

            config RT_WLAN_LWIP_DEBUG
                bool "Enable Debugging of wlan_lwip.c"
                default n
        endif
590
    endif
591

592 593 594 595
menu "Using USB"
    config RT_USING_USB_HOST
        bool "Using USB host"
        default n
B
bernard 已提交
596

597
        if RT_USING_USB_HOST
598 599
            config RT_USBH_MSTORAGE
                bool "Enable Udisk Drivers"
600
                default n
601 602 603 604 605
                if RT_USBH_MSTORAGE
                    config UDISK_MOUNTPOINT
                    string "Udisk mount dir"
                    default "/"
                endif
606 607 608 609
        endif
    config RT_USING_USB_DEVICE
        bool "Using USB device"
        default n
lymzzyh's avatar
lymzzyh 已提交
610 611 612 613 614
        if RT_USING_USB_DEVICE || RT_USING_USB_HOST
            config RT_USBD_THREAD_STACK_SZ
                int "usb thread stack size"
                default 4096
        endif
615
        if RT_USING_USB_DEVICE
616
            config USB_VENDOR_ID
617 618
                hex "USB Vendor ID"
                default 0x0FFE
619
            config USB_PRODUCT_ID
620 621
                hex "USB Product ID"
                default 0x0001
L
liang yongxiang 已提交
622

623 624 625 626 627
            config RT_USB_DEVICE_COMPOSITE
                bool "Enable composite device"
                default n
                choice
                    prompt "Device type"
628
                    default _RT_USB_DEVICE_NONE
629
                    depends on !RT_USB_DEVICE_COMPOSITE
630 631 632
                    config _RT_USB_DEVICE_NONE
                        bool "Using custom class by register interface"
                        select RT_USB_DEVICE_NONE
633 634 635 636 637 638 639 640 641
                    config _RT_USB_DEVICE_CDC
                        bool "Enable to use device as CDC device"
                        select RT_USB_DEVICE_CDC
                    config _RT_USB_DEVICE_MSTORAGE
                        bool "Enable to use device as Mass Storage device"
                        select RT_USB_DEVICE_MSTORAGE
                    config _RT_USB_DEVICE_HID
                        bool "Enable to use device as HID device"
                        select RT_USB_DEVICE_HID
lymzzyh's avatar
lymzzyh 已提交
642 643 644 645
                    config _RT_USB_DEVICE_RNDIS
                        bool "Enable to use device as rndis device"
                        select RT_USB_DEVICE_RNDIS
                        depends on RT_USING_LWIP
646 647 648 649
                    config _RT_USB_DEVICE_ECM
                        bool "Enable to use device as ecm device"
                        select RT_USB_DEVICE_ECM
                        depends on RT_USING_LWIP
650 651 652
                    config _RT_USB_DEVICE_WINUSB
                        bool "Enable to use device as winusb device"
                        select RT_USB_DEVICE_WINUSB
653 654 655 656
                endchoice
                if RT_USB_DEVICE_COMPOSITE
                    config RT_USB_DEVICE_CDC
                        bool "Enable to use device as CDC device"
657 658
                        default n
                    config RT_USB_DEVICE_NONE
659
                        bool
660 661 662 663 664 665 666
                        default y
                    config RT_USB_DEVICE_MSTORAGE
                        bool "Enable to use device as Mass Storage device"
                        default n
                    config RT_USB_DEVICE_HID
                        bool "Enable to use device as HID device"
                        default n
lymzzyh's avatar
lymzzyh 已提交
667 668 669 670
                    config RT_USB_DEVICE_RNDIS
                        bool "Enable to use device as rndis device"
                        default n
                        depends on RT_USING_LWIP
671 672 673 674
                    config RT_USB_DEVICE_ECM
                        bool "Enable to use device as ecm device"
                        default n
                        depends on RT_USING_LWIP
675 676 677
                    config RT_USB_DEVICE_WINUSB
                        bool "Enable to use device as winusb device"
                        default n
678
                endif
679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695
                if RT_USB_DEVICE_CDC
                    config RT_VCOM_TASK_STK_SIZE
                        int "virtual com thread stack size"
                        default 512
                    config RT_VCOM_TX_USE_DMA
                        bool "Enable to use dma for vcom tx"
                        default n
                    config RT_VCOM_SERNO
                        string "serial number of virtual com"
                        default "32021919830108"
                    config RT_VCOM_SER_LEN
                        int "serial number length of virtual com"
                        default 14
                    config RT_VCOM_TX_TIMEOUT
                        int "tx timeout(ticks) of virtual com"
                        default 1000
                endif
696 697 698 699 700
                if RT_USB_DEVICE_WINUSB
                    config RT_WINUSB_GUID
                    string "Guid for winusb"
                    default "{6860DC3C-C05F-4807-8807-1CA861CC1D66}"
                endif
701 702 703 704 705
                if RT_USB_DEVICE_MSTORAGE
                    config RT_USB_MSTORAGE_DISK_NAME
                    string "msc class disk name"
                    default "flash0"
                endif
706 707 708 709

                if RT_USB_DEVICE_RNDIS
                    config RNDIS_DELAY_LINK_UP
                        bool "Delay linkup media connection"
710
                        select RT_USING_TIMER_SOFT
711 712 713
                        default n
                endif

714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746
                if RT_USB_DEVICE_HID
                    config RT_USB_DEVICE_HID_KEYBOARD
                        bool "Use to HID device as Keyboard"
                        default n
                    if RT_USB_DEVICE_HID_KEYBOARD
                        config RT_USB_DEVICE_HID_KEYBOARD_NUMBER
                        int "Number of Keyboard(max 3)"
                        default 1
                        range 1 3
                    endif
                    config RT_USB_DEVICE_HID_MOUSE
                        bool "Use to HID device as Mouse"
                        default n
                    config RT_USB_DEVICE_HID_GENERAL
                        bool "Use to HID device as General HID device"
                        default y
                        if RT_USB_DEVICE_HID_GENERAL
                            config RT_USB_DEVICE_HID_GENERAL_OUT_REPORT_LENGTH
                                int "General HID device out report length"
                                default 63
                                range 0 63

                            config RT_USB_DEVICE_HID_GENERAL_IN_REPORT_LENGTH
                                int "General HID device in report length"
                                default 63
                                range 0 63
                        endif
                    config RT_USB_DEVICE_HID_MEDIA
                        bool "Use to HID device as media keyboard"
                        default y
                endif
        endif
    endmenu
B
bernard 已提交
747
endmenu