Kconfig 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  1. menu "Hardware Drivers Config"
  2. config SOC_IFX_PSOC6_43012
  3. bool
  4. select SOC_SERIES_IFX_PSOC6
  5. select RT_USING_COMPONENTS_INIT
  6. select RT_USING_USER_MAIN
  7. default y
  8. menu "Onboard Peripheral Drivers"
  9. config BSP_USING_USB_TO_USART
  10. bool "Enable USB TO USART (uart5)"
  11. select BSP_USING_UART
  12. select BSP_USING_UART5
  13. default y
  14. endmenu
  15. menu "On-chip Peripheral Drivers"
  16. config BSP_USING_GPIO
  17. bool "Enable GPIO"
  18. select RT_USING_PIN
  19. default y
  20. menuconfig BSP_USING_UART
  21. bool "Enable UART"
  22. default y
  23. select RT_USING_SERIAL
  24. if BSP_USING_UART
  25. config BSP_USING_UART0
  26. bool "Enable UART0"
  27. default n
  28. config BSP_USING_UART1
  29. bool "Enable UART1"
  30. default n
  31. config BSP_USING_UART2
  32. bool "Enable UART2"
  33. default n
  34. config BSP_USING_UART3
  35. bool "Enable UART3"
  36. default n
  37. config BSP_USING_UART4
  38. bool "Enable UART4"
  39. default n
  40. config BSP_USING_UART5
  41. bool "Enable UART5"
  42. default y
  43. endif
  44. menuconfig BSP_USING_PWM
  45. bool "Enable PWM"
  46. default n
  47. select RT_USING_PWM
  48. if BSP_USING_PWM
  49. menuconfig BSP_USING_PWM0
  50. bool "Enable timer0 output pwm"
  51. default n
  52. if BSP_USING_PWM0
  53. menuconfig BSP_USING_PWM0_CH3
  54. bool "Enable PWM0 channel3"
  55. default n
  56. if BSP_USING_PWM0_CH3
  57. config BSP_USING_PWM0_PORT13
  58. bool "Enable PWM0-PORT13 output pwm"
  59. default n
  60. endif
  61. menuconfig BSP_USING_PWM0_CH7
  62. bool "Enable PWM0 channel7"
  63. default n
  64. if BSP_USING_PWM0_CH7
  65. config BSP_USING_PWM0_PORT2
  66. bool "Enable PWM0-PORT2 output pwm"
  67. default n
  68. endif
  69. if BSP_USING_PWM0_CH7
  70. config BSP_USING_PWM0_PORT5
  71. bool "Enable PWM0-PORT5 output pwm"
  72. default n
  73. endif
  74. if BSP_USING_PWM0_CH7
  75. config BSP_USING_PWM0_PORT7
  76. bool "Enable PWM0-PORT7 output pwm"
  77. default n
  78. endif
  79. if BSP_USING_PWM0_CH7
  80. config BSP_USING_PWM0_PORT9
  81. bool "Enable PWM0-PORT9 output pwm"
  82. default n
  83. endif
  84. if BSP_USING_PWM0_CH7
  85. config BSP_USING_PWM0_PORT10
  86. bool "Enable PWM0-PORT10 output pwm"
  87. default n
  88. endif
  89. if BSP_USING_PWM0_CH7
  90. config BSP_USING_PWM0_PORT12
  91. bool "Enable PWM0-PORT12 output pwm"
  92. default n
  93. endif
  94. endif
  95. endif
  96. menuconfig BSP_USING_SPI
  97. bool "Enable SPI BUS"
  98. select RT_USING_SPI
  99. default n
  100. if BSP_USING_SPI
  101. menuconfig BSP_USING_SPI3
  102. bool "Enable SPI3 BUS"
  103. default n
  104. if BSP_USING_SPI3
  105. config BSP_USING_SPI3_SAMPLE
  106. bool "Enable SPI3 BUS Sample"
  107. default n
  108. endif
  109. endif
  110. menuconfig BSP_USING_ADC
  111. bool "Enable ADC"
  112. default n
  113. select RT_USING_ADC
  114. if BSP_USING_ADC
  115. config BSP_USING_ADC1
  116. bool "Enable ADC1"
  117. default n
  118. endif
  119. config BSP_USING_SDMMC
  120. bool "Enable SDMMC (sd card)"
  121. default n
  122. select RT_USING_SDIO
  123. select RT_USING_DFS
  124. select RT_USING_DFS_ELMFAT
  125. if BSP_USING_SDMMC
  126. config BSP_USING_SDIO1
  127. bool "Enable SDIO1 (sd card)"
  128. default n
  129. endif
  130. config BSP_USING_QSPI_FLASH
  131. bool "Enable QSPI BUS"
  132. select RT_USING_QSPI
  133. select RT_USING_SFUD
  134. select RT_SFUD_USING_QSPI
  135. default n
  136. menuconfig BSP_USING_HW_I2C
  137. bool "Enable Hardware I2C Bus"
  138. default n
  139. select RT_USING_I2C
  140. select RT_USING_PIN
  141. if BSP_USING_HW_I2C
  142. config BSP_USING_HW_I2C3
  143. bool "Enable I2C3 Bus (User I2C)"
  144. default n
  145. if BSP_USING_HW_I2C3
  146. comment "Notice: P6_0 --> 48; P6_1 --> 49"
  147. config BSP_I2C3_SCL_PIN
  148. int "i2c3 SCL pin number"
  149. range 1 113
  150. default 48
  151. config BSP_I2C3_SDA_PIN
  152. int "i2c3 SDA pin number"
  153. range 1 113
  154. default 49
  155. endif
  156. config BSP_USING_HW_I2C6
  157. bool "Enable I2C6 Bus (User I2C)"
  158. default n
  159. if BSP_USING_HW_I2C6
  160. comment "Notice: P13_0 --> 48; P13_1 --> 49"
  161. config BSP_I2C6_SCL_PIN
  162. int "i2c6 SCL pin number"
  163. range 1 113
  164. default 104
  165. config BSP_I2C6_SDA_PIN
  166. int "i2c6 SDA pin number"
  167. range 1 113
  168. default 105
  169. endif
  170. endif
  171. menuconfig BSP_USING_I2C
  172. bool "Enable Software I2C Bus"
  173. default n
  174. select RT_USING_I2C
  175. select RT_USING_I2C_BITOPS
  176. select RT_USING_PIN
  177. if BSP_USING_I2C
  178. config BSP_USING_I2C1
  179. bool "Enable I2C1 Bus (User I2C)"
  180. default n
  181. if BSP_USING_I2C1
  182. comment "Notice: P13_1 --> 105; P13_2 --> 106"
  183. config BSP_I2C1_SCL_PIN
  184. int "i2c1 SCL pin number"
  185. range 1 113
  186. default 105
  187. config BSP_I2C1_SDA_PIN
  188. int "i2c1 SDA pin number"
  189. range 1 113
  190. default 106
  191. endif
  192. endif
  193. config BSP_USING_USBD
  194. bool "Enable USB Device"
  195. select RT_USING_USB_DEVICE
  196. default n
  197. menuconfig BSP_USING_RTC
  198. bool "Enable RTC"
  199. select RT_USING_RTC
  200. default n
  201. if BSP_USING_RTC
  202. choice
  203. prompt "Select clock source"
  204. default BSP_RTC_USING_LSE
  205. config BSP_RTC_USING_LSE
  206. bool "RTC USING LSE"
  207. config BSP_RTC_USING_LSI
  208. bool "RTC USING LSI"
  209. endchoice
  210. endif
  211. config BSP_USING_ON_CHIP_FLASH
  212. bool "Enable on-chip FLASH"
  213. default n
  214. config BSP_USING_WDT
  215. bool "Enable Watchdog Timer"
  216. select RT_USING_WDT
  217. default n
  218. menuconfig BSP_USING_DAC
  219. bool "Enable DAC"
  220. default n
  221. select RT_USING_DAC
  222. if BSP_USING_DAC
  223. config BSP_USING_DAC1
  224. bool "Enable DAC1"
  225. default n
  226. config BSP_USING_DAC2
  227. bool "Enable DAC2"
  228. default n
  229. endif
  230. menuconfig BSP_USING_TIM
  231. bool "Enable timer"
  232. default n
  233. select RT_USING_HWTIMER
  234. if BSP_USING_TIM
  235. config BSP_USING_TIM1
  236. bool "Enable TIM1"
  237. default n
  238. config BSP_USING_TIM2
  239. bool "Enable TIM2"
  240. default n
  241. endif
  242. endmenu
  243. menu "Board extended module Drivers"
  244. config BSP_USING_SLIDER
  245. bool "Enable Slider Demo"
  246. select BSP_USING_PWM
  247. select BSP_USING_PWM0
  248. select BSP_USING_PWM0_CH3
  249. select BSP_USING_PWM0_PORT13
  250. default n
  251. menuconfig BSP_USING_RW007
  252. bool "Enable RW007"
  253. default n
  254. select PKG_USING_RW007
  255. select BSP_USING_SPI
  256. select RW007_NOT_USE_EXAMPLE_DRIVERS
  257. if BSP_USING_RW007
  258. comment "Notice: P5_7 --> 47; P6_2 -->50; P6_5 --> 53; P12_0 --> 96"
  259. config IFX_RW007_SPI_BUS_NAME
  260. string "RW007 BUS NAME"
  261. default "spi3"
  262. config IFX_RW007_WIFI_SSID
  263. string "Wi-Fi SSID"
  264. default "realthread_VIP"
  265. config IFX_RW007_WIFI_PASSWORD
  266. string "Wi-Fi Password"
  267. default "your wifi password"
  268. config IFX_RW007_CS_PIN
  269. int "(INT)CS pin index"
  270. range 1 113
  271. default 96
  272. config IFX_RW007_BOOT0_PIN
  273. int "(INT)BOOT0 pin index (same as spi clk pin)"
  274. range 1 113
  275. default 50
  276. config IFX_RW007_BOOT1_PIN
  277. int "(INT)BOOT1 pin index (same as spi cs pin)"
  278. range 1 113
  279. default 96
  280. config IFX_RW007_INT_BUSY_PIN
  281. int "(INT)INT/BUSY pin index"
  282. range 1 113
  283. default 47
  284. config IFX_RW007_RST_PIN
  285. int "(INT)RESET pin index"
  286. range 1 113
  287. default 53
  288. endif
  289. endmenu
  290. endmenu