Kconfig 12 KB

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