Kconfig 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. menu "Hardware Drivers Config"
  2. config SOC_STM32F429IG
  3. bool
  4. select SOC_SERIES_STM32F4
  5. default y
  6. menu "Onboard Peripheral Drivers"
  7. config BSP_USING_USB_TO_USART
  8. bool "Enable USB TO USART (uart1)"
  9. select BSP_USING_UART1
  10. default y
  11. config BSP_USING_COM2
  12. bool "Enable COM2 (uart2 pin conflict with Ethernet)"
  13. select BSP_USING_UART2
  14. default n
  15. config BSP_USING_COM3
  16. bool "Enable COM3 (uart3)"
  17. select BSP_USING_UART3
  18. default n
  19. config BSP_USING_SDRAM
  20. bool "Enable SDRAM"
  21. default n
  22. config BSP_USING_SPI_FLASH
  23. bool "Enable SPI FLASH (w25q256 spi5)"
  24. select BSP_USING_SPI5
  25. select RT_USING_SFUD
  26. select RT_SFUD_USING_SFDP
  27. default n
  28. config BSP_USING_MPU9250
  29. bool "Enable MPU 9250 (i2c1)"
  30. select BSP_USING_I2C1
  31. select PKG_USING_MPU6XXX
  32. default n
  33. config BSP_USING_ETH
  34. bool "Enable Ethernet"
  35. default n
  36. select RT_USING_LWIP
  37. select PKG_USING_PCF8574
  38. select BSP_USING_I2C1
  39. if BSP_USING_ETH
  40. config EXTERNAL_PHY_ADDRESS
  41. hex
  42. default 0x00
  43. endif
  44. config BSP_USING_SDCARD
  45. bool "Enable SDCARD (sdio)"
  46. select BSP_USING_SDIO
  47. select RT_USING_DFS
  48. select RT_USING_DFS_ELMFAT
  49. default n
  50. endmenu
  51. menu "On-chip Peripheral Drivers"
  52. config BSP_USING_GPIO
  53. bool "Enable GPIO"
  54. select RT_USING_PIN
  55. default y
  56. config BSP_USING_UART1
  57. bool "Enable UART1"
  58. select RT_USING_SERIAL
  59. default y
  60. config BSP_USING_UART2
  61. bool "Enable UART2"
  62. select RT_USING_SERIAL
  63. default n
  64. config BSP_USING_UART3
  65. bool "Enable UART3"
  66. select RT_USING_SERIAL
  67. default n
  68. config BSP_USING_ON_CHIP_FLASH
  69. bool "Enable on-chip FLASH"
  70. default n
  71. config BSP_USING_SPI1
  72. bool "Enable SPI1 BUS"
  73. select RT_USING_SPI
  74. default n
  75. config BSP_USING_SPI2
  76. bool "Enable SPI2 BUS"
  77. select RT_USING_SPI
  78. default n
  79. config BSP_USING_SPI5
  80. bool "Enable SPI5 BUS"
  81. select RT_USING_SPI
  82. default n
  83. config BSP_SPI_USING_DMA
  84. bool "Enable SPI DMA support"
  85. default n
  86. menuconfig BSP_USING_I2C1
  87. bool "Enable I2C1 BUS (software simulation)"
  88. default n
  89. select RT_USING_I2C
  90. select RT_USING_I2C_BITOPS
  91. select RT_USING_PIN
  92. if BSP_USING_I2C1
  93. comment "Notice: PH4 --> 116; PH5 --> 117"
  94. config BSP_I2C1_SCL_PIN
  95. int "I2C1 scl pin number"
  96. range 1 176
  97. default 116
  98. config BSP_I2C1_SDA_PIN
  99. int "I2C1 sda pin number"
  100. range 1 176
  101. default 117
  102. endif
  103. menuconfig BSP_USING_TIM
  104. bool "Enable timer"
  105. default n
  106. select RT_USING_HWTIMER
  107. if BSP_USING_TIM
  108. config BSP_USING_TIM11
  109. bool "Enable TIM11"
  110. default n
  111. config BSP_USING_TIM13
  112. bool "Enable TIM13"
  113. default n
  114. config BSP_USING_TIM14
  115. bool "Enable TIM14"
  116. default n
  117. endif
  118. menuconfig BSP_USING_PWM
  119. bool "Enable pwm"
  120. default n
  121. select RT_USING_PWM
  122. if BSP_USING_PWM
  123. menuconfig BSP_USING_PWM2
  124. bool "Enable timer2 output pwm"
  125. default n
  126. if BSP_USING_PWM2
  127. config BSP_USING_PWM2_CH4
  128. bool "Enable PWM2 channel4"
  129. default n
  130. endif
  131. endif
  132. menuconfig BSP_USING_ADC
  133. bool "Enable ADC"
  134. default n
  135. select RT_USING_ADC
  136. if BSP_USING_ADC
  137. config BSP_USING_ADC1
  138. bool "Enable ADC1"
  139. default n
  140. config BSP_USING_ADC2
  141. bool "Enable ADC2"
  142. default n
  143. config BSP_USING_ADC3
  144. bool "Enable ADC3"
  145. default n
  146. endif
  147. config BSP_USING_ONCHIP_RTC
  148. bool "Enable RTC"
  149. select RT_USING_RTC
  150. select RT_USING_LIBC
  151. default n
  152. config BSP_USING_WDT
  153. bool "Enable Watchdog Timer"
  154. select RT_USING_WDT
  155. default n
  156. config BSP_USING_SDIO
  157. bool "Enable SDIO"
  158. select RT_USING_SDIO
  159. select RT_USING_DFS
  160. default n
  161. endmenu
  162. menu "Board extended module Drivers"
  163. endmenu
  164. endmenu