KConfig 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  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_ADK
  87. bool "Enable connected with Android by ADK USB"
  88. default n
  89. endif
  90. config RT_USING_USB_DEVICE
  91. bool "Using USB device"
  92. default n
  93. if RT_USING_USB_DEVICE
  94. config RT_USB_DEVICE_COMPOSITE
  95. bool "Enable composite device"
  96. default n
  97. choice
  98. prompt "Device type"
  99. default _RT_USB_DEVICE_CDC
  100. depends on !RT_USB_DEVICE_COMPOSITE
  101. config _RT_USB_DEVICE_CDC
  102. bool "Enable to use device as CDC device"
  103. select RT_USB_DEVICE_CDC
  104. config _RT_USB_DEVICE_MSTORAGE
  105. bool "Enable to use device as Mass Storage device"
  106. select RT_USB_DEVICE_MSTORAGE
  107. config _RT_USB_DEVICE_HID
  108. bool "Enable to use device as HID device"
  109. select RT_USB_DEVICE_HID
  110. config _RT_USB_DEVICE_RNDIS
  111. bool "Enable to use device as rndis device"
  112. select RT_USB_DEVICE_RNDIS
  113. depends on RT_USING_LWIP
  114. config _RT_USB_DEVICE_ECM
  115. bool "Enable to use device as ecm device"
  116. select RT_USB_DEVICE_ECM
  117. depends on RT_USING_LWIP
  118. config _RT_USB_DEVICE_WINUSB
  119. bool "Enable to use device as winusb device"
  120. select RT_USB_DEVICE_WINUSB
  121. endchoice
  122. if RT_USB_DEVICE_COMPOSITE
  123. config RT_USB_DEVICE_CDC
  124. bool "Enable to use device as CDC device"
  125. default y
  126. config RT_USB_DEVICE_MSTORAGE
  127. bool "Enable to use device as Mass Storage device"
  128. default n
  129. config RT_USB_DEVICE_HID
  130. bool "Enable to use device as HID device"
  131. default n
  132. config RT_USB_DEVICE_RNDIS
  133. bool "Enable to use device as rndis device"
  134. default n
  135. depends on RT_USING_LWIP
  136. config RT_USB_DEVICE_ECM
  137. bool "Enable to use device as ecm device"
  138. default n
  139. depends on RT_USING_LWIP
  140. config RT_USB_DEVICE_WINUSB
  141. bool "Enable to use device as winusb device"
  142. default n
  143. endif
  144. if RT_USB_DEVICE_MSTORAGE
  145. config RT_USB_MSTORAGE_DISK_NAME
  146. string "msc class disk name"
  147. default "flash0"
  148. endif
  149. if RT_USB_DEVICE_HID
  150. config RT_USB_DEVICE_HID_KEYBOARD
  151. bool "Use to HID device as Keyboard"
  152. default n
  153. if RT_USB_DEVICE_HID_KEYBOARD
  154. config RT_USB_DEVICE_HID_KEYBOARD_NUMBER
  155. int "Number of Keyboard(max 3)"
  156. default 1
  157. range 1 3
  158. endif
  159. config RT_USB_DEVICE_HID_MOUSE
  160. bool "Use to HID device as Mouse"
  161. default n
  162. config RT_USB_DEVICE_HID_GENERAL
  163. bool "Use to HID device as General HID device"
  164. default y
  165. if RT_USB_DEVICE_HID_GENERAL
  166. config RT_USB_DEVICE_HID_GENERAL_OUT_REPORT_LENGTH
  167. int "General HID device out report length"
  168. default 63
  169. range 0 63
  170. config RT_USB_DEVICE_HID_GENERAL_IN_REPORT_LENGTH
  171. int "General HID device in report length"
  172. default 63
  173. range 0 63
  174. endif
  175. config RT_USB_DEVICE_HID_MEDIA
  176. bool "Use to HID device as media keyboard"
  177. default y
  178. endif
  179. endif
  180. endmenu
  181. endmenu