Kconfig 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  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_CPUTIME
  15. bool "Enable CPU time for high resolution clock counter"
  16. default n
  17. help
  18. When enable this option, the BSP should provide a rt_clock_cputime_ops
  19. for CPU time by:
  20. clock_cpu_setops(const struct rt_clock_cputime_ops *ops);
  21. Then developer can use high resolution clock counter with:
  22. ts = clock_cpu_gettime();
  23. /* The unit of clock_cpu_gettime() can be returned by */
  24. unit = clock_cpu_getres(); /* number for nanosecond */
  25. if RT_USING_CPUTIME
  26. config RT_USING_CPUTIME_CORTEXM
  27. bool "Use DWT for CPU time"
  28. default y
  29. depends on ARCH_ARM_CORTEX_M3 || ARCH_ARM_CORTEX_M4 || ARCH_ARM_CORTEX_M7
  30. help
  31. Some Cortex-M3/4/7 MCU has Data Watchpoint and Trace Register, use
  32. the cycle counter in DWT for CPU time.
  33. endif
  34. config RT_USING_I2C
  35. bool "Using I2C device drivers"
  36. default n
  37. if RT_USING_I2C
  38. config RT_USING_I2C_BITOPS
  39. bool "Use GPIO to simulate I2C"
  40. default y
  41. endif
  42. config RT_USING_PIN
  43. bool "Using generic GPIO device drivers"
  44. default y
  45. config RT_USING_MTD_NOR
  46. bool "Using MTD Nor Flash device drivers"
  47. default n
  48. config RT_USING_MTD_NAND
  49. bool "Using MTD Nand Flash device drivers"
  50. default n
  51. if RT_USING_MTD_NAND
  52. config RT_MTD_NAND_DEBUG
  53. bool "Enable MTD Nand operations debug information"
  54. default n
  55. endif
  56. config RT_USING_RTC
  57. bool "Using RTC device drivers"
  58. default n
  59. config RT_USING_SDIO
  60. bool "Using SD/MMC device drivers"
  61. default n
  62. config RT_USING_SPI
  63. bool "Using SPI Bus/Device device drivers"
  64. default n
  65. if RT_USING_SPI
  66. config RT_USING_SFUD
  67. bool "Using Serial Flash Universal Driver"
  68. default n
  69. if RT_USING_SFUD
  70. config RT_SFUD_USING_SFDP
  71. bool "Using auto probe flash JEDEC SFDP parameter"
  72. default y
  73. config RT_SFUD_USING_FLASH_INFO_TABLE
  74. bool "Using defined supported flash chip information table"
  75. default y
  76. config RT_SFUD_DEBUG
  77. bool "Show more SFUD debug information"
  78. default n
  79. endif
  80. config RT_USING_W25QXX
  81. bool "Using W25QXX SPI NorFlash"
  82. default n
  83. config RT_USING_GD
  84. bool "Using GD SPI NorFlash"
  85. default n
  86. config RT_USING_ENC28J60
  87. bool "Using ENC28J60 SPI Ethernet network interface"
  88. select RT_USING_LWIP
  89. default n
  90. config RT_USING_SPI_WIFI
  91. bool "Using RW009/007 SPI Wi-Fi wireless interface"
  92. select RT_USING_LWIP
  93. default n
  94. endif
  95. config RT_USING_WDT
  96. bool "Using Watch Dog device drivers"
  97. default n
  98. config RT_USING_WIFI
  99. bool "Using Wi-Fi network"
  100. default n
  101. menu "Using USB"
  102. config RT_USING_USB_HOST
  103. bool "Using USB host"
  104. default n
  105. if RT_USING_USB_HOST
  106. config RT_USBH_MSTORAGE
  107. bool "Enable Udisk Drivers"
  108. default n
  109. if RT_USBH_MSTORAGE
  110. config UDISK_MOUNTPOINT
  111. string "Udisk mount dir"
  112. default "/"
  113. endif
  114. endif
  115. config RT_USING_USB_DEVICE
  116. bool "Using USB device"
  117. default n
  118. if RT_USING_USB_DEVICE
  119. config RT_USB_DEVICE_COMPOSITE
  120. bool "Enable composite device"
  121. default n
  122. choice
  123. prompt "Device type"
  124. default _RT_USB_DEVICE_CDC
  125. depends on !RT_USB_DEVICE_COMPOSITE
  126. config _RT_USB_DEVICE_CDC
  127. bool "Enable to use device as CDC device"
  128. select RT_USB_DEVICE_CDC
  129. config _RT_USB_DEVICE_MSTORAGE
  130. bool "Enable to use device as Mass Storage device"
  131. select RT_USB_DEVICE_MSTORAGE
  132. config _RT_USB_DEVICE_HID
  133. bool "Enable to use device as HID device"
  134. select RT_USB_DEVICE_HID
  135. config _RT_USB_DEVICE_RNDIS
  136. bool "Enable to use device as rndis device"
  137. select RT_USB_DEVICE_RNDIS
  138. depends on RT_USING_LWIP
  139. config _RT_USB_DEVICE_ECM
  140. bool "Enable to use device as ecm device"
  141. select RT_USB_DEVICE_ECM
  142. depends on RT_USING_LWIP
  143. config _RT_USB_DEVICE_WINUSB
  144. bool "Enable to use device as winusb device"
  145. select RT_USB_DEVICE_WINUSB
  146. endchoice
  147. if RT_USB_DEVICE_COMPOSITE
  148. config RT_USB_DEVICE_CDC
  149. bool "Enable to use device as CDC device"
  150. default y
  151. config RT_USB_DEVICE_MSTORAGE
  152. bool "Enable to use device as Mass Storage device"
  153. default n
  154. config RT_USB_DEVICE_HID
  155. bool "Enable to use device as HID device"
  156. default n
  157. config RT_USB_DEVICE_RNDIS
  158. bool "Enable to use device as rndis device"
  159. default n
  160. depends on RT_USING_LWIP
  161. config RT_USB_DEVICE_ECM
  162. bool "Enable to use device as ecm device"
  163. default n
  164. depends on RT_USING_LWIP
  165. config RT_USB_DEVICE_WINUSB
  166. bool "Enable to use device as winusb device"
  167. default n
  168. endif
  169. if RT_USB_DEVICE_MSTORAGE
  170. config RT_USB_MSTORAGE_DISK_NAME
  171. string "msc class disk name"
  172. default "flash0"
  173. endif
  174. if RT_USB_DEVICE_HID
  175. config RT_USB_DEVICE_HID_KEYBOARD
  176. bool "Use to HID device as Keyboard"
  177. default n
  178. if RT_USB_DEVICE_HID_KEYBOARD
  179. config RT_USB_DEVICE_HID_KEYBOARD_NUMBER
  180. int "Number of Keyboard(max 3)"
  181. default 1
  182. range 1 3
  183. endif
  184. config RT_USB_DEVICE_HID_MOUSE
  185. bool "Use to HID device as Mouse"
  186. default n
  187. config RT_USB_DEVICE_HID_GENERAL
  188. bool "Use to HID device as General HID device"
  189. default y
  190. if RT_USB_DEVICE_HID_GENERAL
  191. config RT_USB_DEVICE_HID_GENERAL_OUT_REPORT_LENGTH
  192. int "General HID device out report length"
  193. default 63
  194. range 0 63
  195. config RT_USB_DEVICE_HID_GENERAL_IN_REPORT_LENGTH
  196. int "General HID device in report length"
  197. default 63
  198. range 0 63
  199. endif
  200. config RT_USB_DEVICE_HID_MEDIA
  201. bool "Use to HID device as media keyboard"
  202. default y
  203. endif
  204. endif
  205. endmenu
  206. endmenu