Kconfig 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366
  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_WIFI
  170. bool "Using Wi-Fi network"
  171. default n
  172. if RT_USING_WIFI
  173. config RT_USING_WLAN_STA
  174. bool "Using station mode"
  175. default y
  176. config RT_USING_WLAN_AP
  177. bool "Using ap mode"
  178. default n
  179. config WIFI_DEVICE_STA_NAME
  180. string "the wifi device name for station"
  181. default "w0"
  182. config WIFI_DEVICE_AP_NAME
  183. string "the wifi device name for ap"
  184. default "ap"
  185. endif
  186. config RT_USING_AUDIO
  187. bool "Using Audio device drivers"
  188. default n
  189. menu "Using USB"
  190. config RT_USING_USB_HOST
  191. bool "Using USB host"
  192. default n
  193. if RT_USING_USB_HOST
  194. config RT_USBH_MSTORAGE
  195. bool "Enable Udisk Drivers"
  196. default n
  197. if RT_USBH_MSTORAGE
  198. config UDISK_MOUNTPOINT
  199. string "Udisk mount dir"
  200. default "/"
  201. endif
  202. endif
  203. config RT_USING_USB_DEVICE
  204. bool "Using USB device"
  205. default n
  206. if RT_USING_USB_DEVICE || RT_USING_USB_HOST
  207. config RT_USBD_THREAD_STACK_SZ
  208. int "usb thread stack size"
  209. default 4096
  210. endif
  211. if RT_USING_USB_DEVICE
  212. config USB_VENDOR_ID
  213. hex "USB Vendor ID"
  214. default 0x0FFE
  215. config USB_PRODUCT_ID
  216. hex "USB Product ID"
  217. default 0x0001
  218. config RT_USB_DEVICE_COMPOSITE
  219. bool "Enable composite device"
  220. default n
  221. choice
  222. prompt "Device type"
  223. default _RT_USB_DEVICE_NONE
  224. depends on !RT_USB_DEVICE_COMPOSITE
  225. config _RT_USB_DEVICE_NONE
  226. bool "Using custom class by register interface"
  227. select RT_USB_DEVICE_NONE
  228. config _RT_USB_DEVICE_CDC
  229. bool "Enable to use device as CDC device"
  230. select RT_USB_DEVICE_CDC
  231. config _RT_USB_DEVICE_MSTORAGE
  232. bool "Enable to use device as Mass Storage device"
  233. select RT_USB_DEVICE_MSTORAGE
  234. config _RT_USB_DEVICE_HID
  235. bool "Enable to use device as HID device"
  236. select RT_USB_DEVICE_HID
  237. config _RT_USB_DEVICE_RNDIS
  238. bool "Enable to use device as rndis device"
  239. select RT_USB_DEVICE_RNDIS
  240. depends on RT_USING_LWIP
  241. config _RT_USB_DEVICE_ECM
  242. bool "Enable to use device as ecm device"
  243. select RT_USB_DEVICE_ECM
  244. depends on RT_USING_LWIP
  245. config _RT_USB_DEVICE_WINUSB
  246. bool "Enable to use device as winusb device"
  247. select RT_USB_DEVICE_WINUSB
  248. endchoice
  249. if RT_USB_DEVICE_COMPOSITE
  250. config RT_USB_DEVICE_CDC
  251. bool "Enable to use device as CDC device"
  252. default n
  253. config RT_USB_DEVICE_NONE
  254. bool
  255. default y
  256. config RT_USB_DEVICE_MSTORAGE
  257. bool "Enable to use device as Mass Storage device"
  258. default n
  259. config RT_USB_DEVICE_HID
  260. bool "Enable to use device as HID device"
  261. default n
  262. config RT_USB_DEVICE_RNDIS
  263. bool "Enable to use device as rndis device"
  264. default n
  265. depends on RT_USING_LWIP
  266. config RT_USB_DEVICE_ECM
  267. bool "Enable to use device as ecm device"
  268. default n
  269. depends on RT_USING_LWIP
  270. config RT_USB_DEVICE_WINUSB
  271. bool "Enable to use device as winusb device"
  272. default n
  273. endif
  274. if RT_USB_DEVICE_WINUSB
  275. config RT_WINUSB_GUID
  276. string "Guid for winusb"
  277. default "{6860DC3C-C05F-4807-8807-1CA861CC1D66}"
  278. endif
  279. if RT_USB_DEVICE_MSTORAGE
  280. config RT_USB_MSTORAGE_DISK_NAME
  281. string "msc class disk name"
  282. default "flash0"
  283. endif
  284. if RT_USB_DEVICE_HID
  285. config RT_USB_DEVICE_HID_KEYBOARD
  286. bool "Use to HID device as Keyboard"
  287. default n
  288. if RT_USB_DEVICE_HID_KEYBOARD
  289. config RT_USB_DEVICE_HID_KEYBOARD_NUMBER
  290. int "Number of Keyboard(max 3)"
  291. default 1
  292. range 1 3
  293. endif
  294. config RT_USB_DEVICE_HID_MOUSE
  295. bool "Use to HID device as Mouse"
  296. default n
  297. config RT_USB_DEVICE_HID_GENERAL
  298. bool "Use to HID device as General HID device"
  299. default y
  300. if RT_USB_DEVICE_HID_GENERAL
  301. config RT_USB_DEVICE_HID_GENERAL_OUT_REPORT_LENGTH
  302. int "General HID device out report length"
  303. default 63
  304. range 0 63
  305. config RT_USB_DEVICE_HID_GENERAL_IN_REPORT_LENGTH
  306. int "General HID device in report length"
  307. default 63
  308. range 0 63
  309. endif
  310. config RT_USB_DEVICE_HID_MEDIA
  311. bool "Use to HID device as media keyboard"
  312. default y
  313. endif
  314. endif
  315. endmenu
  316. endmenu