KConfig 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  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. menu "Using USB"
  79. config RT_USING_USB_HOST
  80. bool "Using USB host"
  81. default n
  82. if RT_USING_USB_HOST
  83. config RT_USBH_ADK
  84. bool "Enable connected with Android by ADK USB"
  85. default n
  86. endif
  87. config RT_USING_USB_DEVICE
  88. bool "Using USB device"
  89. default n
  90. if RT_USING_USB_DEVICE
  91. config RT_USB_DEVICE_COMPOSITE
  92. bool "Enable composite device"
  93. default n
  94. choice
  95. prompt "Device type"
  96. default _RT_USB_DEVICE_CDC
  97. depends on !RT_USB_DEVICE_COMPOSITE
  98. config _RT_USB_DEVICE_CDC
  99. bool "Enable to use device as CDC device"
  100. select RT_USB_DEVICE_CDC
  101. config _RT_USB_DEVICE_MSTORAGE
  102. bool "Enable to use device as Mass Storage device"
  103. select RT_USB_DEVICE_MSTORAGE
  104. config _RT_USB_DEVICE_HID
  105. bool "Enable to use device as HID device"
  106. select RT_USB_DEVICE_HID
  107. endchoice
  108. if RT_USB_DEVICE_COMPOSITE
  109. config RT_USB_DEVICE_CDC
  110. bool "Enable to use device as CDC device"
  111. default y
  112. config RT_USB_DEVICE_MSTORAGE
  113. bool "Enable to use device as Mass Storage device"
  114. default n
  115. config RT_USB_DEVICE_HID
  116. bool "Enable to use device as HID device"
  117. default n
  118. endif
  119. if RT_USB_DEVICE_HID
  120. config RT_USB_DEVICE_HID_KEYBOARD
  121. bool "Use to HID device as Keyboard"
  122. default n
  123. if RT_USB_DEVICE_HID_KEYBOARD
  124. config RT_USB_DEVICE_HID_KEYBOARD_NUMBER
  125. int "Number of Keyboard(max 3)"
  126. default 1
  127. range 1 3
  128. endif
  129. config RT_USB_DEVICE_HID_MOUSE
  130. bool "Use to HID device as Mouse"
  131. default n
  132. config RT_USB_DEVICE_HID_GENERAL
  133. bool "Use to HID device as General HID device"
  134. default y
  135. if RT_USB_DEVICE_HID_GENERAL
  136. config RT_USB_DEVICE_HID_GENERAL_OUT_REPORT_LENGTH
  137. int "General HID device out report length"
  138. default 63
  139. range 0 63
  140. config RT_USB_DEVICE_HID_GENERAL_IN_REPORT_LENGTH
  141. int "General HID device in report length"
  142. default 63
  143. range 0 63
  144. endif
  145. config RT_USB_DEVICE_HID_MEDIA
  146. bool "Use to HID device as media keyboard"
  147. default y
  148. endif
  149. endif
  150. endmenu
  151. endmenu