Kconfig 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  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. default y
  8. config RT_USING_CAN
  9. bool "Using CAN device drivers"
  10. default n
  11. config RT_USING_HWTIMER
  12. bool "Using hardware timer device drivers"
  13. default n
  14. config RT_USING_I2C
  15. bool "Using I2C device drivers"
  16. default n
  17. if RT_USING_I2C
  18. config RT_USING_I2C_BITOPS
  19. bool "Use GPIO to simulate I2C"
  20. default y
  21. endif
  22. config RT_USING_PIN
  23. bool "Using generic GPIO device drivers"
  24. default y
  25. config RT_USING_MTD_NOR
  26. bool "Using MTD Nor Flash device drivers"
  27. default n
  28. config RT_USING_MTD_NAND
  29. bool "Using MTD Nand Flash device drivers"
  30. default n
  31. if RT_USING_MTD_NAND
  32. config RT_MTD_NAND_DEBUG
  33. bool "Enable MTD Nand operations debug information"
  34. default n
  35. endif
  36. config RT_USING_RTC
  37. bool "Using RTC device drivers"
  38. default n
  39. config RT_USING_SDIO
  40. bool "Using SD/MMC device drivers"
  41. default n
  42. config RT_USING_SPI
  43. bool "Using SPI Bus/Device device drivers"
  44. default n
  45. if RT_USING_SPI
  46. config RT_USING_SFUD
  47. bool "Using Serial Flash Universal Driver"
  48. default n
  49. if RT_USING_SFUD
  50. config RT_SFUD_USING_SFDP
  51. bool "Using auto probe flash JEDEC SFDP parameter"
  52. default y
  53. config RT_SFUD_USING_FLASH_INFO_TABLE
  54. bool "Using defined supported flash chip information table"
  55. default y
  56. config RT_SFUD_DEBUG
  57. bool "Show more SFUD debug information"
  58. default n
  59. endif
  60. config RT_USING_W25QXX
  61. bool "Using W25QXX SPI NorFlash"
  62. default n
  63. config RT_USING_GD
  64. bool "Using GD SPI NorFlash"
  65. default n
  66. config RT_USING_ENC28J60
  67. bool "Using ENC28J60 SPI Ethernet network interface"
  68. select RT_USING_LWIP
  69. default n
  70. config RT_USING_SPI_WIFI
  71. bool "Using RW009/007 SPI Wi-Fi wireless interface"
  72. select RT_USING_LWIP
  73. default n
  74. endif
  75. config RT_USING_WDT
  76. bool "Using Watch Dog device drivers"
  77. default n
  78. config RT_USING_WIFI
  79. bool "Using Wi-Fi network"
  80. default n
  81. menu "Using USB"
  82. config RT_USING_USB_HOST
  83. bool "Using USB host"
  84. default n
  85. if RT_USING_USB_HOST
  86. config RT_USBH_MSTORAGE
  87. bool "Enable Udisk Drivers"
  88. default n
  89. if RT_USBH_MSTORAGE
  90. config UDISK_MOUNTPOINT
  91. string "Udisk mount dir"
  92. default "/"
  93. endif
  94. endif
  95. config RT_USING_USB_DEVICE
  96. bool "Using USB device"
  97. default n
  98. if RT_USING_USB_DEVICE
  99. config RT_USB_DEVICE_COMPOSITE
  100. bool "Enable composite device"
  101. default n
  102. choice
  103. prompt "Device type"
  104. default _RT_USB_DEVICE_CDC
  105. depends on !RT_USB_DEVICE_COMPOSITE
  106. config _RT_USB_DEVICE_CDC
  107. bool "Enable to use device as CDC device"
  108. select RT_USB_DEVICE_CDC
  109. config _RT_USB_DEVICE_MSTORAGE
  110. bool "Enable to use device as Mass Storage device"
  111. select RT_USB_DEVICE_MSTORAGE
  112. config _RT_USB_DEVICE_HID
  113. bool "Enable to use device as HID device"
  114. select RT_USB_DEVICE_HID
  115. config _RT_USB_DEVICE_RNDIS
  116. bool "Enable to use device as rndis device"
  117. select RT_USB_DEVICE_RNDIS
  118. depends on RT_USING_LWIP
  119. config _RT_USB_DEVICE_ECM
  120. bool "Enable to use device as ecm device"
  121. select RT_USB_DEVICE_ECM
  122. depends on RT_USING_LWIP
  123. config _RT_USB_DEVICE_WINUSB
  124. bool "Enable to use device as winusb device"
  125. select RT_USB_DEVICE_WINUSB
  126. endchoice
  127. if RT_USB_DEVICE_COMPOSITE
  128. config RT_USB_DEVICE_CDC
  129. bool "Enable to use device as CDC device"
  130. default y
  131. config RT_USB_DEVICE_MSTORAGE
  132. bool "Enable to use device as Mass Storage device"
  133. default n
  134. config RT_USB_DEVICE_HID
  135. bool "Enable to use device as HID device"
  136. default n
  137. config RT_USB_DEVICE_RNDIS
  138. bool "Enable to use device as rndis device"
  139. default n
  140. depends on RT_USING_LWIP
  141. config RT_USB_DEVICE_ECM
  142. bool "Enable to use device as ecm device"
  143. default n
  144. depends on RT_USING_LWIP
  145. config RT_USB_DEVICE_WINUSB
  146. bool "Enable to use device as winusb device"
  147. default n
  148. endif
  149. if RT_USB_DEVICE_MSTORAGE
  150. config RT_USB_MSTORAGE_DISK_NAME
  151. string "msc class disk name"
  152. default "flash0"
  153. endif
  154. if RT_USB_DEVICE_HID
  155. config RT_USB_DEVICE_HID_KEYBOARD
  156. bool "Use to HID device as Keyboard"
  157. default n
  158. if RT_USB_DEVICE_HID_KEYBOARD
  159. config RT_USB_DEVICE_HID_KEYBOARD_NUMBER
  160. int "Number of Keyboard(max 3)"
  161. default 1
  162. range 1 3
  163. endif
  164. config RT_USB_DEVICE_HID_MOUSE
  165. bool "Use to HID device as Mouse"
  166. default n
  167. config RT_USB_DEVICE_HID_GENERAL
  168. bool "Use to HID device as General HID device"
  169. default y
  170. if RT_USB_DEVICE_HID_GENERAL
  171. config RT_USB_DEVICE_HID_GENERAL_OUT_REPORT_LENGTH
  172. int "General HID device out report length"
  173. default 63
  174. range 0 63
  175. config RT_USB_DEVICE_HID_GENERAL_IN_REPORT_LENGTH
  176. int "General HID device in report length"
  177. default 63
  178. range 0 63
  179. endif
  180. config RT_USB_DEVICE_HID_MEDIA
  181. bool "Use to HID device as media keyboard"
  182. default y
  183. endif
  184. endif
  185. endmenu
  186. endmenu