Kconfig 8.1 KB

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