Kconfig 7.9 KB

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