Kconfig 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  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. config RT_USING_HWTIMER
  14. bool "Using hardware timer device drivers"
  15. default n
  16. config RT_USING_CPUTIME
  17. bool "Enable CPU time for high resolution clock counter"
  18. default n
  19. help
  20. When enable this option, the BSP should provide a rt_clock_cputime_ops
  21. for CPU time by:
  22. const static struct rt_clock_cputime_ops _ops = {...};
  23. clock_cpu_setops(&_ops);
  24. Then user can use high resolution clock counter with:
  25. ts1 = clock_cpu_gettime();
  26. ts2 = clock_cpu_gettime();
  27. /* and get the ms of delta tick with API: */
  28. ms_tick = clock_cpu_millisecond(t2 - t1);
  29. us_tick = clock_cpu_microsecond(t2 - t1);
  30. if RT_USING_CPUTIME
  31. config RT_USING_CPUTIME_CORTEXM
  32. bool "Use DWT for CPU time"
  33. default y
  34. depends on ARCH_ARM_CORTEX_M3 || ARCH_ARM_CORTEX_M4 || ARCH_ARM_CORTEX_M7
  35. help
  36. Some Cortex-M3/4/7 MCU has Data Watchpoint and Trace Register, use
  37. the cycle counter in DWT for CPU time.
  38. endif
  39. config RT_USING_I2C
  40. bool "Using I2C device drivers"
  41. default n
  42. if RT_USING_I2C
  43. config RT_USING_I2C_BITOPS
  44. bool "Use GPIO to simulate I2C"
  45. default y
  46. endif
  47. config RT_USING_PIN
  48. bool "Using generic GPIO device drivers"
  49. default y
  50. config RT_USING_MTD_NOR
  51. bool "Using MTD Nor Flash device drivers"
  52. default n
  53. config RT_USING_MTD_NAND
  54. bool "Using MTD Nand Flash device drivers"
  55. default n
  56. if RT_USING_MTD_NAND
  57. config RT_MTD_NAND_DEBUG
  58. bool "Enable MTD Nand operations debug information"
  59. default n
  60. endif
  61. config RT_USING_RTC
  62. bool "Using RTC device drivers"
  63. default n
  64. if RT_USING_RTC
  65. config RT_USING_SOFT_RTC
  66. bool "Using software simulation RTC device"
  67. default n
  68. config RTC_SYNC_USING_NTP
  69. bool "Using NTP auto sync RTC time"
  70. select PKG_NETUTILS_NTP
  71. default n
  72. if RTC_SYNC_USING_NTP
  73. config RTC_NTP_FIRST_SYNC_DELAY
  74. int "NTP first sync delay time(second) for network connect"
  75. default 30
  76. config RTC_NTP_SYNC_PERIOD
  77. int "NTP auto sync period(second)"
  78. default 3600
  79. endif
  80. endif
  81. config RT_USING_SDIO
  82. bool "Using SD/MMC device drivers"
  83. default n
  84. config RT_USING_SPI
  85. bool "Using SPI Bus/Device device drivers"
  86. default n
  87. if RT_USING_SPI
  88. config RT_USING_SPI_MSD
  89. bool "Using SD/TF card driver with spi"
  90. select RT_USING_DFS
  91. default n
  92. config RT_USING_SFUD
  93. bool "Using Serial Flash Universal Driver"
  94. default n
  95. if RT_USING_SFUD
  96. config RT_SFUD_USING_SFDP
  97. bool "Using auto probe flash JEDEC SFDP parameter"
  98. default y
  99. config RT_SFUD_USING_FLASH_INFO_TABLE
  100. bool "Using defined supported flash chip information table"
  101. default y
  102. config RT_SFUD_DEBUG
  103. bool "Show more SFUD debug information"
  104. default n
  105. endif
  106. config RT_USING_W25QXX
  107. bool "Using W25QXX SPI NorFlash"
  108. default n
  109. config RT_USING_GD
  110. bool "Using GD SPI NorFlash"
  111. default n
  112. config RT_USING_ENC28J60
  113. bool "Using ENC28J60 SPI Ethernet network interface"
  114. select RT_USING_LWIP
  115. default n
  116. config RT_USING_SPI_WIFI
  117. bool "Using RW009/007 SPI Wi-Fi wireless interface"
  118. select RT_USING_LWIP
  119. default n
  120. endif
  121. config RT_USING_WDT
  122. bool "Using Watch Dog device drivers"
  123. default n
  124. config RT_USING_WIFI
  125. bool "Using Wi-Fi network"
  126. default n
  127. menu "Using USB"
  128. config RT_USING_USB_HOST
  129. bool "Using USB host"
  130. default n
  131. if RT_USING_USB_HOST
  132. config RT_USBH_MSTORAGE
  133. bool "Enable Udisk Drivers"
  134. default n
  135. if RT_USBH_MSTORAGE
  136. config UDISK_MOUNTPOINT
  137. string "Udisk mount dir"
  138. default "/"
  139. endif
  140. endif
  141. config RT_USING_USB_DEVICE
  142. bool "Using USB device"
  143. default n
  144. if RT_USING_USB_DEVICE
  145. config RT_USB_DEVICE_COMPOSITE
  146. bool "Enable composite device"
  147. default n
  148. choice
  149. prompt "Device type"
  150. default _RT_USB_DEVICE_CDC
  151. depends on !RT_USB_DEVICE_COMPOSITE
  152. config _RT_USB_DEVICE_CDC
  153. bool "Enable to use device as CDC device"
  154. select RT_USB_DEVICE_CDC
  155. config _RT_USB_DEVICE_MSTORAGE
  156. bool "Enable to use device as Mass Storage device"
  157. select RT_USB_DEVICE_MSTORAGE
  158. config _RT_USB_DEVICE_HID
  159. bool "Enable to use device as HID device"
  160. select RT_USB_DEVICE_HID
  161. config _RT_USB_DEVICE_RNDIS
  162. bool "Enable to use device as rndis device"
  163. select RT_USB_DEVICE_RNDIS
  164. depends on RT_USING_LWIP
  165. config _RT_USB_DEVICE_ECM
  166. bool "Enable to use device as ecm device"
  167. select RT_USB_DEVICE_ECM
  168. depends on RT_USING_LWIP
  169. config _RT_USB_DEVICE_WINUSB
  170. bool "Enable to use device as winusb device"
  171. select RT_USB_DEVICE_WINUSB
  172. endchoice
  173. if RT_USB_DEVICE_COMPOSITE
  174. config RT_USB_DEVICE_CDC
  175. bool "Enable to use device as CDC device"
  176. default y
  177. config RT_USB_DEVICE_MSTORAGE
  178. bool "Enable to use device as Mass Storage device"
  179. default n
  180. config RT_USB_DEVICE_HID
  181. bool "Enable to use device as HID device"
  182. default n
  183. config RT_USB_DEVICE_RNDIS
  184. bool "Enable to use device as rndis device"
  185. default n
  186. depends on RT_USING_LWIP
  187. config RT_USB_DEVICE_ECM
  188. bool "Enable to use device as ecm device"
  189. default n
  190. depends on RT_USING_LWIP
  191. config RT_USB_DEVICE_WINUSB
  192. bool "Enable to use device as winusb device"
  193. default n
  194. endif
  195. if RT_USB_DEVICE_MSTORAGE
  196. config RT_USB_MSTORAGE_DISK_NAME
  197. string "msc class disk name"
  198. default "flash0"
  199. endif
  200. if RT_USB_DEVICE_HID
  201. config RT_USB_DEVICE_HID_KEYBOARD
  202. bool "Use to HID device as Keyboard"
  203. default n
  204. if RT_USB_DEVICE_HID_KEYBOARD
  205. config RT_USB_DEVICE_HID_KEYBOARD_NUMBER
  206. int "Number of Keyboard(max 3)"
  207. default 1
  208. range 1 3
  209. endif
  210. config RT_USB_DEVICE_HID_MOUSE
  211. bool "Use to HID device as Mouse"
  212. default n
  213. config RT_USB_DEVICE_HID_GENERAL
  214. bool "Use to HID device as General HID device"
  215. default y
  216. if RT_USB_DEVICE_HID_GENERAL
  217. config RT_USB_DEVICE_HID_GENERAL_OUT_REPORT_LENGTH
  218. int "General HID device out report length"
  219. default 63
  220. range 0 63
  221. config RT_USB_DEVICE_HID_GENERAL_IN_REPORT_LENGTH
  222. int "General HID device in report length"
  223. default 63
  224. range 0 63
  225. endif
  226. config RT_USB_DEVICE_HID_MEDIA
  227. bool "Use to HID device as media keyboard"
  228. default y
  229. endif
  230. endif
  231. endmenu
  232. endmenu