Kconfig 13 KB

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