Kconfig 16 KB

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