Kconfig 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320
  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. config RT_USING_SPI
  94. bool "Using SPI Bus/Device device drivers"
  95. default n
  96. if RT_USING_SPI
  97. config RT_USING_SPI_MSD
  98. bool "Using SD/TF card driver with spi"
  99. select RT_USING_DFS
  100. default n
  101. config RT_USING_SFUD
  102. bool "Using Serial Flash Universal Driver"
  103. default n
  104. if RT_USING_SFUD
  105. config RT_SFUD_USING_SFDP
  106. bool "Using auto probe flash JEDEC SFDP parameter"
  107. default y
  108. config RT_SFUD_USING_FLASH_INFO_TABLE
  109. bool "Using defined supported flash chip information table"
  110. default y
  111. config RT_DEBUG_SFUD
  112. bool "Show more SFUD debug information"
  113. default n
  114. endif
  115. config RT_USING_W25QXX
  116. bool "Using W25QXX SPI NorFlash"
  117. default n
  118. config RT_USING_GD
  119. bool "Using GD SPI NorFlash"
  120. default n
  121. config RT_USING_ENC28J60
  122. bool "Using ENC28J60 SPI Ethernet network interface"
  123. select RT_USING_LWIP
  124. default n
  125. config RT_USING_SPI_WIFI
  126. bool "Using RW009/007 SPI Wi-Fi wireless interface"
  127. select RT_USING_LWIP
  128. default n
  129. endif
  130. config RT_USING_WDT
  131. bool "Using Watch Dog device drivers"
  132. default n
  133. config RT_USING_WIFI
  134. bool "Using Wi-Fi network"
  135. default n
  136. if RT_USING_WIFI
  137. config RT_USING_WLAN_STA
  138. bool "Using station mode"
  139. default y
  140. config RT_USING_WLAN_AP
  141. bool "Using ap mode"
  142. default n
  143. config WIFI_DEVICE_STA_NAME
  144. string "the wifi device name for station"
  145. default "w0"
  146. config WIFI_DEVICE_AP_NAME
  147. string "the wifi device name for ap"
  148. default "ap"
  149. endif
  150. config RT_USING_AUDIO
  151. bool "Using Audio device drivers"
  152. default n
  153. menu "Using USB"
  154. config RT_USING_USB_HOST
  155. bool "Using USB host"
  156. default n
  157. if RT_USING_USB_HOST
  158. config RT_USBH_MSTORAGE
  159. bool "Enable Udisk Drivers"
  160. default n
  161. if RT_USBH_MSTORAGE
  162. config UDISK_MOUNTPOINT
  163. string "Udisk mount dir"
  164. default "/"
  165. endif
  166. endif
  167. config RT_USING_USB_DEVICE
  168. bool "Using USB device"
  169. default n
  170. if RT_USING_USB_DEVICE || RT_USING_USB_HOST
  171. config RT_USBD_THREAD_STACK_SZ
  172. int "usb thread stack size"
  173. default 4096
  174. endif
  175. if RT_USING_USB_DEVICE
  176. config USB_VENDOR_ID
  177. hex "USB Vendor ID"
  178. default 0x0FFE
  179. config USB_PRODUCT_ID
  180. hex "USB Product ID"
  181. default 0x0001
  182. config RT_USB_DEVICE_COMPOSITE
  183. bool "Enable composite device"
  184. default n
  185. choice
  186. prompt "Device type"
  187. default _RT_USB_DEVICE_NONE
  188. depends on !RT_USB_DEVICE_COMPOSITE
  189. config _RT_USB_DEVICE_NONE
  190. bool "Using custom class by register interface"
  191. select RT_USB_DEVICE_NONE
  192. config _RT_USB_DEVICE_CDC
  193. bool "Enable to use device as CDC device"
  194. select RT_USB_DEVICE_CDC
  195. config _RT_USB_DEVICE_MSTORAGE
  196. bool "Enable to use device as Mass Storage device"
  197. select RT_USB_DEVICE_MSTORAGE
  198. config _RT_USB_DEVICE_HID
  199. bool "Enable to use device as HID device"
  200. select RT_USB_DEVICE_HID
  201. config _RT_USB_DEVICE_RNDIS
  202. bool "Enable to use device as rndis device"
  203. select RT_USB_DEVICE_RNDIS
  204. depends on RT_USING_LWIP
  205. config _RT_USB_DEVICE_ECM
  206. bool "Enable to use device as ecm device"
  207. select RT_USB_DEVICE_ECM
  208. depends on RT_USING_LWIP
  209. config _RT_USB_DEVICE_WINUSB
  210. bool "Enable to use device as winusb device"
  211. select RT_USB_DEVICE_WINUSB
  212. endchoice
  213. if RT_USB_DEVICE_COMPOSITE
  214. config RT_USB_DEVICE_CDC
  215. bool "Enable to use device as CDC device"
  216. default n
  217. config RT_USB_DEVICE_NONE
  218. default y
  219. config RT_USB_DEVICE_MSTORAGE
  220. bool "Enable to use device as Mass Storage device"
  221. default n
  222. config RT_USB_DEVICE_HID
  223. bool "Enable to use device as HID device"
  224. default n
  225. config RT_USB_DEVICE_RNDIS
  226. bool "Enable to use device as rndis device"
  227. default n
  228. depends on RT_USING_LWIP
  229. config RT_USB_DEVICE_ECM
  230. bool "Enable to use device as ecm device"
  231. default n
  232. depends on RT_USING_LWIP
  233. config RT_USB_DEVICE_WINUSB
  234. bool "Enable to use device as winusb device"
  235. default n
  236. endif
  237. if RT_USB_DEVICE_WINUSB
  238. config RT_WINUSB_GUID
  239. string "Guid for winusb"
  240. default "{6860DC3C-C05F-4807-8807-1CA861CC1D66}"
  241. endif
  242. if RT_USB_DEVICE_MSTORAGE
  243. config RT_USB_MSTORAGE_DISK_NAME
  244. string "msc class disk name"
  245. default "flash0"
  246. endif
  247. if RT_USB_DEVICE_HID
  248. config RT_USB_DEVICE_HID_KEYBOARD
  249. bool "Use to HID device as Keyboard"
  250. default n
  251. if RT_USB_DEVICE_HID_KEYBOARD
  252. config RT_USB_DEVICE_HID_KEYBOARD_NUMBER
  253. int "Number of Keyboard(max 3)"
  254. default 1
  255. range 1 3
  256. endif
  257. config RT_USB_DEVICE_HID_MOUSE
  258. bool "Use to HID device as Mouse"
  259. default n
  260. config RT_USB_DEVICE_HID_GENERAL
  261. bool "Use to HID device as General HID device"
  262. default y
  263. if RT_USB_DEVICE_HID_GENERAL
  264. config RT_USB_DEVICE_HID_GENERAL_OUT_REPORT_LENGTH
  265. int "General HID device out report length"
  266. default 63
  267. range 0 63
  268. config RT_USB_DEVICE_HID_GENERAL_IN_REPORT_LENGTH
  269. int "General HID device in report length"
  270. default 63
  271. range 0 63
  272. endif
  273. config RT_USB_DEVICE_HID_MEDIA
  274. bool "Use to HID device as media keyboard"
  275. default y
  276. endif
  277. endif
  278. endmenu
  279. endmenu