Kconfig 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471
  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. endif
  10. config RT_USING_SERIAL
  11. bool "Using serial device drivers"
  12. select RT_USING_DEVICE_IPC
  13. select RT_USING_DEVICE
  14. default y
  15. config RT_USING_CAN
  16. bool "Using CAN device drivers"
  17. default n
  18. if RT_USING_CAN
  19. config RT_CAN_USING_HDR
  20. bool "Enable CAN hardware filter"
  21. default y
  22. endif
  23. config RT_USING_HWTIMER
  24. bool "Using hardware timer device drivers"
  25. default n
  26. config RT_USING_CPUTIME
  27. bool "Enable CPU time for high resolution clock counter"
  28. default n
  29. help
  30. When enable this option, the BSP should provide a rt_clock_cputime_ops
  31. for CPU time by:
  32. const static struct rt_clock_cputime_ops _ops = {...};
  33. clock_cpu_setops(&_ops);
  34. Then user can use high resolution clock counter with:
  35. ts1 = clock_cpu_gettime();
  36. ts2 = clock_cpu_gettime();
  37. /* and get the ms of delta tick with API: */
  38. ms_tick = clock_cpu_millisecond(t2 - t1);
  39. us_tick = clock_cpu_microsecond(t2 - t1);
  40. if RT_USING_CPUTIME
  41. config RT_USING_CPUTIME_CORTEXM
  42. bool "Use DWT for CPU time"
  43. default y
  44. depends on ARCH_ARM_CORTEX_M3 || ARCH_ARM_CORTEX_M4 || ARCH_ARM_CORTEX_M7
  45. help
  46. Some Cortex-M3/4/7 MCU has Data Watchpoint and Trace Register, use
  47. the cycle counter in DWT for CPU time.
  48. endif
  49. config RT_USING_I2C
  50. bool "Using I2C device drivers"
  51. default n
  52. if RT_USING_I2C
  53. config RT_USING_I2C_BITOPS
  54. bool "Use GPIO to simulate I2C"
  55. default y
  56. endif
  57. config RT_USING_PIN
  58. bool "Using generic GPIO device drivers"
  59. default y
  60. config RT_USING_ADC
  61. bool "Using ADC device drivers"
  62. default n
  63. config RT_USING_PWM
  64. bool "Using PWM device drivers"
  65. default n
  66. config RT_USING_MTD_NOR
  67. bool "Using MTD Nor Flash device drivers"
  68. default n
  69. config RT_USING_MTD_NAND
  70. bool "Using MTD Nand Flash device drivers"
  71. default n
  72. if RT_USING_MTD_NAND
  73. config RT_MTD_NAND_DEBUG
  74. bool "Enable MTD Nand operations debug information"
  75. default n
  76. endif
  77. config RT_USING_MTD
  78. bool "Using Memory Technology Device (MTD)"
  79. default n
  80. if RT_USING_MTD
  81. config MTD_USING_NOR
  82. bool "Using MTD Nor Flash device"
  83. default n
  84. config MTD_USING_NAND
  85. bool "Using MTD Nand Flash device"
  86. default n
  87. endif
  88. config RT_USING_PM
  89. bool "Using Power Management device drivers"
  90. default n
  91. config RT_USING_RTC
  92. bool "Using RTC device drivers"
  93. default n
  94. if RT_USING_RTC
  95. config RT_USING_SOFT_RTC
  96. bool "Using software simulation RTC device"
  97. default n
  98. config RTC_SYNC_USING_NTP
  99. bool "Using NTP auto sync RTC time"
  100. depends on PKG_NETUTILS_NTP
  101. default y
  102. if RTC_SYNC_USING_NTP
  103. config RTC_NTP_FIRST_SYNC_DELAY
  104. int "NTP first sync delay time(second) for network connect"
  105. default 30
  106. config RTC_NTP_SYNC_PERIOD
  107. int "NTP auto sync period(second)"
  108. default 3600
  109. endif
  110. endif
  111. config RT_USING_SDIO
  112. bool "Using SD/MMC device drivers"
  113. default n
  114. if RT_USING_SDIO
  115. config RT_SDIO_STACK_SIZE
  116. int "The stack size for sdio irq thread"
  117. default 512
  118. config RT_SDIO_THREAD_PRIORITY
  119. int "The priority level value of sdio irq thread"
  120. default 15
  121. config RT_MMCSD_STACK_SIZE
  122. int "The stack size for mmcsd thread"
  123. default 1024
  124. config RT_MMCSD_THREAD_PREORITY
  125. int "The priority level value of mmcsd thread"
  126. default 22
  127. config RT_MMCSD_MAX_PARTITION
  128. int "mmcsd max partition"
  129. default 16
  130. config RT_SDIO_DEBUG
  131. bool "Enable SDIO debug log output"
  132. default n
  133. endif
  134. config RT_USING_SPI
  135. bool "Using SPI Bus/Device device drivers"
  136. default n
  137. if RT_USING_SPI
  138. config RT_USING_QSPI
  139. bool "Enable QSPI mode"
  140. default n
  141. config RT_USING_SPI_MSD
  142. bool "Using SD/TF card driver with spi"
  143. select RT_USING_DFS
  144. default n
  145. config RT_USING_SFUD
  146. bool "Using Serial Flash Universal Driver"
  147. default n
  148. if RT_USING_SFUD
  149. config RT_SFUD_USING_SFDP
  150. bool "Using auto probe flash JEDEC SFDP parameter"
  151. default y
  152. config RT_SFUD_USING_FLASH_INFO_TABLE
  153. bool "Using defined supported flash chip information table"
  154. default y
  155. config RT_SFUD_USING_QSPI
  156. bool "Using QSPI mode support"
  157. select RT_USING_QSPI
  158. default n
  159. config RT_DEBUG_SFUD
  160. bool "Show more SFUD debug information"
  161. default n
  162. endif
  163. config RT_USING_W25QXX
  164. bool "Using W25QXX SPI NorFlash"
  165. default n
  166. config RT_USING_GD
  167. bool "Using GD SPI NorFlash"
  168. default n
  169. config RT_USING_ENC28J60
  170. bool "Using ENC28J60 SPI Ethernet network interface"
  171. select RT_USING_LWIP
  172. default n
  173. config RT_USING_SPI_WIFI
  174. bool "Using RW009/007 SPI Wi-Fi wireless interface"
  175. select RT_USING_LWIP
  176. default n
  177. endif
  178. config RT_USING_WDT
  179. bool "Using Watch Dog device drivers"
  180. default n
  181. config RT_USING_AUDIO
  182. bool "Using Audio device drivers"
  183. default n
  184. menu "Using WiFi"
  185. config RT_USING_WIFI
  186. bool "Using Wi-Fi framework"
  187. default n
  188. if RT_USING_WIFI
  189. config RT_WLAN_DEVICE_STA_NAME
  190. string "The WiFi device name for station"
  191. default "wlan0"
  192. config RT_WLAN_DEVICE_AP_NAME
  193. string "The WiFi device name for ap"
  194. default "wlan1"
  195. config RT_WLAN_DEFAULT_PROT
  196. string "Default transport protocol"
  197. default "lwip"
  198. config RT_WLAN_SCAN_WAIT_MS
  199. int "Set scan timeout time(ms)"
  200. default 10000
  201. config RT_WLAN_CONNECT_WAIT_MS
  202. int "Set connect timeout time(ms)"
  203. default 10000
  204. config RT_WLAN_SSID_MAX_LENGTH
  205. int "SSID name maximum length"
  206. default 32
  207. config RT_WLAN_PASSWORD_MAX_LENGTH
  208. int "Maximum password length"
  209. default 32
  210. config RT_WLAN_SCAN_SORT
  211. bool "Automatic sorting of scan results"
  212. default y
  213. config RT_WLAN_CFG_INFO_MAX
  214. int "Maximum number of WiFi information automatically saved"
  215. default 3
  216. config RT_WLAN_WORKQUEUE_THREAD_NAME
  217. string "WiFi work queue thread name"
  218. default "wlan_job"
  219. config RT_WLAN_WORKQUEUE_THREAD_SIZE
  220. int "wifi work queue thread size"
  221. default 2048
  222. config RT_WLAN_WORKQUEUE_THREAD_PRIO
  223. int "WiFi work queue thread priority"
  224. default 22
  225. config RT_WLAN_DEV_EVENT_NUM
  226. int "Maximum number of driver events"
  227. default 2
  228. config RT_WLAN_PROT_LWIP_PBUF_FORCE
  229. bool "Forced use of PBUF transmission"
  230. default n
  231. menuconfig RT_WLAN_DEBUG
  232. bool "Enable WLAN Debugging Options"
  233. default n
  234. if RT_WLAN_DEBUG
  235. config RT_WLAN_CMD_DEBUG
  236. bool "Enable Debugging of wlan_cmd.c"
  237. default n
  238. config RT_WLAN_MGNT_DEBUG
  239. bool "Enable Debugging of wlan_mgnt.c"
  240. default n
  241. config RT_WLAN_DEV_DEBUG
  242. bool "Enable Debugging of wlan_dev.c"
  243. default n
  244. config RT_WLAN_PROT_DEBUG
  245. bool "Enable Debugging of wlan_prot.c"
  246. default n
  247. config RT_WLAN_CFG_DEBUG
  248. bool "Enable Debugging of wlan_cfg.c"
  249. default n
  250. config RT_WLAN_LWIP_DEBUG
  251. bool "Enable Debugging of wlan_lwip.c"
  252. default n
  253. endif
  254. endif
  255. endmenu
  256. menu "Using USB"
  257. config RT_USING_USB_HOST
  258. bool "Using USB host"
  259. default n
  260. if RT_USING_USB_HOST
  261. config RT_USBH_MSTORAGE
  262. bool "Enable Udisk Drivers"
  263. default n
  264. if RT_USBH_MSTORAGE
  265. config UDISK_MOUNTPOINT
  266. string "Udisk mount dir"
  267. default "/"
  268. endif
  269. endif
  270. config RT_USING_USB_DEVICE
  271. bool "Using USB device"
  272. default n
  273. if RT_USING_USB_DEVICE || RT_USING_USB_HOST
  274. config RT_USBD_THREAD_STACK_SZ
  275. int "usb thread stack size"
  276. default 4096
  277. endif
  278. if RT_USING_USB_DEVICE
  279. config USB_VENDOR_ID
  280. hex "USB Vendor ID"
  281. default 0x0FFE
  282. config USB_PRODUCT_ID
  283. hex "USB Product ID"
  284. default 0x0001
  285. config RT_USB_DEVICE_COMPOSITE
  286. bool "Enable composite device"
  287. default n
  288. choice
  289. prompt "Device type"
  290. default _RT_USB_DEVICE_NONE
  291. depends on !RT_USB_DEVICE_COMPOSITE
  292. config _RT_USB_DEVICE_NONE
  293. bool "Using custom class by register interface"
  294. select RT_USB_DEVICE_NONE
  295. config _RT_USB_DEVICE_CDC
  296. bool "Enable to use device as CDC device"
  297. select RT_USB_DEVICE_CDC
  298. config _RT_USB_DEVICE_MSTORAGE
  299. bool "Enable to use device as Mass Storage device"
  300. select RT_USB_DEVICE_MSTORAGE
  301. config _RT_USB_DEVICE_HID
  302. bool "Enable to use device as HID device"
  303. select RT_USB_DEVICE_HID
  304. config _RT_USB_DEVICE_RNDIS
  305. bool "Enable to use device as rndis device"
  306. select RT_USB_DEVICE_RNDIS
  307. depends on RT_USING_LWIP
  308. config _RT_USB_DEVICE_ECM
  309. bool "Enable to use device as ecm device"
  310. select RT_USB_DEVICE_ECM
  311. depends on RT_USING_LWIP
  312. config _RT_USB_DEVICE_WINUSB
  313. bool "Enable to use device as winusb device"
  314. select RT_USB_DEVICE_WINUSB
  315. endchoice
  316. if RT_USB_DEVICE_COMPOSITE
  317. config RT_USB_DEVICE_CDC
  318. bool "Enable to use device as CDC device"
  319. default n
  320. config RT_USB_DEVICE_NONE
  321. bool
  322. default y
  323. config RT_USB_DEVICE_MSTORAGE
  324. bool "Enable to use device as Mass Storage device"
  325. default n
  326. config RT_USB_DEVICE_HID
  327. bool "Enable to use device as HID device"
  328. default n
  329. config RT_USB_DEVICE_RNDIS
  330. bool "Enable to use device as rndis device"
  331. default n
  332. depends on RT_USING_LWIP
  333. config RT_USB_DEVICE_ECM
  334. bool "Enable to use device as ecm device"
  335. default n
  336. depends on RT_USING_LWIP
  337. config RT_USB_DEVICE_WINUSB
  338. bool "Enable to use device as winusb device"
  339. default n
  340. endif
  341. if RT_USB_DEVICE_CDC
  342. config RT_VCOM_TASK_STK_SIZE
  343. int "virtual com thread stack size"
  344. default 512
  345. config RT_VCOM_TX_USE_DMA
  346. bool "Enable to use dma for vcom tx"
  347. default n
  348. config RT_VCOM_SERNO
  349. string "serial number of virtual com"
  350. default "32021919830108"
  351. config RT_VCOM_SER_LEN
  352. int "serial number length of virtual com"
  353. default 14
  354. config RT_VCOM_TX_TIMEOUT
  355. int "tx timeout(ticks) of virtual com"
  356. default 1000
  357. endif
  358. if RT_USB_DEVICE_WINUSB
  359. config RT_WINUSB_GUID
  360. string "Guid for winusb"
  361. default "{6860DC3C-C05F-4807-8807-1CA861CC1D66}"
  362. endif
  363. if RT_USB_DEVICE_MSTORAGE
  364. config RT_USB_MSTORAGE_DISK_NAME
  365. string "msc class disk name"
  366. default "flash0"
  367. endif
  368. if RT_USB_DEVICE_HID
  369. config RT_USB_DEVICE_HID_KEYBOARD
  370. bool "Use to HID device as Keyboard"
  371. default n
  372. if RT_USB_DEVICE_HID_KEYBOARD
  373. config RT_USB_DEVICE_HID_KEYBOARD_NUMBER
  374. int "Number of Keyboard(max 3)"
  375. default 1
  376. range 1 3
  377. endif
  378. config RT_USB_DEVICE_HID_MOUSE
  379. bool "Use to HID device as Mouse"
  380. default n
  381. config RT_USB_DEVICE_HID_GENERAL
  382. bool "Use to HID device as General HID device"
  383. default y
  384. if RT_USB_DEVICE_HID_GENERAL
  385. config RT_USB_DEVICE_HID_GENERAL_OUT_REPORT_LENGTH
  386. int "General HID device out report length"
  387. default 63
  388. range 0 63
  389. config RT_USB_DEVICE_HID_GENERAL_IN_REPORT_LENGTH
  390. int "General HID device in report length"
  391. default 63
  392. range 0 63
  393. endif
  394. config RT_USB_DEVICE_HID_MEDIA
  395. bool "Use to HID device as media keyboard"
  396. default y
  397. endif
  398. endif
  399. endmenu
  400. endmenu