Kconfig 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  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_I2C1
  155. bool "Enable I2C1 BUS (software simulation)"
  156. default n
  157. select RT_USING_I2C
  158. select RT_USING_I2C_BITOPS
  159. select RT_USING_PIN
  160. if BSP_USING_I2C1
  161. config BSP_I2C1_SCL_PIN
  162. int "i2c1 scl pin number"
  163. range 0 175
  164. default 22
  165. config BSP_I2C1_SDA_PIN
  166. int "I2C1 sda pin number"
  167. range 0 175
  168. default 23
  169. endif
  170. menuconfig BSP_USING_TIM
  171. bool "Enable timer"
  172. default n
  173. select RT_USING_HWTIMER
  174. if BSP_USING_TIM
  175. config BSP_USING_TIM2
  176. bool "Enable TIM2"
  177. default n
  178. config BSP_USING_TIM3
  179. bool "Enable TIM3"
  180. default n
  181. config BSP_USING_TIM4
  182. bool "Enable TIM4"
  183. default n
  184. config BSP_USING_TIM5
  185. bool "Enable TIM5"
  186. default n
  187. endif
  188. menuconfig BSP_USING_PWM
  189. bool "Enable PWM"
  190. default n
  191. select RT_USING_PWM
  192. if BSP_USING_PWM
  193. menuconfig BSP_USING_PWM0
  194. bool "Enable pwm0"
  195. default n
  196. if BSP_USING_PWM0
  197. config BSP_USING_PWM0_CH1
  198. bool "Enable PWM0 channel1"
  199. default y
  200. config BSP_USING_PWM0_CH2
  201. bool "Enable PWM0 channel2"
  202. default n
  203. endif
  204. config BSP_USING_PWM1
  205. bool "Enable pwm1"
  206. default n
  207. config BSP_USING_PWM2
  208. bool "Enable pwm2"
  209. default n
  210. config BSP_USING_PWM3
  211. bool "Enable pwm3"
  212. default n
  213. config BSP_USING_PWM4
  214. bool "Enable pwm4"
  215. default n
  216. config BSP_USING_PWM5
  217. bool "Enable pwm5"
  218. default n
  219. config BSP_USING_PWM6
  220. bool "Enable pwm6"
  221. default n
  222. config BSP_USING_PWM7
  223. bool "Enable pwm7"
  224. default n
  225. endif
  226. menuconfig BSP_USING_ADC
  227. bool "Enable ADC"
  228. default n
  229. select RT_USING_ADC
  230. if BSP_USING_ADC
  231. config BSP_USING_ADC0
  232. bool "Enable ADC0"
  233. default n
  234. config BSP_USING_ADC1
  235. bool "Enable ADC1"
  236. default n
  237. endif
  238. menuconfig BSP_USING_ONCHIP_RTC
  239. bool "Enable RTC"
  240. select RT_USING_RTC
  241. default n
  242. if BSP_USING_ONCHIP_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_WDT
  253. bool "Enable Watchdog Timer"
  254. select RT_USING_WDT
  255. default n
  256. config BSP_USING_SDIO
  257. bool "Enable SDIO"
  258. select RT_USING_SDIO
  259. select RT_USING_DFS
  260. default n
  261. menuconfig BSP_USING_CAN
  262. bool "Enable CAN"
  263. default n
  264. select RT_USING_CAN
  265. if BSP_USING_CAN
  266. config BSP_USING_CAN1
  267. bool "using CAN1"
  268. default n
  269. endif
  270. config BSP_USING_USBD
  271. bool "Enable USB device"
  272. select RT_USING_USB_DEVICE
  273. default n
  274. if BSP_USING_USBD
  275. config BSP_USB_CONNECT_PIN
  276. int "USB connect pin"
  277. default 67
  278. config BSP_USB_PULL_UP_STATUS
  279. int "USB PULL UP STATUS"
  280. default 0
  281. endif
  282. config BSP_USING_CRC
  283. bool "Enable CRC (CRC-32 0x04C11DB7 Polynomial)"
  284. select RT_USING_HWCRYPTO
  285. select RT_HWCRYPTO_USING_CRC
  286. # "Crypto device frame dose not support above 8-bits granularity"
  287. # "Reserve progress, running well, about 32-bits granularity, such as stm32f1, stm32f4"
  288. default n
  289. endmenu
  290. menu "Board extended module Drivers"
  291. endmenu
  292. endmenu