Kconfig 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  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_MTD_NOR
  56. bool "Using MTD Nor Flash device drivers"
  57. default n
  58. config RT_USING_MTD_NAND
  59. bool "Using MTD Nand Flash device drivers"
  60. default n
  61. if RT_USING_MTD_NAND
  62. config RT_MTD_NAND_DEBUG
  63. bool "Enable MTD Nand operations debug information"
  64. default n
  65. endif
  66. config RT_USING_RTC
  67. bool "Using RTC device drivers"
  68. default n
  69. if RT_USING_RTC
  70. config RT_USING_SOFT_RTC
  71. bool "Using software simulation RTC device"
  72. default n
  73. config RTC_SYNC_USING_NTP
  74. bool "Using NTP auto sync RTC time"
  75. select PKG_USING_NETUTILS
  76. select PKG_NETUTILS_NTP
  77. default n
  78. if RTC_SYNC_USING_NTP
  79. config RTC_NTP_FIRST_SYNC_DELAY
  80. int "NTP first sync delay time(second) for network connect"
  81. default 30
  82. config RTC_NTP_SYNC_PERIOD
  83. int "NTP auto sync period(second)"
  84. default 3600
  85. endif
  86. endif
  87. config RT_USING_SDIO
  88. bool "Using SD/MMC device drivers"
  89. default n
  90. config RT_USING_SPI
  91. bool "Using SPI Bus/Device device drivers"
  92. default n
  93. if RT_USING_SPI
  94. config RT_USING_SPI_MSD
  95. bool "Using SD/TF card driver with spi"
  96. select RT_USING_DFS
  97. default n
  98. config RT_USING_SFUD
  99. bool "Using Serial Flash Universal Driver"
  100. default n
  101. if RT_USING_SFUD
  102. config RT_SFUD_USING_SFDP
  103. bool "Using auto probe flash JEDEC SFDP parameter"
  104. default y
  105. config RT_SFUD_USING_FLASH_INFO_TABLE
  106. bool "Using defined supported flash chip information table"
  107. default y
  108. config RT_DEBUG_SFUD
  109. bool "Show more SFUD debug information"
  110. default n
  111. endif
  112. config RT_USING_W25QXX
  113. bool "Using W25QXX SPI NorFlash"
  114. default n
  115. config RT_USING_GD
  116. bool "Using GD SPI NorFlash"
  117. default n
  118. config RT_USING_ENC28J60
  119. bool "Using ENC28J60 SPI Ethernet network interface"
  120. select RT_USING_LWIP
  121. default n
  122. config RT_USING_SPI_WIFI
  123. bool "Using RW009/007 SPI Wi-Fi wireless interface"
  124. select RT_USING_LWIP
  125. default n
  126. endif
  127. config RT_USING_WDT
  128. bool "Using Watch Dog device drivers"
  129. default n
  130. config RT_USING_WIFI
  131. bool "Using Wi-Fi network"
  132. default n
  133. menu "Using USB"
  134. config RT_USING_USB_HOST
  135. bool "Using USB host"
  136. default n
  137. if RT_USING_USB_HOST
  138. config RT_USBH_MSTORAGE
  139. bool "Enable Udisk Drivers"
  140. default n
  141. if RT_USBH_MSTORAGE
  142. config UDISK_MOUNTPOINT
  143. string "Udisk mount dir"
  144. default "/"
  145. endif
  146. endif
  147. config RT_USING_USB_DEVICE
  148. bool "Using USB device"
  149. default n
  150. if RT_USING_USB_DEVICE || RT_USING_USB_HOST
  151. config RT_USBD_THREAD_STACK_SZ
  152. int "usb thread stack size"
  153. default 4096
  154. endif
  155. if RT_USING_USB_DEVICE
  156. config USB_VENDOR_ID
  157. hex "USB Vendor ID"
  158. default 0x0FFE
  159. config USB_PRODUCT_ID
  160. hex "USB Product ID"
  161. default 0x0001
  162. config RT_USB_DEVICE_COMPOSITE
  163. bool "Enable composite device"
  164. default n
  165. choice
  166. prompt "Device type"
  167. default _RT_USB_DEVICE_NONE
  168. depends on !RT_USB_DEVICE_COMPOSITE
  169. config _RT_USB_DEVICE_NONE
  170. bool "Using custom class by register interface"
  171. select RT_USB_DEVICE_NONE
  172. config _RT_USB_DEVICE_CDC
  173. bool "Enable to use device as CDC device"
  174. select RT_USB_DEVICE_CDC
  175. config _RT_USB_DEVICE_MSTORAGE
  176. bool "Enable to use device as Mass Storage device"
  177. select RT_USB_DEVICE_MSTORAGE
  178. config _RT_USB_DEVICE_HID
  179. bool "Enable to use device as HID device"
  180. select RT_USB_DEVICE_HID
  181. config _RT_USB_DEVICE_RNDIS
  182. bool "Enable to use device as rndis device"
  183. select RT_USB_DEVICE_RNDIS
  184. depends on RT_USING_LWIP
  185. config _RT_USB_DEVICE_ECM
  186. bool "Enable to use device as ecm device"
  187. select RT_USB_DEVICE_ECM
  188. depends on RT_USING_LWIP
  189. config _RT_USB_DEVICE_WINUSB
  190. bool "Enable to use device as winusb device"
  191. select RT_USB_DEVICE_WINUSB
  192. endchoice
  193. if RT_USB_DEVICE_COMPOSITE
  194. config RT_USB_DEVICE_CDC
  195. bool "Enable to use device as CDC device"
  196. default n
  197. config RT_USB_DEVICE_NONE
  198. default y
  199. config RT_USB_DEVICE_MSTORAGE
  200. bool "Enable to use device as Mass Storage device"
  201. default n
  202. config RT_USB_DEVICE_HID
  203. bool "Enable to use device as HID device"
  204. default n
  205. config RT_USB_DEVICE_RNDIS
  206. bool "Enable to use device as rndis device"
  207. default n
  208. depends on RT_USING_LWIP
  209. config RT_USB_DEVICE_ECM
  210. bool "Enable to use device as ecm device"
  211. default n
  212. depends on RT_USING_LWIP
  213. config RT_USB_DEVICE_WINUSB
  214. bool "Enable to use device as winusb device"
  215. default n
  216. endif
  217. if RT_USB_DEVICE_WINUSB
  218. config RT_WINUSB_GUID
  219. string "Guid for winusb"
  220. default "{6860DC3C-C05F-4807-8807-1CA861CC1D66}"
  221. endif
  222. if RT_USB_DEVICE_MSTORAGE
  223. config RT_USB_MSTORAGE_DISK_NAME
  224. string "msc class disk name"
  225. default "flash0"
  226. endif
  227. if RT_USB_DEVICE_HID
  228. config RT_USB_DEVICE_HID_KEYBOARD
  229. bool "Use to HID device as Keyboard"
  230. default n
  231. if RT_USB_DEVICE_HID_KEYBOARD
  232. config RT_USB_DEVICE_HID_KEYBOARD_NUMBER
  233. int "Number of Keyboard(max 3)"
  234. default 1
  235. range 1 3
  236. endif
  237. config RT_USB_DEVICE_HID_MOUSE
  238. bool "Use to HID device as Mouse"
  239. default n
  240. config RT_USB_DEVICE_HID_GENERAL
  241. bool "Use to HID device as General HID device"
  242. default y
  243. if RT_USB_DEVICE_HID_GENERAL
  244. config RT_USB_DEVICE_HID_GENERAL_OUT_REPORT_LENGTH
  245. int "General HID device out report length"
  246. default 63
  247. range 0 63
  248. config RT_USB_DEVICE_HID_GENERAL_IN_REPORT_LENGTH
  249. int "General HID device in report length"
  250. default 63
  251. range 0 63
  252. endif
  253. config RT_USB_DEVICE_HID_MEDIA
  254. bool "Use to HID device as media keyboard"
  255. default y
  256. endif
  257. endif
  258. endmenu
  259. endmenu