KConfig 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  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_ECM
  111. bool "Enable to use device as ecm device"
  112. select RT_USB_DEVICE_ECM
  113. depends on RT_USING_LWIP
  114. endchoice
  115. if RT_USB_DEVICE_COMPOSITE
  116. config RT_USB_DEVICE_CDC
  117. bool "Enable to use device as CDC device"
  118. default y
  119. config RT_USB_DEVICE_MSTORAGE
  120. bool "Enable to use device as Mass Storage device"
  121. default n
  122. config RT_USB_DEVICE_HID
  123. bool "Enable to use device as HID device"
  124. default n
  125. config RT_USB_DEVICE_ECM
  126. bool "Enable to use device as ecm device"
  127. default n
  128. depends on RT_USING_LWIP
  129. endif
  130. if RT_USB_DEVICE_HID
  131. config RT_USB_DEVICE_HID_KEYBOARD
  132. bool "Use to HID device as Keyboard"
  133. default n
  134. if RT_USB_DEVICE_HID_KEYBOARD
  135. config RT_USB_DEVICE_HID_KEYBOARD_NUMBER
  136. int "Number of Keyboard(max 3)"
  137. default 1
  138. range 1 3
  139. endif
  140. config RT_USB_DEVICE_HID_MOUSE
  141. bool "Use to HID device as Mouse"
  142. default n
  143. config RT_USB_DEVICE_HID_GENERAL
  144. bool "Use to HID device as General HID device"
  145. default y
  146. if RT_USB_DEVICE_HID_GENERAL
  147. config RT_USB_DEVICE_HID_GENERAL_OUT_REPORT_LENGTH
  148. int "General HID device out report length"
  149. default 63
  150. range 0 63
  151. config RT_USB_DEVICE_HID_GENERAL_IN_REPORT_LENGTH
  152. int "General HID device in report length"
  153. default 63
  154. range 0 63
  155. endif
  156. config RT_USB_DEVICE_HID_MEDIA
  157. bool "Use to HID device as media keyboard"
  158. default y
  159. endif
  160. endif
  161. endmenu
  162. endmenu