Kconfig 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  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_NETUTILS_NTP
  76. default n
  77. if RTC_SYNC_USING_NTP
  78. config RTC_NTP_FIRST_SYNC_DELAY
  79. int "NTP first sync delay time(second) for network connect"
  80. default 30
  81. config RTC_NTP_SYNC_PERIOD
  82. int "NTP auto sync period(second)"
  83. default 3600
  84. endif
  85. endif
  86. config RT_USING_SDIO
  87. bool "Using SD/MMC device drivers"
  88. default n
  89. config RT_USING_SPI
  90. bool "Using SPI Bus/Device device drivers"
  91. default n
  92. if RT_USING_SPI
  93. config RT_USING_SPI_MSD
  94. bool "Using SD/TF card driver with spi"
  95. select RT_USING_DFS
  96. default n
  97. config RT_USING_SFUD
  98. bool "Using Serial Flash Universal Driver"
  99. default n
  100. if RT_USING_SFUD
  101. config RT_SFUD_USING_SFDP
  102. bool "Using auto probe flash JEDEC SFDP parameter"
  103. default y
  104. config RT_SFUD_USING_FLASH_INFO_TABLE
  105. bool "Using defined supported flash chip information table"
  106. default y
  107. config RT_SFUD_DEBUG
  108. bool "Show more SFUD debug information"
  109. default n
  110. endif
  111. config RT_USING_W25QXX
  112. bool "Using W25QXX SPI NorFlash"
  113. default n
  114. config RT_USING_GD
  115. bool "Using GD SPI NorFlash"
  116. default n
  117. config RT_USING_ENC28J60
  118. bool "Using ENC28J60 SPI Ethernet network interface"
  119. select RT_USING_LWIP
  120. default n
  121. config RT_USING_SPI_WIFI
  122. bool "Using RW009/007 SPI Wi-Fi wireless interface"
  123. select RT_USING_LWIP
  124. default n
  125. endif
  126. config RT_USING_WDT
  127. bool "Using Watch Dog device drivers"
  128. default n
  129. config RT_USING_WIFI
  130. bool "Using Wi-Fi network"
  131. default n
  132. menu "Using USB"
  133. config RT_USING_USB_HOST
  134. bool "Using USB host"
  135. default n
  136. if RT_USING_USB_HOST
  137. config RT_USBH_MSTORAGE
  138. bool "Enable Udisk Drivers"
  139. default n
  140. if RT_USBH_MSTORAGE
  141. config UDISK_MOUNTPOINT
  142. string "Udisk mount dir"
  143. default "/"
  144. endif
  145. endif
  146. config RT_USING_USB_DEVICE
  147. bool "Using USB device"
  148. default n
  149. if RT_USING_USB_DEVICE
  150. config RT_USB_DEVICE_COMPOSITE
  151. bool "Enable composite device"
  152. default n
  153. choice
  154. prompt "Device type"
  155. default _RT_USB_DEVICE_CDC
  156. depends on !RT_USB_DEVICE_COMPOSITE
  157. config _RT_USB_DEVICE_CDC
  158. bool "Enable to use device as CDC device"
  159. select RT_USB_DEVICE_CDC
  160. config _RT_USB_DEVICE_MSTORAGE
  161. bool "Enable to use device as Mass Storage device"
  162. select RT_USB_DEVICE_MSTORAGE
  163. config _RT_USB_DEVICE_HID
  164. bool "Enable to use device as HID device"
  165. select RT_USB_DEVICE_HID
  166. config _RT_USB_DEVICE_RNDIS
  167. bool "Enable to use device as rndis device"
  168. select RT_USB_DEVICE_RNDIS
  169. depends on RT_USING_LWIP
  170. config _RT_USB_DEVICE_ECM
  171. bool "Enable to use device as ecm device"
  172. select RT_USB_DEVICE_ECM
  173. depends on RT_USING_LWIP
  174. config _RT_USB_DEVICE_WINUSB
  175. bool "Enable to use device as winusb device"
  176. select RT_USB_DEVICE_WINUSB
  177. endchoice
  178. if RT_USB_DEVICE_COMPOSITE
  179. config RT_USB_DEVICE_CDC
  180. bool "Enable to use device as CDC device"
  181. default y
  182. config RT_USB_DEVICE_MSTORAGE
  183. bool "Enable to use device as Mass Storage device"
  184. default n
  185. config RT_USB_DEVICE_HID
  186. bool "Enable to use device as HID device"
  187. default n
  188. config RT_USB_DEVICE_RNDIS
  189. bool "Enable to use device as rndis device"
  190. default n
  191. depends on RT_USING_LWIP
  192. config RT_USB_DEVICE_ECM
  193. bool "Enable to use device as ecm device"
  194. default n
  195. depends on RT_USING_LWIP
  196. config RT_USB_DEVICE_WINUSB
  197. bool "Enable to use device as winusb device"
  198. default n
  199. endif
  200. if RT_USB_DEVICE_MSTORAGE
  201. config RT_USB_MSTORAGE_DISK_NAME
  202. string "msc class disk name"
  203. default "flash0"
  204. endif
  205. if RT_USB_DEVICE_HID
  206. config RT_USB_DEVICE_HID_KEYBOARD
  207. bool "Use to HID device as Keyboard"
  208. default n
  209. if RT_USB_DEVICE_HID_KEYBOARD
  210. config RT_USB_DEVICE_HID_KEYBOARD_NUMBER
  211. int "Number of Keyboard(max 3)"
  212. default 1
  213. range 1 3
  214. endif
  215. config RT_USB_DEVICE_HID_MOUSE
  216. bool "Use to HID device as Mouse"
  217. default n
  218. config RT_USB_DEVICE_HID_GENERAL
  219. bool "Use to HID device as General HID device"
  220. default y
  221. if RT_USB_DEVICE_HID_GENERAL
  222. config RT_USB_DEVICE_HID_GENERAL_OUT_REPORT_LENGTH
  223. int "General HID device out report length"
  224. default 63
  225. range 0 63
  226. config RT_USB_DEVICE_HID_GENERAL_IN_REPORT_LENGTH
  227. int "General HID device in report length"
  228. default 63
  229. range 0 63
  230. endif
  231. config RT_USB_DEVICE_HID_MEDIA
  232. bool "Use to HID device as media keyboard"
  233. default y
  234. endif
  235. endif
  236. endmenu
  237. endmenu