Kconfig 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513
  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 y
  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_MTD
  97. bool "Using Memory Technology Device (MTD)"
  98. default n
  99. if RT_USING_MTD
  100. config MTD_USING_NOR
  101. bool "Using MTD Nor Flash device"
  102. default n
  103. config MTD_USING_NAND
  104. bool "Using MTD Nand Flash device"
  105. default n
  106. endif
  107. config RT_USING_PM
  108. bool "Using Power Management device drivers"
  109. default n
  110. config RT_USING_RTC
  111. bool "Using RTC device drivers"
  112. select RT_USING_LIBC
  113. default n
  114. if RT_USING_RTC
  115. config RT_USING_ALARM
  116. bool "Using RTC alarm"
  117. default n
  118. config RT_USING_SOFT_RTC
  119. bool "Using software simulation RTC device"
  120. default n
  121. config RTC_SYNC_USING_NTP
  122. bool "Using NTP auto sync RTC time"
  123. depends on PKG_NETUTILS_NTP
  124. default y
  125. if RTC_SYNC_USING_NTP
  126. config RTC_NTP_FIRST_SYNC_DELAY
  127. int "NTP first sync delay time(second) for network connect"
  128. default 30
  129. config RTC_NTP_SYNC_PERIOD
  130. int "NTP auto sync period(second)"
  131. default 3600
  132. endif
  133. endif
  134. config RT_USING_SDIO
  135. bool "Using SD/MMC device drivers"
  136. default n
  137. if RT_USING_SDIO
  138. config RT_SDIO_STACK_SIZE
  139. int "The stack size for sdio irq thread"
  140. default 512
  141. config RT_SDIO_THREAD_PRIORITY
  142. int "The priority level value of sdio irq thread"
  143. default 15
  144. config RT_MMCSD_STACK_SIZE
  145. int "The stack size for mmcsd thread"
  146. default 1024
  147. config RT_MMCSD_THREAD_PREORITY
  148. int "The priority level value of mmcsd thread"
  149. default 22
  150. config RT_MMCSD_MAX_PARTITION
  151. int "mmcsd max partition"
  152. default 16
  153. config RT_SDIO_DEBUG
  154. bool "Enable SDIO debug log output"
  155. default n
  156. endif
  157. config RT_USING_SPI
  158. bool "Using SPI Bus/Device device drivers"
  159. default n
  160. if RT_USING_SPI
  161. config RT_USING_QSPI
  162. bool "Enable QSPI mode"
  163. default n
  164. config RT_USING_SPI_MSD
  165. bool "Using SD/TF card driver with spi"
  166. select RT_USING_DFS
  167. default n
  168. config RT_USING_SFUD
  169. bool "Using Serial Flash Universal Driver"
  170. default n
  171. if RT_USING_SFUD
  172. config RT_SFUD_USING_SFDP
  173. bool "Using auto probe flash JEDEC SFDP parameter"
  174. default y
  175. config RT_SFUD_USING_FLASH_INFO_TABLE
  176. bool "Using defined supported flash chip information table"
  177. default y
  178. config RT_SFUD_USING_QSPI
  179. bool "Using QSPI mode support"
  180. select RT_USING_QSPI
  181. default n
  182. config RT_DEBUG_SFUD
  183. bool "Show more SFUD debug information"
  184. default n
  185. endif
  186. config RT_USING_W25QXX
  187. bool "Using W25QXX SPI NorFlash"
  188. default n
  189. config RT_USING_GD
  190. bool "Using GD SPI NorFlash"
  191. default n
  192. config RT_USING_ENC28J60
  193. bool "Using ENC28J60 SPI Ethernet network interface"
  194. select RT_USING_LWIP
  195. default n
  196. config RT_USING_SPI_WIFI
  197. bool "Using RW009/007 SPI Wi-Fi wireless interface"
  198. select RT_USING_LWIP
  199. default n
  200. endif
  201. config RT_USING_WDT
  202. bool "Using Watch Dog device drivers"
  203. default n
  204. config RT_USING_AUDIO
  205. bool "Using Audio device drivers"
  206. default n
  207. config RT_USING_SENSOR
  208. bool "Using Sensor device drivers"
  209. select RT_USING_PIN
  210. default n
  211. if RT_USING_SENSOR
  212. config RT_USING_SENSOR_CMD
  213. bool "Using Sensor cmd"
  214. default y
  215. endif
  216. menu "Using WiFi"
  217. config RT_USING_WIFI
  218. bool "Using Wi-Fi framework"
  219. default n
  220. if RT_USING_WIFI
  221. config RT_WLAN_DEVICE_STA_NAME
  222. string "The WiFi device name for station"
  223. default "wlan0"
  224. config RT_WLAN_DEVICE_AP_NAME
  225. string "The WiFi device name for ap"
  226. default "wlan1"
  227. config RT_WLAN_DEFAULT_PROT
  228. string "Default transport protocol"
  229. default "lwip"
  230. config RT_WLAN_SCAN_WAIT_MS
  231. int "Set scan timeout time(ms)"
  232. default 10000
  233. config RT_WLAN_CONNECT_WAIT_MS
  234. int "Set connect timeout time(ms)"
  235. default 10000
  236. config RT_WLAN_SSID_MAX_LENGTH
  237. int "SSID name maximum length"
  238. default 32
  239. config RT_WLAN_PASSWORD_MAX_LENGTH
  240. int "Maximum password length"
  241. default 32
  242. config RT_WLAN_SCAN_SORT
  243. bool "Automatic sorting of scan results"
  244. default y
  245. config RT_WLAN_CFG_INFO_MAX
  246. int "Maximum number of WiFi information automatically saved"
  247. default 3
  248. config RT_WLAN_WORKQUEUE_THREAD_NAME
  249. string "WiFi work queue thread name"
  250. default "wlan_job"
  251. config RT_WLAN_WORKQUEUE_THREAD_SIZE
  252. int "wifi work queue thread size"
  253. default 2048
  254. config RT_WLAN_WORKQUEUE_THREAD_PRIO
  255. int "WiFi work queue thread priority"
  256. default 22
  257. config RT_WLAN_DEV_EVENT_NUM
  258. int "Maximum number of driver events"
  259. default 2
  260. config RT_WLAN_PROT_LWIP_PBUF_FORCE
  261. bool "Forced use of PBUF transmission"
  262. default n
  263. menuconfig RT_WLAN_DEBUG
  264. bool "Enable WLAN Debugging Options"
  265. default n
  266. if RT_WLAN_DEBUG
  267. config RT_WLAN_CMD_DEBUG
  268. bool "Enable Debugging of wlan_cmd.c"
  269. default n
  270. config RT_WLAN_MGNT_DEBUG
  271. bool "Enable Debugging of wlan_mgnt.c"
  272. default n
  273. config RT_WLAN_DEV_DEBUG
  274. bool "Enable Debugging of wlan_dev.c"
  275. default n
  276. config RT_WLAN_PROT_DEBUG
  277. bool "Enable Debugging of wlan_prot.c"
  278. default n
  279. config RT_WLAN_CFG_DEBUG
  280. bool "Enable Debugging of wlan_cfg.c"
  281. default n
  282. config RT_WLAN_LWIP_DEBUG
  283. bool "Enable Debugging of wlan_lwip.c"
  284. default n
  285. endif
  286. endif
  287. endmenu
  288. menu "Using USB"
  289. config RT_USING_USB_HOST
  290. bool "Using USB host"
  291. default n
  292. if RT_USING_USB_HOST
  293. config RT_USBH_MSTORAGE
  294. bool "Enable Udisk Drivers"
  295. default n
  296. if RT_USBH_MSTORAGE
  297. config UDISK_MOUNTPOINT
  298. string "Udisk mount dir"
  299. default "/"
  300. endif
  301. endif
  302. config RT_USING_USB_DEVICE
  303. bool "Using USB device"
  304. default n
  305. if RT_USING_USB_DEVICE || RT_USING_USB_HOST
  306. config RT_USBD_THREAD_STACK_SZ
  307. int "usb thread stack size"
  308. default 4096
  309. endif
  310. if RT_USING_USB_DEVICE
  311. config USB_VENDOR_ID
  312. hex "USB Vendor ID"
  313. default 0x0FFE
  314. config USB_PRODUCT_ID
  315. hex "USB Product ID"
  316. default 0x0001
  317. config RT_USB_DEVICE_COMPOSITE
  318. bool "Enable composite device"
  319. default n
  320. choice
  321. prompt "Device type"
  322. default _RT_USB_DEVICE_NONE
  323. depends on !RT_USB_DEVICE_COMPOSITE
  324. config _RT_USB_DEVICE_NONE
  325. bool "Using custom class by register interface"
  326. select RT_USB_DEVICE_NONE
  327. config _RT_USB_DEVICE_CDC
  328. bool "Enable to use device as CDC device"
  329. select RT_USB_DEVICE_CDC
  330. config _RT_USB_DEVICE_MSTORAGE
  331. bool "Enable to use device as Mass Storage device"
  332. select RT_USB_DEVICE_MSTORAGE
  333. config _RT_USB_DEVICE_HID
  334. bool "Enable to use device as HID device"
  335. select RT_USB_DEVICE_HID
  336. config _RT_USB_DEVICE_RNDIS
  337. bool "Enable to use device as rndis device"
  338. select RT_USB_DEVICE_RNDIS
  339. depends on RT_USING_LWIP
  340. config _RT_USB_DEVICE_ECM
  341. bool "Enable to use device as ecm device"
  342. select RT_USB_DEVICE_ECM
  343. depends on RT_USING_LWIP
  344. config _RT_USB_DEVICE_WINUSB
  345. bool "Enable to use device as winusb device"
  346. select RT_USB_DEVICE_WINUSB
  347. endchoice
  348. if RT_USB_DEVICE_COMPOSITE
  349. config RT_USB_DEVICE_CDC
  350. bool "Enable to use device as CDC device"
  351. default n
  352. config RT_USB_DEVICE_NONE
  353. bool
  354. default y
  355. config RT_USB_DEVICE_MSTORAGE
  356. bool "Enable to use device as Mass Storage device"
  357. default n
  358. config RT_USB_DEVICE_HID
  359. bool "Enable to use device as HID device"
  360. default n
  361. config RT_USB_DEVICE_RNDIS
  362. bool "Enable to use device as rndis device"
  363. default n
  364. depends on RT_USING_LWIP
  365. config RT_USB_DEVICE_ECM
  366. bool "Enable to use device as ecm device"
  367. default n
  368. depends on RT_USING_LWIP
  369. config RT_USB_DEVICE_WINUSB
  370. bool "Enable to use device as winusb device"
  371. default n
  372. endif
  373. if RT_USB_DEVICE_CDC
  374. config RT_VCOM_TASK_STK_SIZE
  375. int "virtual com thread stack size"
  376. default 512
  377. config RT_VCOM_TX_USE_DMA
  378. bool "Enable to use dma for vcom tx"
  379. default n
  380. config RT_VCOM_SERNO
  381. string "serial number of virtual com"
  382. default "32021919830108"
  383. config RT_VCOM_SER_LEN
  384. int "serial number length of virtual com"
  385. default 14
  386. config RT_VCOM_TX_TIMEOUT
  387. int "tx timeout(ticks) of virtual com"
  388. default 1000
  389. endif
  390. if RT_USB_DEVICE_WINUSB
  391. config RT_WINUSB_GUID
  392. string "Guid for winusb"
  393. default "{6860DC3C-C05F-4807-8807-1CA861CC1D66}"
  394. endif
  395. if RT_USB_DEVICE_MSTORAGE
  396. config RT_USB_MSTORAGE_DISK_NAME
  397. string "msc class disk name"
  398. default "flash0"
  399. endif
  400. if RT_USB_DEVICE_HID
  401. config RT_USB_DEVICE_HID_KEYBOARD
  402. bool "Use to HID device as Keyboard"
  403. default n
  404. if RT_USB_DEVICE_HID_KEYBOARD
  405. config RT_USB_DEVICE_HID_KEYBOARD_NUMBER
  406. int "Number of Keyboard(max 3)"
  407. default 1
  408. range 1 3
  409. endif
  410. config RT_USB_DEVICE_HID_MOUSE
  411. bool "Use to HID device as Mouse"
  412. default n
  413. config RT_USB_DEVICE_HID_GENERAL
  414. bool "Use to HID device as General HID device"
  415. default y
  416. if RT_USB_DEVICE_HID_GENERAL
  417. config RT_USB_DEVICE_HID_GENERAL_OUT_REPORT_LENGTH
  418. int "General HID device out report length"
  419. default 63
  420. range 0 63
  421. config RT_USB_DEVICE_HID_GENERAL_IN_REPORT_LENGTH
  422. int "General HID device in report length"
  423. default 63
  424. range 0 63
  425. endif
  426. config RT_USB_DEVICE_HID_MEDIA
  427. bool "Use to HID device as media keyboard"
  428. default y
  429. endif
  430. endif
  431. endmenu
  432. endmenu