Kconfig 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. menu "Hardware Drivers Config"
  2. config SOC_CY8C624ABZI_S2D44
  3. bool
  4. select SOC_SERIES_IFX_PSOC62
  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. menuconfig BSP_USING_HW_I2C
  131. bool "Enable Hardware I2C Bus"
  132. default n
  133. select RT_USING_I2C
  134. select RT_USING_PIN
  135. if BSP_USING_HW_I2C
  136. config BSP_USING_HW_I2C3
  137. bool "Enable I2C3 Bus (User I2C)"
  138. default n
  139. if BSP_USING_HW_I2C3
  140. comment "Notice: P6_0 --> 48; P6_1 --> 49"
  141. config BSP_I2C3_SCL_PIN
  142. int "i2c3 SCL pin number"
  143. range 1 113
  144. default 48
  145. config BSP_I2C3_SDA_PIN
  146. int "i2c3 SDA pin number"
  147. range 1 113
  148. default 49
  149. endif
  150. config BSP_USING_HW_I2C6
  151. bool "Enable I2C6 Bus (User I2C)"
  152. default n
  153. if BSP_USING_HW_I2C6
  154. comment "Notice: P13_0 --> 48; P13_1 --> 49"
  155. config BSP_I2C6_SCL_PIN
  156. int "i2c6 SCL pin number"
  157. range 1 113
  158. default 104
  159. config BSP_I2C6_SDA_PIN
  160. int "i2c6 SDA pin number"
  161. range 1 113
  162. default 105
  163. endif
  164. endif
  165. menuconfig BSP_USING_I2C
  166. bool "Enable Software I2C Bus"
  167. default n
  168. select RT_USING_I2C
  169. select RT_USING_I2C_BITOPS
  170. select RT_USING_PIN
  171. if BSP_USING_I2C
  172. config BSP_USING_I2C1
  173. bool "Enable I2C1 Bus (User I2C)"
  174. default n
  175. if BSP_USING_I2C1
  176. comment "Notice: P13_1 --> 105; P13_2 --> 106"
  177. config BSP_I2C1_SCL_PIN
  178. int "i2c1 SCL pin number"
  179. range 1 113
  180. default 105
  181. config BSP_I2C1_SDA_PIN
  182. int "i2c1 SDA pin number"
  183. range 1 113
  184. default 106
  185. endif
  186. endif
  187. menuconfig BSP_USING_RTC
  188. bool "Enable RTC"
  189. select RT_USING_RTC
  190. default n
  191. if BSP_USING_RTC
  192. choice
  193. prompt "Select clock source"
  194. default BSP_RTC_USING_LSE
  195. config BSP_RTC_USING_LSE
  196. bool "RTC USING LSE"
  197. config BSP_RTC_USING_LSI
  198. bool "RTC USING LSI"
  199. endchoice
  200. endif
  201. config BSP_USING_ON_CHIP_FLASH
  202. bool "Enable on-chip FLASH"
  203. default n
  204. config BSP_USING_WDT
  205. bool "Enable Watchdog Timer"
  206. select RT_USING_WDT
  207. default n
  208. menuconfig BSP_USING_DAC
  209. bool "Enable DAC"
  210. default n
  211. select RT_USING_DAC
  212. if BSP_USING_DAC
  213. config BSP_USING_DAC1
  214. bool "Enable DAC1"
  215. default n
  216. config BSP_USING_DAC2
  217. bool "Enable DAC2"
  218. default n
  219. endif
  220. menuconfig BSP_USING_TIM
  221. bool "Enable timer"
  222. default n
  223. select RT_USING_HWTIMER
  224. if BSP_USING_TIM
  225. config BSP_USING_TIM1
  226. bool "Enable TIM1"
  227. default n
  228. config BSP_USING_TIM2
  229. bool "Enable TIM2"
  230. default n
  231. endif
  232. endmenu
  233. endmenu