Kconfig 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342
  1. menu "Device Drivers"
  2. config RT_USING_DEVICE_IPC
  3. bool "Using device drivers IPC"
  4. default y
  5. config RT_USING_SERIAL
  6. bool "Using serial device drivers"
  7. select RT_USING_DEVICE_IPC
  8. select RT_USING_DEVICE
  9. default y
  10. config RT_USING_CAN
  11. bool "Using CAN device drivers"
  12. default n
  13. if RT_USING_CAN
  14. config RT_CAN_USING_HDR
  15. bool "Enable CAN hardware filter"
  16. default y
  17. endif
  18. config RT_USING_HWTIMER
  19. bool "Using hardware timer device drivers"
  20. default n
  21. config RT_USING_CPUTIME
  22. bool "Enable CPU time for high resolution clock counter"
  23. default n
  24. help
  25. When enable this option, the BSP should provide a rt_clock_cputime_ops
  26. for CPU time by:
  27. const static struct rt_clock_cputime_ops _ops = {...};
  28. clock_cpu_setops(&_ops);
  29. Then user can use high resolution clock counter with:
  30. ts1 = clock_cpu_gettime();
  31. ts2 = clock_cpu_gettime();
  32. /* and get the ms of delta tick with API: */
  33. ms_tick = clock_cpu_millisecond(t2 - t1);
  34. us_tick = clock_cpu_microsecond(t2 - t1);
  35. if RT_USING_CPUTIME
  36. config RT_USING_CPUTIME_CORTEXM
  37. bool "Use DWT for CPU time"
  38. default y
  39. depends on ARCH_ARM_CORTEX_M3 || ARCH_ARM_CORTEX_M4 || ARCH_ARM_CORTEX_M7
  40. help
  41. Some Cortex-M3/4/7 MCU has Data Watchpoint and Trace Register, use
  42. the cycle counter in DWT for CPU time.
  43. endif
  44. config RT_USING_I2C
  45. bool "Using I2C device drivers"
  46. default n
  47. if RT_USING_I2C
  48. config RT_USING_I2C_BITOPS
  49. bool "Use GPIO to simulate I2C"
  50. default y
  51. endif
  52. config RT_USING_PIN
  53. bool "Using generic GPIO device drivers"
  54. default y
  55. config RT_USING_PWM
  56. bool "Using PWM device drivers"
  57. default n
  58. config RT_USING_MTD_NOR
  59. bool "Using MTD Nor Flash device drivers"
  60. default n
  61. config RT_USING_MTD_NAND
  62. bool "Using MTD Nand Flash device drivers"
  63. default n
  64. if RT_USING_MTD_NAND
  65. config RT_MTD_NAND_DEBUG
  66. bool "Enable MTD Nand operations debug information"
  67. default n
  68. endif
  69. config RT_USING_RTC
  70. bool "Using RTC device drivers"
  71. default n
  72. if RT_USING_RTC
  73. config RT_USING_SOFT_RTC
  74. bool "Using software simulation RTC device"
  75. default n
  76. config RTC_SYNC_USING_NTP
  77. bool "Using NTP auto sync RTC time"
  78. select PKG_USING_NETUTILS
  79. select PKG_NETUTILS_NTP
  80. default n
  81. if RTC_SYNC_USING_NTP
  82. config RTC_NTP_FIRST_SYNC_DELAY
  83. int "NTP first sync delay time(second) for network connect"
  84. default 30
  85. config RTC_NTP_SYNC_PERIOD
  86. int "NTP auto sync period(second)"
  87. default 3600
  88. endif
  89. endif
  90. config RT_USING_SDIO
  91. bool "Using SD/MMC device drivers"
  92. default n
  93. if RT_USING_SDIO
  94. config RT_SDIO_STACK_SIZE
  95. int "The stack size for sdio irq thread"
  96. default 512
  97. config RT_SDIO_THREAD_PRIORITY
  98. int "The priority level value of sdio irq thread"
  99. default 15
  100. config RT_MMCSD_STACK_SIZE
  101. int "The stack size for mmcsd thread"
  102. default 1024
  103. config RT_MMCSD_THREAD_PREORITY
  104. int "The priority level value of mmcsd thread"
  105. default 22
  106. config RT_MMCSD_MAX_PARTITION
  107. int "mmcsd max partition"
  108. default 16
  109. endif
  110. config RT_USING_SPI
  111. bool "Using SPI Bus/Device device drivers"
  112. default n
  113. if RT_USING_SPI
  114. config RT_USING_SPI_MSD
  115. bool "Using SD/TF card driver with spi"
  116. select RT_USING_DFS
  117. default n
  118. config RT_USING_SFUD
  119. bool "Using Serial Flash Universal Driver"
  120. default n
  121. if RT_USING_SFUD
  122. config RT_SFUD_USING_SFDP
  123. bool "Using auto probe flash JEDEC SFDP parameter"
  124. default y
  125. config RT_SFUD_USING_FLASH_INFO_TABLE
  126. bool "Using defined supported flash chip information table"
  127. default y
  128. config RT_DEBUG_SFUD
  129. bool "Show more SFUD debug information"
  130. default n
  131. endif
  132. config RT_USING_W25QXX
  133. bool "Using W25QXX SPI NorFlash"
  134. default n
  135. config RT_USING_GD
  136. bool "Using GD SPI NorFlash"
  137. default n
  138. config RT_USING_ENC28J60
  139. bool "Using ENC28J60 SPI Ethernet network interface"
  140. select RT_USING_LWIP
  141. default n
  142. config RT_USING_SPI_WIFI
  143. bool "Using RW009/007 SPI Wi-Fi wireless interface"
  144. select RT_USING_LWIP
  145. default n
  146. endif
  147. config RT_USING_WDT
  148. bool "Using Watch Dog device drivers"
  149. default n
  150. config RT_USING_WIFI
  151. bool "Using Wi-Fi network"
  152. default n
  153. if RT_USING_WIFI
  154. config RT_USING_WLAN_STA
  155. bool "Using station mode"
  156. default y
  157. config RT_USING_WLAN_AP
  158. bool "Using ap mode"
  159. default n
  160. config WIFI_DEVICE_STA_NAME
  161. string "the wifi device name for station"
  162. default "w0"
  163. config WIFI_DEVICE_AP_NAME
  164. string "the wifi device name for ap"
  165. default "ap"
  166. endif
  167. config RT_USING_AUDIO
  168. bool "Using Audio device drivers"
  169. default n
  170. menu "Using USB"
  171. config RT_USING_USB_HOST
  172. bool "Using USB host"
  173. default n
  174. if RT_USING_USB_HOST
  175. config RT_USBH_MSTORAGE
  176. bool "Enable Udisk Drivers"
  177. default n
  178. if RT_USBH_MSTORAGE
  179. config UDISK_MOUNTPOINT
  180. string "Udisk mount dir"
  181. default "/"
  182. endif
  183. endif
  184. config RT_USING_USB_DEVICE
  185. bool "Using USB device"
  186. default n
  187. if RT_USING_USB_DEVICE || RT_USING_USB_HOST
  188. config RT_USBD_THREAD_STACK_SZ
  189. int "usb thread stack size"
  190. default 4096
  191. endif
  192. if RT_USING_USB_DEVICE
  193. config USB_VENDOR_ID
  194. hex "USB Vendor ID"
  195. default 0x0FFE
  196. config USB_PRODUCT_ID
  197. hex "USB Product ID"
  198. default 0x0001
  199. config RT_USB_DEVICE_COMPOSITE
  200. bool "Enable composite device"
  201. default n
  202. choice
  203. prompt "Device type"
  204. default _RT_USB_DEVICE_NONE
  205. depends on !RT_USB_DEVICE_COMPOSITE
  206. config _RT_USB_DEVICE_NONE
  207. bool "Using custom class by register interface"
  208. select RT_USB_DEVICE_NONE
  209. config _RT_USB_DEVICE_CDC
  210. bool "Enable to use device as CDC device"
  211. select RT_USB_DEVICE_CDC
  212. config _RT_USB_DEVICE_MSTORAGE
  213. bool "Enable to use device as Mass Storage device"
  214. select RT_USB_DEVICE_MSTORAGE
  215. config _RT_USB_DEVICE_HID
  216. bool "Enable to use device as HID device"
  217. select RT_USB_DEVICE_HID
  218. config _RT_USB_DEVICE_RNDIS
  219. bool "Enable to use device as rndis device"
  220. select RT_USB_DEVICE_RNDIS
  221. depends on RT_USING_LWIP
  222. config _RT_USB_DEVICE_ECM
  223. bool "Enable to use device as ecm device"
  224. select RT_USB_DEVICE_ECM
  225. depends on RT_USING_LWIP
  226. config _RT_USB_DEVICE_WINUSB
  227. bool "Enable to use device as winusb device"
  228. select RT_USB_DEVICE_WINUSB
  229. endchoice
  230. if RT_USB_DEVICE_COMPOSITE
  231. config RT_USB_DEVICE_CDC
  232. bool "Enable to use device as CDC device"
  233. default n
  234. config RT_USB_DEVICE_NONE
  235. default y
  236. config RT_USB_DEVICE_MSTORAGE
  237. bool "Enable to use device as Mass Storage device"
  238. default n
  239. config RT_USB_DEVICE_HID
  240. bool "Enable to use device as HID device"
  241. default n
  242. config RT_USB_DEVICE_RNDIS
  243. bool "Enable to use device as rndis device"
  244. default n
  245. depends on RT_USING_LWIP
  246. config RT_USB_DEVICE_ECM
  247. bool "Enable to use device as ecm device"
  248. default n
  249. depends on RT_USING_LWIP
  250. config RT_USB_DEVICE_WINUSB
  251. bool "Enable to use device as winusb device"
  252. default n
  253. endif
  254. if RT_USB_DEVICE_WINUSB
  255. config RT_WINUSB_GUID
  256. string "Guid for winusb"
  257. default "{6860DC3C-C05F-4807-8807-1CA861CC1D66}"
  258. endif
  259. if RT_USB_DEVICE_MSTORAGE
  260. config RT_USB_MSTORAGE_DISK_NAME
  261. string "msc class disk name"
  262. default "flash0"
  263. endif
  264. if RT_USB_DEVICE_HID
  265. config RT_USB_DEVICE_HID_KEYBOARD
  266. bool "Use to HID device as Keyboard"
  267. default n
  268. if RT_USB_DEVICE_HID_KEYBOARD
  269. config RT_USB_DEVICE_HID_KEYBOARD_NUMBER
  270. int "Number of Keyboard(max 3)"
  271. default 1
  272. range 1 3
  273. endif
  274. config RT_USB_DEVICE_HID_MOUSE
  275. bool "Use to HID device as Mouse"
  276. default n
  277. config RT_USB_DEVICE_HID_GENERAL
  278. bool "Use to HID device as General HID device"
  279. default y
  280. if RT_USB_DEVICE_HID_GENERAL
  281. config RT_USB_DEVICE_HID_GENERAL_OUT_REPORT_LENGTH
  282. int "General HID device out report length"
  283. default 63
  284. range 0 63
  285. config RT_USB_DEVICE_HID_GENERAL_IN_REPORT_LENGTH
  286. int "General HID device in report length"
  287. default 63
  288. range 0 63
  289. endif
  290. config RT_USB_DEVICE_HID_MEDIA
  291. bool "Use to HID device as media keyboard"
  292. default y
  293. endif
  294. endif
  295. endmenu
  296. endmenu