Kconfig 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422
  1. menu "Hardware Drivers Config"
  2. menu "Onboard Peripheral Drivers"
  3. config BSP_USING_SPI_FLASH
  4. bool "Enable SPI FLASH (W25Q128 spi1)"
  5. select BSP_USING_SPI
  6. select BSP_USING_SPI1
  7. select RT_USING_SFUD
  8. select RT_SFUD_USING_SFDP
  9. default n
  10. menuconfig BSP_USING_FS
  11. bool "Enable File System"
  12. select RT_USING_DFS
  13. select RT_USING_DFS_ROMFS
  14. default n
  15. if BSP_USING_FS
  16. config BSP_USING_SDCARD_FATFS
  17. bool "Enable SDCARD (FATFS)"
  18. select BSP_USING_SDIO
  19. select RT_USING_DFS_ELMFAT
  20. default n
  21. if BSP_USING_SDCARD_FATFS
  22. menuconfig BSP_USING_FS_AUTO_MOUNT
  23. bool "Enable filesystem auto mount"
  24. default y
  25. endif
  26. config BSP_USING_FLASH_FATFS
  27. bool "Enable FAL filesystem partition base on W25Q128"
  28. select BSP_USING_FAL
  29. default n
  30. if BSP_USING_FLASH_FATFS
  31. menuconfig BSP_USING_FLASH_FS_AUTO_MOUNT
  32. bool "Enable filesystem auto mount"
  33. default y
  34. endif
  35. endif
  36. config BSP_USING_FAL
  37. bool "Enable FAL (enable on-chip flash and spi1 flash)"
  38. select BSP_USING_SPI_FLASH
  39. select RT_USING_FAL
  40. select FAL_DEBUG_CONFIG
  41. select FAL_PART_HAS_TABLE_CFG
  42. select FAL_USING_SFUD_PORT
  43. select BSP_USING_ON_CHIP_FLASH
  44. endmenu
  45. menu "On-chip Peripheral Drivers"
  46. config BSP_USING_GPIO
  47. bool "Enable GPIO"
  48. select RT_USING_PIN
  49. default y
  50. menuconfig BSP_USING_UART
  51. bool "Enable UART"
  52. default y
  53. select RT_USING_SERIAL
  54. if BSP_USING_UART
  55. config BSP_USING_UART1
  56. bool "Enable UART1"
  57. default y
  58. config BSP_UART1_RX_USING_DMA
  59. bool "Enable UART1 RX DMA"
  60. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  61. default n
  62. config BSP_UART1_TX_USING_DMA
  63. bool "Enable UART1 TX DMA"
  64. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  65. default n
  66. config BSP_USING_UART2
  67. bool "Enable UART2"
  68. default n
  69. config BSP_UART2_RX_USING_DMA
  70. bool "Enable UART2 RX DMA"
  71. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  72. default n
  73. config BSP_UART2_TX_USING_DMA
  74. bool "Enable UART2 TX DMA"
  75. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  76. default n
  77. config BSP_USING_UART3
  78. bool "Enable UART3"
  79. default n
  80. config BSP_UART3_RX_USING_DMA
  81. bool "Enable UART3 RX DMA"
  82. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  83. default n
  84. config BSP_UART3_TX_USING_DMA
  85. bool "Enable UART3 TX DMA"
  86. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  87. default n
  88. config BSP_USING_UART4
  89. bool "Enable UART4"
  90. default n
  91. config BSP_UART4_RX_USING_DMA
  92. bool "Enable UART4 RX DMA"
  93. depends on BSP_USING_UART4 && RT_SERIAL_USING_DMA
  94. default n
  95. config BSP_UART4_TX_USING_DMA
  96. bool "Enable UART4 TX DMA"
  97. depends on BSP_USING_UART4 && RT_SERIAL_USING_DMA
  98. default n
  99. config BSP_USING_UART5
  100. bool "Enable UART5"
  101. default n
  102. config BSP_UART5_RX_USING_DMA
  103. bool "Enable UART5 RX DMA"
  104. depends on BSP_USING_UART5 && RT_SERIAL_USING_DMA
  105. default n
  106. config BSP_UART5_TX_USING_DMA
  107. bool "Enable UART5 TX DMA"
  108. depends on BSP_USING_UART5 && RT_SERIAL_USING_DMA
  109. default n
  110. config BSP_USING_UART6
  111. bool "Enable UART6"
  112. default n
  113. config BSP_UART6_RX_USING_DMA
  114. bool "Enable UART6 RX DMA"
  115. depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA
  116. default n
  117. config BSP_UART6_TX_USING_DMA
  118. bool "Enable UART6 TX DMA"
  119. depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA
  120. default n
  121. endif
  122. menuconfig BSP_USING_TIM
  123. bool "Enable timer"
  124. default n
  125. select RT_USING_HWTIMER
  126. if BSP_USING_TIM
  127. config BSP_USING_TIM11
  128. bool "Enable TIM11"
  129. default n
  130. config BSP_USING_TIM13
  131. bool "Enable TIM13"
  132. default n
  133. config BSP_USING_TIM14
  134. bool "Enable TIM14"
  135. default n
  136. endif
  137. menuconfig BSP_USING_PWM
  138. bool "Enable PWM"
  139. default n
  140. select RT_USING_PWM
  141. if BSP_USING_PWM
  142. menuconfig BSP_USING_PWM1
  143. bool "Enable timer1 output PWM"
  144. default n
  145. if BSP_USING_PWM1
  146. config BSP_USING_PWM1_CH2
  147. bool "Enable PWM1 channel2"
  148. default n
  149. config BSP_USING_PWM1_CH3
  150. bool "Enable PWM1 channel3"
  151. default n
  152. endif
  153. menuconfig BSP_USING_PWM2
  154. bool "Enable timer2 output PWM"
  155. default n
  156. if BSP_USING_PWM2
  157. config BSP_USING_PWM2_CH3
  158. bool "Enable PWM2 channel3"
  159. default n
  160. config BSP_USING_PWM2_CH4
  161. bool "Enable PWM2 channel4"
  162. default n
  163. endif
  164. menuconfig BSP_USING_PWM3
  165. bool "Enable timer3 output PWM"
  166. default n
  167. if BSP_USING_PWM3
  168. config BSP_USING_PWM3_CH2
  169. bool "Enable PWM3 channel2"
  170. default n
  171. endif
  172. if BSP_USING_PWM3
  173. config BSP_USING_PWM3_CH4
  174. bool "Enable PWM3 channel4"
  175. default n
  176. endif
  177. menuconfig BSP_USING_PWM4
  178. bool "Enable timer4 output PWM"
  179. default n
  180. if BSP_USING_PWM4
  181. config BSP_USING_PWM4_CH1
  182. bool "Enable PWM4 channel1"
  183. default n
  184. endif
  185. menuconfig BSP_USING_PWM14
  186. bool "Enable timer14 output PWM"
  187. default n
  188. if BSP_USING_PWM14
  189. config BSP_USING_PWM14_CH1
  190. bool "Enable PWM14 channel1"
  191. default n
  192. endif
  193. endif
  194. config BSP_USING_ON_CHIP_FLASH
  195. bool "Enable on-chip FLASH"
  196. default n
  197. menuconfig BSP_USING_SOFT_SPI
  198. bool "Enable soft SPI BUS"
  199. default n
  200. select RT_USING_SPI
  201. select RT_USING_SOFT_SPI
  202. select RT_USING_PIN
  203. if BSP_USING_SOFT_SPI
  204. menuconfig BSP_USING_SOFT_SPI1
  205. bool "Enable soft SPI1 BUS (software simulation)"
  206. default n
  207. if BSP_USING_SOFT_SPI1
  208. config BSP_S_SPI1_SCK_PIN
  209. int "soft spi1 sck pin number(G,5)"
  210. range 0 143
  211. default 101
  212. config BSP_S_SPI1_MISO_PIN
  213. int "soft spi1 miso pin numbe(G,3)"
  214. range 0 143
  215. default 99
  216. config BSP_S_SPI1_MOSI_PIN
  217. int "soft spi1 mosi pin number(G,1)"
  218. range 0 143
  219. default 97
  220. endif
  221. menuconfig BSP_USING_SOFT_SPI2
  222. bool "Enable soft SPI2 BUS (software simulation)"
  223. default n
  224. if BSP_USING_SOFT_SPI2
  225. config BSP_S_SPI2_SCK_PIN
  226. int "soft spi2 sck pin number"
  227. range 0 143
  228. default 19
  229. config BSP_S_SPI2_MISO_PIN
  230. int "soft spi2 miso pin number"
  231. range 0 143
  232. default 20
  233. config BSP_S_SPI2_MOSI_PIN
  234. int "soft spi2 mosi pin number"
  235. range 0 143
  236. default 21
  237. endif
  238. endif
  239. menuconfig BSP_USING_SPI
  240. bool "Enable SPI BUS"
  241. default n
  242. select RT_USING_SPI
  243. if BSP_USING_SPI
  244. config BSP_USING_SPI1
  245. bool "Enable SPI1 BUS"
  246. default n
  247. config BSP_SPI1_TX_USING_DMA
  248. bool "Enable SPI1 TX DMA"
  249. depends on BSP_USING_SPI1
  250. default n
  251. config BSP_SPI1_RX_USING_DMA
  252. bool "Enable SPI1 RX DMA"
  253. depends on BSP_USING_SPI1
  254. select BSP_SPI1_TX_USING_DMA
  255. default n
  256. config BSP_USING_SPI2
  257. bool "Enable SPI2 BUS"
  258. default n
  259. config BSP_SPI2_TX_USING_DMA
  260. bool "Enable SPI2 TX DMA"
  261. depends on BSP_USING_SPI2
  262. default n
  263. config BSP_SPI2_RX_USING_DMA
  264. bool "Enable SPI2 RX DMA"
  265. depends on BSP_USING_SPI2
  266. select BSP_SPI2_TX_USING_DMA
  267. default n
  268. endif
  269. menuconfig BSP_USING_ADC
  270. bool "Enable ADC"
  271. default n
  272. select RT_USING_ADC
  273. if BSP_USING_ADC
  274. config BSP_USING_ADC1
  275. bool "Enable ADC1"
  276. default n
  277. config BSP_USING_ADC3
  278. bool "Enable ADC3"
  279. default n
  280. endif
  281. menuconfig BSP_USING_I2C
  282. bool "Enable I2C"
  283. default n
  284. if BSP_USING_I2C
  285. menuconfig BSP_USING_I2C1
  286. bool "Enable I2C1 BUS (software simulation)"
  287. default n
  288. select RT_USING_I2C
  289. select RT_USING_I2C_BITOPS
  290. select RT_USING_PIN
  291. if BSP_USING_I2C1
  292. config BSP_I2C1_SCL_PIN
  293. int "i2c1 scl pin number"
  294. range 0 143
  295. default 24
  296. config BSP_I2C1_SDA_PIN
  297. int "I2C1 sda pin number"
  298. range 0 143
  299. default 25
  300. endif
  301. endif
  302. config BSP_USING_ONBOARD_PM
  303. bool "Enable Power Management"
  304. select RT_USING_PM
  305. select RT_USING_HOOK
  306. default n
  307. menuconfig BSP_USING_DAC
  308. bool "Enable DAC"
  309. default n
  310. select RT_USING_DAC
  311. if BSP_USING_DAC
  312. config BSP_USING_DAC1
  313. bool "Enable DAC1"
  314. default n
  315. endif
  316. menuconfig BSP_USING_ONCHIP_RTC
  317. bool "Enable RTC"
  318. select RT_USING_RTC
  319. default n
  320. if BSP_USING_ONCHIP_RTC
  321. choice
  322. prompt "Select clock source"
  323. default BSP_RTC_USING_LSE
  324. config BSP_RTC_USING_LSE
  325. bool "RTC USING LSE"
  326. config BSP_RTC_USING_LSI
  327. bool "RTC USING LSI"
  328. endchoice
  329. endif
  330. config BSP_USING_WDT
  331. bool "Enable Watchdog Timer"
  332. select RT_USING_WDT
  333. default n
  334. config BSP_USING_SDIO
  335. bool "Enable SDIO"
  336. select RT_USING_SDIO
  337. select RT_USING_DFS
  338. default n
  339. config SDIO_MAX_FREQ
  340. int "sdio max freq"
  341. range 0 24000000
  342. depends on BSP_USING_SDIO
  343. default 1000000
  344. config BSP_USING_USBD
  345. bool "Enable USB Device"
  346. select RT_USING_USB_DEVICE
  347. default n
  348. menuconfig BSP_USING_PULSE_ENCODER
  349. bool "Enable Pulse Encoder"
  350. default n
  351. select RT_USING_PULSE_ENCODER
  352. if BSP_USING_PULSE_ENCODER
  353. config BSP_USING_PULSE_ENCODER4
  354. bool "Enable Pulse Encoder4"
  355. default n
  356. endif
  357. config BSP_USING_EXT_FMC_IO
  358. bool
  359. default n
  360. config BSP_USING_FMC
  361. bool
  362. default n
  363. source "$(BSP_DIR)/../libraries/HAL_Drivers/drivers/Kconfig"
  364. endmenu
  365. endmenu