Kconfig 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432
  1. menu "Hardware Drivers Config"
  2. config SOC_CY8C624ALQI_S2D42
  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 (uart6)"
  11. select BSP_USING_UART
  12. select BSP_USING_UART6
  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 y
  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 n
  43. config BSP_USING_UART6
  44. bool "Enable UART6"
  45. default n
  46. endif
  47. menuconfig BSP_USING_PWM
  48. bool "Enable PWM"
  49. default n
  50. select RT_USING_PWM
  51. if BSP_USING_PWM
  52. menuconfig BSP_USING_PWM0
  53. bool "Enable timer0 output pwm"
  54. default n
  55. if BSP_USING_PWM0
  56. menuconfig BSP_USING_PWM0_CH0
  57. bool "Enable PWM0 channel0"
  58. default n
  59. if BSP_USING_PWM0_CH0
  60. config BSP_USING_PWM0_PORT0
  61. bool "Enable PWM0-PORT0 output pwm"
  62. default n
  63. endif
  64. menuconfig BSP_USING_PWM0_CH7
  65. bool "Enable PWM0 channel7"
  66. default n
  67. if BSP_USING_PWM0_CH7
  68. config BSP_USING_PWM0_PORT2
  69. bool "Enable PWM0-PORT2 output pwm"
  70. default n
  71. endif
  72. if BSP_USING_PWM0_CH7
  73. config BSP_USING_PWM0_PORT5
  74. bool "Enable PWM0-PORT5 output pwm"
  75. default n
  76. endif
  77. if BSP_USING_PWM0_CH7
  78. config BSP_USING_PWM0_PORT7
  79. bool "Enable PWM0-PORT7 output pwm"
  80. default n
  81. endif
  82. if BSP_USING_PWM0_CH7
  83. config BSP_USING_PWM0_PORT9
  84. bool "Enable PWM0-PORT9 output pwm"
  85. default n
  86. endif
  87. if BSP_USING_PWM0_CH7
  88. config BSP_USING_PWM0_PORT10
  89. bool "Enable PWM0-PORT10 output pwm"
  90. default n
  91. endif
  92. if BSP_USING_PWM0_CH7
  93. config BSP_USING_PWM0_PORT12
  94. bool "Enable PWM0-PORT12 output pwm"
  95. default n
  96. endif
  97. endif
  98. endif
  99. menuconfig BSP_USING_SPI
  100. bool "Enable SPI BUS"
  101. select RT_USING_SPI
  102. default n
  103. if BSP_USING_SPI
  104. menuconfig BSP_USING_SPI0
  105. bool "Enable SPI0 BUS"
  106. default n
  107. menuconfig BSP_USING_SPI3
  108. bool "Enable SPI3 BUS"
  109. default n
  110. if BSP_USING_SPI3
  111. config BSP_USING_SPI3_SAMPLE
  112. bool "Enable SPI3 BUS Sample"
  113. default n
  114. endif
  115. menuconfig BSP_USING_SPI6
  116. bool "Enable SPI6 BUS"
  117. default n
  118. endif
  119. menuconfig BSP_USING_ADC
  120. bool "Enable ADC"
  121. default n
  122. select RT_USING_ADC
  123. if BSP_USING_ADC
  124. config BSP_USING_ADC1
  125. bool "Enable ADC1"
  126. default n
  127. endif
  128. menuconfig BSP_USING_HW_I2C
  129. bool "Enable Hardware I2C Bus"
  130. default n
  131. select RT_USING_I2C
  132. select RT_USING_PIN
  133. if BSP_USING_HW_I2C
  134. config BSP_USING_HW_I2C2
  135. bool "Enable I2C2 Bus (User I2C)"
  136. default n
  137. if BSP_USING_HW_I2C2
  138. comment "Notice: P3_0 --> 24; P3_1 --> 25"
  139. config BSP_I2C2_SCL_PIN
  140. int "i2c2 SCL pin number"
  141. range 1 113
  142. default 24
  143. config BSP_I2C2_SDA_PIN
  144. int "i2c2 SDA pin number"
  145. range 1 113
  146. default 25
  147. endif
  148. config BSP_USING_HW_I2C4
  149. bool "Enable I2C4 Bus (Arduino I2C)"
  150. default n
  151. if BSP_USING_HW_I2C4
  152. comment "Notice: P8_0 --> 64; P8_1 --> 65"
  153. config BSP_I2C4_SCL_PIN
  154. int "i2c4 SCL pin number"
  155. range 1 113
  156. default 64
  157. config BSP_I2C4_SDA_PIN
  158. int "i2c4 SDA pin number"
  159. range 1 113
  160. default 65
  161. endif
  162. endif
  163. menuconfig BSP_USING_I2C
  164. bool "Enable Software I2C Bus"
  165. default n
  166. select RT_USING_I2C
  167. select RT_USING_I2C_BITOPS
  168. select RT_USING_PIN
  169. if BSP_USING_I2C
  170. config BSP_USING_I2C1
  171. bool "Enable I2C1 Bus (User I2C)"
  172. default n
  173. if BSP_USING_I2C1
  174. comment "Notice: P13_1 --> 105; P13_2 --> 106"
  175. config BSP_I2C1_SCL_PIN
  176. int "i2c1 SCL pin number"
  177. range 1 113
  178. default 105
  179. config BSP_I2C1_SDA_PIN
  180. int "i2c1 SDA pin number"
  181. range 1 113
  182. default 106
  183. endif
  184. endif
  185. menuconfig BSP_USING_RTC
  186. bool "Enable RTC"
  187. select RT_USING_RTC
  188. default n
  189. if BSP_USING_RTC
  190. choice
  191. prompt "Select clock source"
  192. default BSP_RTC_USING_LSE
  193. config BSP_RTC_USING_LSE
  194. bool "RTC USING LSE"
  195. config BSP_RTC_USING_LSI
  196. bool "RTC USING LSI"
  197. endchoice
  198. endif
  199. config BSP_USING_ON_CHIP_FLASH
  200. bool "Enable on-chip FLASH"
  201. default n
  202. config BSP_USING_WDT
  203. bool "Enable Watchdog Timer"
  204. select RT_USING_WDT
  205. default n
  206. menuconfig BSP_USING_DAC
  207. bool "Enable DAC"
  208. default n
  209. select RT_USING_DAC
  210. if BSP_USING_DAC
  211. config BSP_USING_DAC1
  212. bool "Enable DAC1"
  213. default n
  214. config BSP_USING_DAC2
  215. bool "Enable DAC2"
  216. default n
  217. endif
  218. menuconfig BSP_USING_TIM
  219. bool "Enable timer"
  220. default n
  221. select RT_USING_HWTIMER
  222. if BSP_USING_TIM
  223. config BSP_USING_TIM1
  224. bool "Enable TIM1"
  225. default n
  226. config BSP_USING_TIM2
  227. bool "Enable TIM2"
  228. default n
  229. endif
  230. menuconfig BSP_USING_SDMMC
  231. bool "Enable SDMMC (sd card)"
  232. default n
  233. select RT_USING_DFS
  234. select RT_USING_DFS_ELMFAT
  235. if BSP_USING_SDMMC
  236. menuconfig BSP_USING_SDCARD
  237. bool "Enable SDCARD (sd card)"
  238. select BSP_USING_SDCARD_PIN_CONFIG
  239. default n
  240. if BSP_USING_SDCARD
  241. config BSP_USING_SDCARD_EMMC_ENANBLE
  242. bool "Enable SDCARD emmc"
  243. default false
  244. config BSP_USING_SDCARD_BUS_WIDTH
  245. int "Enable SDCARD bus width"
  246. default 4
  247. config BSP_USING_SDCARD_LED_CTRL_ENANBLE
  248. bool "Enable SDCARD led control"
  249. default false
  250. menuconfig BSP_USING_SDCARD_PIN_CONFIG
  251. bool "Enable SDCARD pin config"
  252. default y
  253. if BSP_USING_SDCARD_PIN_CONFIG
  254. config BSP_USING_SDCARD_CMD_PIN
  255. int "Enable SDCARD cmd pin,default:P2_4 --> 20"
  256. default 20
  257. config BSP_USING_SDCARD_CLK_PIN
  258. int "Enable SDCARD clk pin,default:P2_5 --> 21"
  259. default 21
  260. config BSP_USING_SDCARD_DAT0_PIN
  261. int "Enable SDCARD dat0 pin,default:P2_0 --> 16"
  262. default 16
  263. config BSP_USING_SDCARD_DAT1_PIN
  264. int "Enable SDCARD dat1 pin,default:P2_1 --> 17"
  265. default 17
  266. config BSP_USING_SDCARD_DAT2_PIN
  267. int "Enable SDCARD dat2 pin,default:P2_2 --> 18"
  268. default 18
  269. config BSP_USING_SDCARD_DAT3_PIN
  270. int "Enable SDCARD dat3 pin,default:P2_3 --> 19"
  271. default 19
  272. config BSP_USING_SDCARD_DAT4_PIN
  273. int "Enable SDCARD dat4 pin,default:NC"
  274. default -1
  275. config BSP_USING_SDCARD_DAT5_PIN
  276. int "Enable SDCARD dat5 pin,default:NC"
  277. default -1
  278. config BSP_USING_SDCARD_DAT6_PIN
  279. int "Enable SDCARD dat6 pin,default:NC"
  280. default -1
  281. config BSP_USING_SDCARD_DAT7_PIN
  282. int "Enable SDCARD dat7 pin,default:NC"
  283. default -1
  284. config BSP_USING_SDCARD_DETECT_PIN
  285. int "Enable SDCARD detect pin,default:P2_6 --> 22"
  286. default 22
  287. config BSP_USING_SDCARD_IO_VOLT_SEL_PIN
  288. int "Enable SDCARD io volt sel pin,default:NC"
  289. default -1
  290. config BSP_USING_SDCARD_CARD_IF_PWR_EN_PIN
  291. int "Enable SDCARD card if pwr en pin,default:NC"
  292. default -1
  293. config BSP_USING_SDCARD_CARD_MECH_WRITE_PROT_PIN
  294. int "Enable SDCARD card mech write prot pin,default:NC"
  295. default -1
  296. if BSP_USING_SDCARD_LED_CTRL_ENANBLE
  297. config BSP_USING_SDCARD_LED_CTRL_PIN
  298. int "Enable SDCARD led ctrl pin,default:NC"
  299. default -1
  300. endif
  301. config BSP_USING_SDCARD_CARD_EMMC_RESET_PIN
  302. int "Enable SDCARD card emmc reset pin,default:NC"
  303. default -1
  304. endif
  305. endif
  306. endif
  307. menuconfig BSP_USING_FS
  308. bool "Enable filesystem"
  309. default n
  310. if BSP_USING_FS
  311. config BSP_USING_SDCARD_FS
  312. bool "Enable SDCARD filesystem"
  313. select BSP_USING_SDHI
  314. select RT_USING_DFS_ELMFAT
  315. default n
  316. endif
  317. menuconfig BSP_USING_LVGL
  318. bool "Enable LVGL for LCD"
  319. select PKG_USING_LVGL
  320. default n
  321. if BSP_USING_LVGL
  322. config BSP_USING_LCD_ILI9431
  323. bool "Enable LVGL for LCD_ILI9431"
  324. select PKG_USING_ILI9341
  325. select BSP_USING_SPI
  326. select BSP_USING_SPI0
  327. default n
  328. endif
  329. if BSP_USING_LVGL
  330. config BSP_USING_LVGL_DEMO
  331. bool "Enable LVGL demo"
  332. select PKG_USING_LV_MUSIC_DEMO
  333. default y
  334. endif
  335. endmenu
  336. menu "Board extended module Drivers"
  337. config BSP_USING_SLIDER
  338. bool "Enable Slider"
  339. default n
  340. if BSP_USING_SLIDER
  341. config BSP_USING_SLIDER_SAMPLE
  342. bool "Enable Slider Demo"
  343. select BSP_USING_PWM
  344. select BSP_USING_PWM0
  345. select BSP_USING_PWM0_CH0
  346. select BSP_USING_PWM0_PORT0
  347. default n
  348. endif
  349. menuconfig BSP_USING_RW007
  350. bool "Enable RW007"
  351. default n
  352. select PKG_USING_RW007
  353. select BSP_USING_SPI
  354. select BSP_USING_SPI0
  355. select RW007_NOT_USE_EXAMPLE_DRIVERS
  356. if BSP_USING_RW007
  357. comment "Notice: P5_7 --> 47; P5_6 -->46; P0_5 --> 5; P0_4 --> 4"
  358. config IFX_RW007_SPI_BUS_NAME
  359. string "RW007 BUS NAME"
  360. default "spi0"
  361. config IFX_RW007_WIFI_SSID
  362. string "Wi-Fi SSID"
  363. default "realthread_VIP"
  364. config IFX_RW007_WIFI_PASSWORD
  365. string "Wi-Fi Password"
  366. default "your wifi password"
  367. config IFX_RW007_CS_PIN
  368. int "(INT)CS pin index"
  369. range 1 113
  370. default 5
  371. config IFX_RW007_BOOT0_PIN
  372. int "(INT)BOOT0 pin index (same as spi clk pin)"
  373. range 1 113
  374. default 4
  375. config IFX_RW007_BOOT1_PIN
  376. int "(INT)BOOT1 pin index (same as spi cs pin)"
  377. range 1 113
  378. default 5
  379. config IFX_RW007_INT_BUSY_PIN
  380. int "(INT)INT/BUSY pin index"
  381. range 1 113
  382. default 47
  383. config IFX_RW007_RST_PIN
  384. int "(INT)RESET pin index"
  385. range 1 113
  386. default 46
  387. endif
  388. config BSP_USING_CYW43012_WIFI
  389. bool "Enable cyw43012 wifi"
  390. select PKG_USING_WLAN_CYW43012
  391. default n
  392. config BSP_USING_CYW43012_BT
  393. bool "Enable cyw43012 Bluetooth"
  394. select PKG_USING_BT_CYW43012
  395. default n
  396. endmenu
  397. endmenu