Kconfig 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757
  1. menu "Device Drivers"
  2. config RT_USING_DEVICE_IPC
  3. bool "Using device drivers IPC"
  4. default y
  5. if RT_USING_DEVICE_IPC
  6. config RT_PIPE_BUFSZ
  7. int "Set pipe buffer size"
  8. default 512
  9. config RT_USING_SYSTEM_WORKQUEUE
  10. bool "Using system default workqueue"
  11. default n
  12. if RT_USING_SYSTEM_WORKQUEUE
  13. config RT_SYSTEM_WORKQUEUE_STACKSIZE
  14. int "The stack size for system workqueue thread"
  15. default 2048
  16. config RT_SYSTEM_WORKQUEUE_PRIORITY
  17. int "The priority level of system workqueue thread"
  18. default 23
  19. endif
  20. endif
  21. config RT_USING_SERIAL
  22. bool "Using serial device drivers"
  23. select RT_USING_DEVICE_IPC
  24. select RT_USING_DEVICE
  25. default y
  26. if RT_USING_SERIAL
  27. config RT_SERIAL_USING_DMA
  28. bool "Enable serial DMA mode"
  29. default y
  30. config RT_SERIAL_RB_BUFSZ
  31. int "Set RX buffer size"
  32. default 64
  33. endif
  34. config RT_USING_CAN
  35. bool "Using CAN device drivers"
  36. default n
  37. if RT_USING_CAN
  38. config RT_CAN_USING_HDR
  39. bool "Enable CAN hardware filter"
  40. default n
  41. endif
  42. config RT_USING_HWTIMER
  43. bool "Using hardware timer device drivers"
  44. default n
  45. config RT_USING_CPUTIME
  46. bool "Enable CPU time for high resolution clock counter"
  47. default n
  48. help
  49. When enable this option, the BSP should provide a rt_clock_cputime_ops
  50. for CPU time by:
  51. const static struct rt_clock_cputime_ops _ops = {...};
  52. clock_cpu_setops(&_ops);
  53. Then user can use high resolution clock counter with:
  54. ts1 = clock_cpu_gettime();
  55. ts2 = clock_cpu_gettime();
  56. /* and get the ms of delta tick with API: */
  57. ms_tick = clock_cpu_millisecond(t2 - t1);
  58. us_tick = clock_cpu_microsecond(t2 - t1);
  59. if RT_USING_CPUTIME
  60. config RT_USING_CPUTIME_CORTEXM
  61. bool "Use DWT for CPU time"
  62. default y
  63. depends on ARCH_ARM_CORTEX_M3 || ARCH_ARM_CORTEX_M4 || ARCH_ARM_CORTEX_M7
  64. help
  65. Some Cortex-M3/4/7 MCU has Data Watchpoint and Trace Register, use
  66. the cycle counter in DWT for CPU time.
  67. endif
  68. config RT_USING_I2C
  69. bool "Using I2C device drivers"
  70. default n
  71. if RT_USING_I2C
  72. config RT_USING_I2C_BITOPS
  73. bool "Use GPIO to simulate I2C"
  74. default y
  75. endif
  76. config RT_USING_PIN
  77. bool "Using generic GPIO device drivers"
  78. default y
  79. config RT_USING_ADC
  80. bool "Using ADC device drivers"
  81. default n
  82. config RT_USING_PWM
  83. bool "Using PWM device drivers"
  84. default n
  85. config RT_USING_MTD_NOR
  86. bool "Using MTD Nor Flash device drivers"
  87. default n
  88. config RT_USING_MTD_NAND
  89. bool "Using MTD Nand Flash device drivers"
  90. default n
  91. if RT_USING_MTD_NAND
  92. config RT_MTD_NAND_DEBUG
  93. bool "Enable MTD Nand operations debug information"
  94. default n
  95. endif
  96. config RT_USING_PM
  97. bool "Using Power Management device drivers"
  98. default n
  99. config RT_USING_RTC
  100. bool "Using RTC device drivers"
  101. select RT_USING_LIBC
  102. default n
  103. if RT_USING_RTC
  104. config RT_USING_ALARM
  105. bool "Using RTC alarm"
  106. default n
  107. config RT_USING_SOFT_RTC
  108. bool "Using software simulation RTC device"
  109. default n
  110. config RTC_SYNC_USING_NTP
  111. bool "Using NTP auto sync RTC time"
  112. depends on PKG_NETUTILS_NTP
  113. default y
  114. if RTC_SYNC_USING_NTP
  115. config RTC_NTP_FIRST_SYNC_DELAY
  116. int "NTP first sync delay time(second) for network connect"
  117. default 30
  118. config RTC_NTP_SYNC_PERIOD
  119. int "NTP auto sync period(second)"
  120. default 3600
  121. endif
  122. endif
  123. config RT_USING_SDIO
  124. bool "Using SD/MMC device drivers"
  125. default n
  126. if RT_USING_SDIO
  127. config RT_SDIO_STACK_SIZE
  128. int "The stack size for sdio irq thread"
  129. default 512
  130. config RT_SDIO_THREAD_PRIORITY
  131. int "The priority level value of sdio irq thread"
  132. default 15
  133. config RT_MMCSD_STACK_SIZE
  134. int "The stack size for mmcsd thread"
  135. default 1024
  136. config RT_MMCSD_THREAD_PREORITY
  137. int "The priority level value of mmcsd thread"
  138. default 22
  139. config RT_MMCSD_MAX_PARTITION
  140. int "mmcsd max partition"
  141. default 16
  142. config RT_SDIO_DEBUG
  143. bool "Enable SDIO debug log output"
  144. default n
  145. endif
  146. config RT_USING_SPI
  147. bool "Using SPI Bus/Device device drivers"
  148. default n
  149. if RT_USING_SPI
  150. config RT_USING_QSPI
  151. bool "Enable QSPI mode"
  152. default n
  153. config RT_USING_SPI_MSD
  154. bool "Using SD/TF card driver with spi"
  155. select RT_USING_DFS
  156. default n
  157. config RT_USING_SFUD
  158. bool "Using Serial Flash Universal Driver"
  159. default n
  160. help
  161. An using JEDEC's SFDP standard serial (SPI) flash universal driver library
  162. if RT_USING_SFUD
  163. config RT_SFUD_USING_SFDP
  164. bool "Using auto probe flash JEDEC SFDP parameter"
  165. default y
  166. config RT_SFUD_USING_FLASH_INFO_TABLE
  167. bool "Using defined supported flash chip information table"
  168. default y
  169. config RT_SFUD_USING_QSPI
  170. bool "Using QSPI mode support"
  171. select RT_USING_QSPI
  172. default n
  173. config RT_DEBUG_SFUD
  174. bool "Show more SFUD debug information"
  175. default n
  176. endif
  177. config RT_USING_ENC28J60
  178. bool "Using ENC28J60 SPI Ethernet network interface"
  179. select RT_USING_LWIP
  180. default n
  181. config RT_USING_SPI_WIFI
  182. bool "Using RW009/007 SPI Wi-Fi wireless interface"
  183. select RT_USING_LWIP
  184. default n
  185. endif
  186. config RT_USING_WDT
  187. bool "Using Watch Dog device drivers"
  188. default n
  189. config RT_USING_AUDIO
  190. bool "Using Audio device drivers"
  191. default n
  192. if RT_USING_AUDIO
  193. config RT_AUDIO_REPLAY_MP_BLOCK_SIZE
  194. int "Replay memmory pool block size"
  195. default 4096
  196. config RT_AUDIO_REPLAY_MP_BLOCK_COUNT
  197. int "Replay memmory pool block count"
  198. default 2
  199. config RT_AUDIO_RECORD_PIPE_SIZE
  200. int "Record pipe size"
  201. default 2048
  202. endif
  203. config RT_USING_SENSOR
  204. bool "Using Sensor device drivers"
  205. select RT_USING_PIN
  206. default n
  207. if RT_USING_SENSOR
  208. config RT_USING_SENSOR_CMD
  209. bool "Using Sensor cmd"
  210. default y
  211. endif
  212. config RT_USING_TOUCH
  213. bool "Using Touch device drivers"
  214. default n
  215. menuconfig RT_USING_HWCRYPTO
  216. bool "Using Hardware Crypto drivers"
  217. default n
  218. if RT_USING_HWCRYPTO
  219. config RT_HWCRYPTO_DEFAULT_NAME
  220. string "Hardware crypto device name"
  221. default "hwcryto"
  222. config RT_HWCRYPTO_IV_MAX_SIZE
  223. int "IV max size"
  224. default "16"
  225. config RT_HWCRYPTO_KEYBIT_MAX_SIZE
  226. int "Key max bit length"
  227. default 256
  228. config RT_HWCRYPTO_USING_GCM
  229. bool "Using Hardware GCM"
  230. default n
  231. config RT_HWCRYPTO_USING_AES
  232. bool "Using Hardware AES"
  233. default n
  234. if RT_HWCRYPTO_USING_AES
  235. config RT_HWCRYPTO_USING_AES_ECB
  236. bool "Using Hardware AES ECB mode"
  237. default y
  238. config RT_HWCRYPTO_USING_AES_CBC
  239. bool "Using Hardware AES CBC mode"
  240. default n
  241. config RT_HWCRYPTO_USING_AES_CFB
  242. bool "Using Hardware AES CFB mode"
  243. default n
  244. config RT_HWCRYPTO_USING_AES_CTR
  245. bool "Using Hardware AES CTR mode"
  246. default n
  247. config RT_HWCRYPTO_USING_AES_OFB
  248. bool "Using Hardware AES OFB mode"
  249. default n
  250. endif
  251. config RT_HWCRYPTO_USING_DES
  252. bool "Using Hardware DES"
  253. default n
  254. if RT_HWCRYPTO_USING_DES
  255. config RT_HWCRYPTO_USING_DES_ECB
  256. bool "Using Hardware DES ECB mode"
  257. default y
  258. config RT_HWCRYPTO_USING_DES_CBC
  259. bool "Using Hardware DES CBC mode"
  260. default n
  261. endif
  262. config RT_HWCRYPTO_USING_3DES
  263. bool "Using Hardware 3DES"
  264. default n
  265. if RT_HWCRYPTO_USING_3DES
  266. config RT_HWCRYPTO_USING_3DES_ECB
  267. bool "Using Hardware 3DES ECB mode"
  268. default y
  269. config RT_HWCRYPTO_USING_3DES_CBC
  270. bool "Using Hardware 3DES CBC mode"
  271. default n
  272. endif
  273. config RT_HWCRYPTO_USING_RC4
  274. bool "Using Hardware RC4"
  275. default n
  276. config RT_HWCRYPTO_USING_MD5
  277. bool "Using Hardware MD5"
  278. default n
  279. config RT_HWCRYPTO_USING_SHA1
  280. bool "Using Hardware SHA1"
  281. default n
  282. config RT_HWCRYPTO_USING_SHA2
  283. bool "Using Hardware SHA2"
  284. default n
  285. if RT_HWCRYPTO_USING_SHA2
  286. config RT_HWCRYPTO_USING_SHA2_224
  287. bool "Using Hardware SHA2_224 mode"
  288. default n
  289. config RT_HWCRYPTO_USING_SHA2_256
  290. bool "Using Hardware SHA2_256 mode"
  291. default y
  292. config RT_HWCRYPTO_USING_SHA2_384
  293. bool "Using Hardware SHA2_384 mode"
  294. default n
  295. config RT_HWCRYPTO_USING_SHA2_512
  296. bool "Using Hardware SHA2_512 mode"
  297. default n
  298. endif
  299. config RT_HWCRYPTO_USING_RNG
  300. bool "Using Hardware RNG"
  301. default n
  302. config RT_HWCRYPTO_USING_CRC
  303. bool "Using Hardware CRC"
  304. default n
  305. if RT_HWCRYPTO_USING_CRC
  306. config RT_HWCRYPTO_USING_CRC_07
  307. bool "Using Hardware CRC-8 0x07 polynomial"
  308. default n
  309. config RT_HWCRYPTO_USING_CRC_8005
  310. bool "Using Hardware CRC-16 0x8005 polynomial"
  311. default n
  312. config RT_HWCRYPTO_USING_CRC_1021
  313. bool "Using Hardware CRC-16 0x1021 polynomial"
  314. default n
  315. config RT_HWCRYPTO_USING_CRC_3D65
  316. bool "Using Hardware CRC-16 0x3D65 polynomial"
  317. default n
  318. config RT_HWCRYPTO_USING_CRC_04C11DB7
  319. bool "Using Hardware CRC-32 0x04C11DB7 polynomial"
  320. default n
  321. endif
  322. config RT_HWCRYPTO_USING_BIGNUM
  323. bool "Using Hardware bignum"
  324. default n
  325. if RT_HWCRYPTO_USING_BIGNUM
  326. config RT_HWCRYPTO_USING_BIGNUM_EXPTMOD
  327. bool "Using Hardware bignum expt_mod operation"
  328. default y
  329. config RT_HWCRYPTO_USING_BIGNUM_MULMOD
  330. bool "Using Hardware bignum mul_mod operation"
  331. default y
  332. config RT_HWCRYPTO_USING_BIGNUM_MUL
  333. bool "Using Hardware bignum mul operation"
  334. default n
  335. config RT_HWCRYPTO_USING_BIGNUM_ADD
  336. bool "Using Hardware bignum add operation"
  337. default n
  338. config RT_HWCRYPTO_USING_BIGNUM_SUB
  339. bool "Using Hardware bignum sub operation"
  340. default n
  341. endif
  342. endif
  343. config RT_USING_ENCODER
  344. bool "Using ENCODER device drivers"
  345. default n
  346. config RT_USING_INPUT_CAPTURE
  347. bool "Using INPUT CAPTURE device drivers"
  348. default n
  349. if RT_USING_INPUT_CAPTURE
  350. config RT_INPUT_CAPTURE_RB_SIZE
  351. int "Set input capture ringbuffer size"
  352. default 100
  353. endif
  354. menuconfig RT_USING_WIFI
  355. bool "Using Wi-Fi framework"
  356. default n
  357. if RT_USING_WIFI
  358. config RT_WLAN_DEVICE_STA_NAME
  359. string "The device name for station"
  360. default "wlan0"
  361. config RT_WLAN_DEVICE_AP_NAME
  362. string "The device name for ap"
  363. default "wlan1"
  364. config RT_WLAN_SSID_MAX_LENGTH
  365. int "SSID maximum length"
  366. default 32
  367. config RT_WLAN_PASSWORD_MAX_LENGTH
  368. int "Password maximum length"
  369. default 32
  370. config RT_WLAN_DEV_EVENT_NUM
  371. int "Driver events maxcount"
  372. default 2
  373. config RT_WLAN_MANAGE_ENABLE
  374. bool "Connection management Enable"
  375. default y
  376. if RT_WLAN_MANAGE_ENABLE
  377. config RT_WLAN_SCAN_WAIT_MS
  378. int "Set scan timeout time(ms)"
  379. default 10000
  380. config RT_WLAN_CONNECT_WAIT_MS
  381. int "Set connect timeout time(ms)"
  382. default 10000
  383. config RT_WLAN_SCAN_SORT
  384. bool "Automatic sorting of scan results"
  385. default y
  386. config RT_WLAN_MSH_CMD_ENABLE
  387. bool "MSH command Enable"
  388. default y
  389. config RT_WLAN_AUTO_CONNECT_ENABLE
  390. bool "Auto connect Enable"
  391. select RT_WLAN_CFG_ENABLE
  392. select RT_WLAN_WORK_THREAD_ENABLE
  393. default y
  394. if RT_WLAN_AUTO_CONNECT_ENABLE
  395. config AUTO_CONNECTION_PERIOD_MS
  396. int "Auto connect period(ms)"
  397. default 2000
  398. endif
  399. endif
  400. config RT_WLAN_CFG_ENABLE
  401. bool "WiFi information automatically saved Enable"
  402. default y
  403. if RT_WLAN_CFG_ENABLE
  404. config RT_WLAN_CFG_INFO_MAX
  405. int "Maximum number of WiFi information automatically saved"
  406. default 3
  407. endif
  408. config RT_WLAN_PROT_ENABLE
  409. bool "Transport protocol manage Enable"
  410. default y
  411. if RT_WLAN_PROT_ENABLE
  412. config RT_WLAN_PROT_NAME_LEN
  413. int "Transport protocol name length"
  414. default 8
  415. config RT_WLAN_PROT_MAX
  416. int "Transport protocol maxcount"
  417. default 2
  418. config RT_WLAN_DEFAULT_PROT
  419. string "Default transport protocol"
  420. default "lwip"
  421. config RT_WLAN_PROT_LWIP_ENABLE
  422. bool "LWIP transport protocol Enable"
  423. select RT_USING_LWIP
  424. default y
  425. if RT_WLAN_PROT_LWIP_ENABLE
  426. config RT_WLAN_PROT_LWIP_NAME
  427. string "LWIP transport protocol name"
  428. default "lwip"
  429. config RT_WLAN_PROT_LWIP_PBUF_FORCE
  430. bool "Forced use of PBUF transmission"
  431. default n
  432. endif
  433. endif
  434. config RT_WLAN_WORK_THREAD_ENABLE
  435. bool "WLAN work queue thread Enable"
  436. default y
  437. if RT_WLAN_WORK_THREAD_ENABLE
  438. config RT_WLAN_WORKQUEUE_THREAD_NAME
  439. string "WLAN work queue thread name"
  440. default "wlan"
  441. config RT_WLAN_WORKQUEUE_THREAD_SIZE
  442. int "WLAN work queue thread size"
  443. default 2048
  444. config RT_WLAN_WORKQUEUE_THREAD_PRIO
  445. int "WLAN work queue thread priority"
  446. default 15
  447. endif
  448. menuconfig RT_WLAN_DEBUG
  449. bool "Enable WLAN Debugging Options"
  450. default n
  451. if RT_WLAN_DEBUG
  452. config RT_WLAN_CMD_DEBUG
  453. bool "Enable Debugging of wlan_cmd.c"
  454. default n
  455. config RT_WLAN_MGNT_DEBUG
  456. bool "Enable Debugging of wlan_mgnt.c"
  457. default n
  458. config RT_WLAN_DEV_DEBUG
  459. bool "Enable Debugging of wlan_dev.c"
  460. default n
  461. config RT_WLAN_PROT_DEBUG
  462. bool "Enable Debugging of wlan_prot.c"
  463. default n
  464. config RT_WLAN_CFG_DEBUG
  465. bool "Enable Debugging of wlan_cfg.c"
  466. default n
  467. config RT_WLAN_LWIP_DEBUG
  468. bool "Enable Debugging of wlan_lwip.c"
  469. default n
  470. endif
  471. endif
  472. menu "Using USB"
  473. config RT_USING_USB_HOST
  474. bool "Using USB host"
  475. default n
  476. if RT_USING_USB_HOST
  477. config RT_USBH_MSTORAGE
  478. bool "Enable Udisk Drivers"
  479. default n
  480. if RT_USBH_MSTORAGE
  481. config UDISK_MOUNTPOINT
  482. string "Udisk mount dir"
  483. default "/"
  484. endif
  485. endif
  486. config RT_USING_USB_DEVICE
  487. bool "Using USB device"
  488. default n
  489. if RT_USING_USB_DEVICE || RT_USING_USB_HOST
  490. config RT_USBD_THREAD_STACK_SZ
  491. int "usb thread stack size"
  492. default 4096
  493. endif
  494. if RT_USING_USB_DEVICE
  495. config USB_VENDOR_ID
  496. hex "USB Vendor ID"
  497. default 0x0FFE
  498. config USB_PRODUCT_ID
  499. hex "USB Product ID"
  500. default 0x0001
  501. config RT_USB_DEVICE_COMPOSITE
  502. bool "Enable composite device"
  503. default n
  504. choice
  505. prompt "Device type"
  506. default _RT_USB_DEVICE_NONE
  507. depends on !RT_USB_DEVICE_COMPOSITE
  508. config _RT_USB_DEVICE_NONE
  509. bool "Using custom class by register interface"
  510. select RT_USB_DEVICE_NONE
  511. config _RT_USB_DEVICE_CDC
  512. bool "Enable to use device as CDC device"
  513. select RT_USB_DEVICE_CDC
  514. config _RT_USB_DEVICE_MSTORAGE
  515. bool "Enable to use device as Mass Storage device"
  516. select RT_USB_DEVICE_MSTORAGE
  517. config _RT_USB_DEVICE_HID
  518. bool "Enable to use device as HID device"
  519. select RT_USB_DEVICE_HID
  520. config _RT_USB_DEVICE_RNDIS
  521. bool "Enable to use device as rndis device"
  522. select RT_USB_DEVICE_RNDIS
  523. depends on RT_USING_LWIP
  524. config _RT_USB_DEVICE_ECM
  525. bool "Enable to use device as ecm device"
  526. select RT_USB_DEVICE_ECM
  527. depends on RT_USING_LWIP
  528. config _RT_USB_DEVICE_WINUSB
  529. bool "Enable to use device as winusb device"
  530. select RT_USB_DEVICE_WINUSB
  531. endchoice
  532. if RT_USB_DEVICE_COMPOSITE
  533. config RT_USB_DEVICE_CDC
  534. bool "Enable to use device as CDC device"
  535. default n
  536. config RT_USB_DEVICE_NONE
  537. bool
  538. default y
  539. config RT_USB_DEVICE_MSTORAGE
  540. bool "Enable to use device as Mass Storage device"
  541. default n
  542. config RT_USB_DEVICE_HID
  543. bool "Enable to use device as HID device"
  544. default n
  545. config RT_USB_DEVICE_RNDIS
  546. bool "Enable to use device as rndis device"
  547. default n
  548. depends on RT_USING_LWIP
  549. config RT_USB_DEVICE_ECM
  550. bool "Enable to use device as ecm device"
  551. default n
  552. depends on RT_USING_LWIP
  553. config RT_USB_DEVICE_WINUSB
  554. bool "Enable to use device as winusb device"
  555. default n
  556. endif
  557. if RT_USB_DEVICE_CDC
  558. config RT_VCOM_TASK_STK_SIZE
  559. int "virtual com thread stack size"
  560. default 512
  561. config RT_VCOM_TX_USE_DMA
  562. bool "Enable to use dma for vcom tx"
  563. default n
  564. config RT_VCOM_SERNO
  565. string "serial number of virtual com"
  566. default "32021919830108"
  567. config RT_VCOM_SER_LEN
  568. int "serial number length of virtual com"
  569. default 14
  570. config RT_VCOM_TX_TIMEOUT
  571. int "tx timeout(ticks) of virtual com"
  572. default 1000
  573. endif
  574. if RT_USB_DEVICE_WINUSB
  575. config RT_WINUSB_GUID
  576. string "Guid for winusb"
  577. default "{6860DC3C-C05F-4807-8807-1CA861CC1D66}"
  578. endif
  579. if RT_USB_DEVICE_MSTORAGE
  580. config RT_USB_MSTORAGE_DISK_NAME
  581. string "msc class disk name"
  582. default "flash0"
  583. endif
  584. if RT_USB_DEVICE_RNDIS
  585. config RNDIS_DELAY_LINK_UP
  586. bool "Delay linkup media connection"
  587. select RT_USING_TIMER_SOFT
  588. default n
  589. endif
  590. if RT_USB_DEVICE_HID
  591. config RT_USB_DEVICE_HID_KEYBOARD
  592. bool "Use to HID device as Keyboard"
  593. default n
  594. if RT_USB_DEVICE_HID_KEYBOARD
  595. config RT_USB_DEVICE_HID_KEYBOARD_NUMBER
  596. int "Number of Keyboard(max 3)"
  597. default 1
  598. range 1 3
  599. endif
  600. config RT_USB_DEVICE_HID_MOUSE
  601. bool "Use to HID device as Mouse"
  602. default n
  603. config RT_USB_DEVICE_HID_GENERAL
  604. bool "Use to HID device as General HID device"
  605. default y
  606. if RT_USB_DEVICE_HID_GENERAL
  607. config RT_USB_DEVICE_HID_GENERAL_OUT_REPORT_LENGTH
  608. int "General HID device out report length"
  609. default 63
  610. range 0 63
  611. config RT_USB_DEVICE_HID_GENERAL_IN_REPORT_LENGTH
  612. int "General HID device in report length"
  613. default 63
  614. range 0 63
  615. endif
  616. config RT_USB_DEVICE_HID_MEDIA
  617. bool "Use to HID device as media keyboard"
  618. default y
  619. endif
  620. endif
  621. endmenu
  622. endmenu