Kconfig 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402
  1. menu "Hardware Drivers Config"
  2. config tm4c123
  3. bool
  4. select RT_USING_COMPONENTS_INIT
  5. select RT_USING_USER_MAIN
  6. default y
  7. menu "Onboard Peripheral Drivers"
  8. config BSP_USING_USB_TO_USART
  9. bool "Enable USB TO USART (uart1)"
  10. select BSP_USING_UART
  11. select BSP_USING_UART1
  12. default y
  13. config BSP_USING_RS485_OR_RS232
  14. bool "Enable RS485/RS232 (uart2 be shared)"
  15. select BSP_USING_UART2
  16. default n
  17. config BSP_USING_SPI_FLASH
  18. bool "Enable SPI FLASH (W25Q64 spi1)"
  19. select BSP_USING_SPI
  20. select BSP_USING_SPI1
  21. select RT_USING_SFUD
  22. select RT_SFUD_USING_SFDP
  23. default n
  24. config BSP_USING_RGB
  25. bool "Enable RGB LED (timer3 channel2 - 4)"
  26. select RT_USING_PWM
  27. select BSP_USING_PWM
  28. select BSP_USING_PWM3
  29. select BSP_USING_PWM3_CH2
  30. select BSP_USING_PWM3_CH3
  31. select BSP_USING_PWM3_CH4
  32. default n
  33. config BSP_USING_POT
  34. bool "Enable potentiometer"
  35. select BSP_USING_ADC
  36. select BSP_USING_ADC1
  37. default n
  38. config BSP_USING_EEPROM
  39. bool "Enable I2C EEPROM (i2c1)"
  40. select BSP_USING_I2C1
  41. default n
  42. config BSP_USING_ETH
  43. bool "Enable Ethernet Driver (spi2)"
  44. default n
  45. select PKG_USING_WIZNET
  46. select WIZNET_DEVICE_EXTERN_CONFIG
  47. select BSP_USING_SPI2
  48. if BSP_USING_ETH
  49. if WIZNET_DEVICE_EXTERN_CONFIG
  50. config WIZ_SPI_DEVICE
  51. string
  52. default "spi20"
  53. config WIZ_RST_PIN
  54. int
  55. default 111
  56. config WIZ_IRQ_PIN
  57. int
  58. default 104
  59. endif
  60. config EXTERNAL_PHY_ADDRESS
  61. hex
  62. default 0x00
  63. endif
  64. config BSP_USING_SDCARD
  65. bool "Enable SDCARD (sdio)"
  66. select BSP_USING_SDIO
  67. select RT_USING_DFS
  68. select RT_USING_DFS_ELMFAT
  69. default n
  70. endmenu
  71. menu "On-chip Peripheral Drivers"
  72. config BSP_USING_GPIO
  73. bool "Enable GPIO"
  74. select RT_USING_PIN
  75. default y
  76. menuconfig BSP_USING_UART
  77. bool "Enable UART"
  78. default y
  79. select RT_USING_SERIAL
  80. if BSP_USING_UART
  81. config BSP_USING_UART0
  82. bool "Enable UART0"
  83. default y
  84. config BSP_USING_UART1
  85. bool "Enable UART1"
  86. default n
  87. config BSP_UART1_RX_USING_DMA
  88. bool "Enable UART1 RX DMA"
  89. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  90. default n
  91. config BSP_USING_UART2
  92. bool "Enable UART2"
  93. default n
  94. config BSP_UART2_RX_USING_DMA
  95. bool "Enable UART2 RX DMA"
  96. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  97. default n
  98. config BSP_USING_UART3
  99. bool "Enable UART3"
  100. default n
  101. config BSP_UART3_RX_USING_DMA
  102. bool "Enable UART3 RX DMA"
  103. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  104. default n
  105. endif
  106. config BSP_USING_ON_CHIP_FLASH
  107. bool "Enable on-chip FLASH"
  108. default n
  109. menuconfig BSP_USING_SPI
  110. bool "Enable SPI BUS"
  111. default n
  112. select RT_USING_SPI
  113. if BSP_USING_SPI
  114. config BSP_USING_SPI0
  115. bool "Enable SPI0 BUS"
  116. default n
  117. config BSP_USING_SPI1
  118. bool "Enable SPI1 BUS"
  119. default n
  120. config BSP_SPI1_TX_USING_DMA
  121. bool "Enable SPI1 TX DMA"
  122. depends on BSP_USING_SPI1
  123. default n
  124. config BSP_SPI1_RX_USING_DMA
  125. bool "Enable SPI1 RX DMA"
  126. depends on BSP_USING_SPI1
  127. select BSP_SPI1_TX_USING_DMA
  128. default n
  129. config BSP_USING_SPI2
  130. bool "Enable SPI2 BUS"
  131. default n
  132. config BSP_SPI2_TX_USING_DMA
  133. bool "Enable SPI2 TX DMA"
  134. depends on BSP_USING_SPI2
  135. default n
  136. config BSP_SPI2_RX_USING_DMA
  137. bool "Enable SPI2 RX DMA"
  138. depends on BSP_USING_SPI2
  139. select BSP_SPI2_TX_USING_DMA
  140. default n
  141. config BSP_USING_SPI3
  142. bool "Enable SPI3 BUS"
  143. default n
  144. config BSP_SPI3_TX_USING_DMA
  145. bool "Enable SPI3 TX DMA"
  146. depends on BSP_USING_SPI3
  147. default n
  148. config BSP_SPI3_RX_USING_DMA
  149. bool "Enable SPI3 RX DMA"
  150. depends on BSP_USING_SPI3
  151. select BSP_SPI3_TX_USING_DMA
  152. default n
  153. endif
  154. menuconfig BSP_USING_I2C
  155. bool "Enable I2C BUS"
  156. default n
  157. select RT_USING_I2C
  158. if BSP_USING_I2C
  159. config BSP_USING_I2C0
  160. bool "Enable I2C0 BUS"
  161. default n
  162. if BSP_USING_I2C0
  163. choice
  164. prompt "I2C0 CLK frequency"
  165. default BSP_I2C0_CLK_100
  166. config BSP_I2C0_CLK_100
  167. bool "100kHz"
  168. config BSP_I2C0_CLK_400
  169. bool "400kHz"
  170. endchoice
  171. endif
  172. config BSP_USING_I2C1
  173. bool "Enable I2C1 BUS"
  174. default n
  175. if BSP_USING_I2C1
  176. choice
  177. prompt "I2C1 CLK frequency"
  178. default BSP_I2C1_CLK_100
  179. config BSP_I2C1_CLK_100
  180. bool "100kHz"
  181. config BSP_I2C1_CLK_400
  182. bool "400kHz"
  183. endchoice
  184. endif
  185. config BSP_USING_I2C2
  186. bool "Enable I2C2 BUS"
  187. default n
  188. if BSP_USING_I2C2
  189. choice
  190. prompt "I2C2 CLK frequency"
  191. default BSP_I2C3_CLK_100
  192. config BSP_I2C2_CLK_100
  193. bool "100kHz"
  194. config BSP_I2C2_CLK_400
  195. bool "400kHz"
  196. endchoice
  197. endif
  198. config BSP_USING_I2C3
  199. bool "Enable I2C3 BUS"
  200. default n
  201. if BSP_USING_I2C3
  202. choice
  203. prompt "I2C3 CLK frequency"
  204. default BSP_I2C4_CLK_100
  205. config BSP_I2C3_CLK_100
  206. bool "100kHz"
  207. config BSP_I2C3_CLK_400
  208. bool "400kHz"
  209. endchoice
  210. endif
  211. endif
  212. menuconfig BSP_USING_TIM
  213. bool "Enable timer"
  214. default n
  215. select RT_USING_HWTIMER
  216. if BSP_USING_TIM
  217. config BSP_USING_TIM2
  218. bool "Enable TIM2"
  219. default n
  220. config BSP_USING_TIM3
  221. bool "Enable TIM3"
  222. default n
  223. config BSP_USING_TIM4
  224. bool "Enable TIM4"
  225. default n
  226. config BSP_USING_TIM5
  227. bool "Enable TIM5"
  228. default n
  229. endif
  230. menuconfig BSP_USING_PWM
  231. bool "Enable PWM"
  232. default n
  233. select RT_USING_PWM
  234. if BSP_USING_PWM
  235. menuconfig BSP_USING_PWM0
  236. bool "Enable pwm0"
  237. default n
  238. if BSP_USING_PWM0
  239. config BSP_USING_PWM0_CH1
  240. bool "Enable PWM0 channel1"
  241. default y
  242. config BSP_USING_PWM0_CH2
  243. bool "Enable PWM0 channel2"
  244. default n
  245. endif
  246. config BSP_USING_PWM1
  247. bool "Enable pwm1"
  248. default n
  249. config BSP_USING_PWM2
  250. bool "Enable pwm2"
  251. default n
  252. config BSP_USING_PWM3
  253. bool "Enable pwm3"
  254. default n
  255. config BSP_USING_PWM4
  256. bool "Enable pwm4"
  257. default n
  258. config BSP_USING_PWM5
  259. bool "Enable pwm5"
  260. default n
  261. config BSP_USING_PWM6
  262. bool "Enable pwm6"
  263. default n
  264. config BSP_USING_PWM7
  265. bool "Enable pwm7"
  266. default n
  267. endif
  268. menuconfig BSP_USING_ADC
  269. bool "Enable ADC"
  270. default n
  271. select RT_USING_ADC
  272. if BSP_USING_ADC
  273. config BSP_USING_ADC0
  274. bool "Enable ADC0"
  275. default n
  276. config BSP_USING_ADC1
  277. bool "Enable ADC1"
  278. default n
  279. endif
  280. menuconfig BSP_USING_ONCHIP_RTC
  281. bool "Enable RTC"
  282. select RT_USING_RTC
  283. default n
  284. if BSP_USING_ONCHIP_RTC
  285. choice
  286. prompt "Select clock source"
  287. default BSP_RTC_USING_LSE
  288. config BSP_RTC_USING_LSE
  289. bool "RTC USING LSE"
  290. config BSP_RTC_USING_LSI
  291. bool "RTC USING LSI"
  292. endchoice
  293. endif
  294. config BSP_USING_WDT
  295. bool "Enable Watchdog Timer"
  296. select RT_USING_WDT
  297. default n
  298. config BSP_USING_SDIO
  299. bool "Enable SDIO"
  300. select RT_USING_SDIO
  301. select RT_USING_DFS
  302. default n
  303. menuconfig BSP_USING_CAN
  304. bool "Enable CAN"
  305. default n
  306. select RT_USING_CAN
  307. if BSP_USING_CAN
  308. config BSP_USING_CAN1
  309. bool "using CAN1"
  310. default n
  311. endif
  312. config BSP_USING_USBD
  313. bool "Enable USB device"
  314. select RT_USING_USB_DEVICE
  315. default n
  316. if BSP_USING_USBD
  317. config BSP_USB_CONNECT_PIN
  318. int "USB connect pin"
  319. default 67
  320. config BSP_USB_PULL_UP_STATUS
  321. int "USB PULL UP STATUS"
  322. default 0
  323. endif
  324. config BSP_USING_CRC
  325. bool "Enable CRC (CRC-32 0x04C11DB7 Polynomial)"
  326. select RT_USING_HWCRYPTO
  327. select RT_HWCRYPTO_USING_CRC
  328. # "Crypto device frame dose not support above 8-bits granularity"
  329. # "Reserve progress, running well, about 32-bits granularity, such as stm32f1, stm32f4"
  330. default n
  331. endmenu
  332. menu "Board extended module Drivers"
  333. endmenu
  334. endmenu