Kconfig 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. menu "Hardware Drivers Config"
  2. config SOC_APM32F407IG
  3. bool
  4. select SOC_SERIES_APM32F4
  5. select RT_USING_COMPONENTS_INIT
  6. select RT_USING_USER_MAIN
  7. default y
  8. menu "On-chip Peripheral Drivers"
  9. config BSP_USING_GPIO
  10. bool "Enable GPIO"
  11. select RT_USING_PIN
  12. default y
  13. menuconfig BSP_USING_UART
  14. bool "Enable UART"
  15. default y
  16. select RT_USING_SERIAL
  17. if BSP_USING_UART
  18. config BSP_USING_UART1
  19. bool "Enable UART1"
  20. default y
  21. config BSP_USING_UART2
  22. bool "Enable UART2"
  23. default n
  24. endif
  25. menuconfig BSP_USING_ADC
  26. bool "Enable ADC"
  27. default n
  28. select RT_USING_ADC
  29. if BSP_USING_ADC
  30. config BSP_USING_ADC1
  31. bool "Enable ADC1"
  32. default n
  33. config BSP_USING_ADC2
  34. bool "Enable ADC2"
  35. default n
  36. config BSP_USING_ADC3
  37. bool "Enable ADC3"
  38. default n
  39. endif
  40. menuconfig BSP_USING_DAC
  41. bool "Enable DAC"
  42. default n
  43. select RT_USING_DAC
  44. if BSP_USING_DAC
  45. config BSP_USING_DAC1
  46. bool "Enable DAC1"
  47. default n
  48. endif
  49. menuconfig BSP_USING_ONCHIP_RTC
  50. bool "Enable RTC"
  51. select RT_USING_RTC
  52. default n
  53. if BSP_USING_ONCHIP_RTC
  54. choice
  55. prompt "Select clock source"
  56. default BSP_RTC_USING_LSE
  57. config BSP_RTC_USING_LSE
  58. bool "RTC USING LSE"
  59. config BSP_RTC_USING_LSI
  60. bool "RTC USING LSI"
  61. endchoice
  62. endif
  63. menuconfig BSP_USING_I2C1
  64. bool "Enable I2C1 BUS (software simulation)"
  65. default n
  66. select RT_USING_I2C
  67. select RT_USING_I2C_BITOPS
  68. select RT_USING_PIN
  69. if BSP_USING_I2C1
  70. config BSP_I2C1_SCL_PIN
  71. int "i2c1 scl pin number"
  72. range 0 63
  73. default 22
  74. config BSP_I2C1_SDA_PIN
  75. int "I2C1 sda pin number"
  76. range 0 63
  77. default 23
  78. endif
  79. menuconfig BSP_USING_SPI
  80. bool "Enable SPI"
  81. default n
  82. select RT_USING_SPI
  83. if BSP_USING_SPI
  84. config BSP_USING_SPI1
  85. bool "Enable SPI1"
  86. default n
  87. config BSP_USING_SPI2
  88. bool "Enable SPI2"
  89. default n
  90. config BSP_USING_SPI3
  91. bool "Enable SPI3"
  92. default n
  93. endif
  94. menuconfig BSP_USING_TMR
  95. bool "Enable Timer"
  96. default n
  97. select RT_USING_HWTIMER
  98. if BSP_USING_TMR
  99. config BSP_USING_TMR1
  100. bool "Enable TMR1"
  101. default n
  102. config BSP_USING_TMR2
  103. bool "Enable TMR2"
  104. default n
  105. config BSP_USING_TMR3
  106. bool "Enable TMR3"
  107. default n
  108. config BSP_USING_TMR4
  109. bool "Enable TMR4"
  110. default n
  111. config BSP_USING_TMR5
  112. bool "Enable TMR5"
  113. default n
  114. config BSP_USING_TMR6
  115. bool "Enable TMR6"
  116. default n
  117. config BSP_USING_TMR7
  118. bool "Enable TMR7"
  119. default n
  120. config BSP_USING_TMR8
  121. bool "Enable TMR8"
  122. default n
  123. config BSP_USING_TMR9
  124. bool "Enable TMR9"
  125. default n
  126. config BSP_USING_TMR10
  127. bool "Enable TMR10"
  128. default n
  129. config BSP_USING_TMR11
  130. bool "Enable TMR11"
  131. default n
  132. config BSP_USING_TMR12
  133. bool "Enable TMR12"
  134. default n
  135. config BSP_USING_TMR13
  136. bool "Enable TMR13"
  137. default n
  138. config BSP_USING_TMR14
  139. bool "Enable TMR14"
  140. default n
  141. endif
  142. menuconfig BSP_USING_PWM
  143. bool "Enable PWM"
  144. default n
  145. select RT_USING_PWM
  146. if BSP_USING_PWM
  147. menuconfig BSP_USING_PWM3
  148. bool "Enable timer3 output PWM"
  149. default n
  150. if BSP_USING_PWM3
  151. config BSP_USING_PWM3_CH1
  152. bool "Enable PWM3 channel1"
  153. default n
  154. config BSP_USING_PWM3_CH2
  155. bool "Enable PWM3 channel2"
  156. default n
  157. config BSP_USING_PWM3_CH3
  158. bool "Enable PWM3 channel3"
  159. default n
  160. config BSP_USING_PWM3_CH4
  161. bool "Enable PWM3 channel4"
  162. default n
  163. endif
  164. endif
  165. config BSP_USING_WDT
  166. bool "Enable Watchdog Timer"
  167. select RT_USING_WDT
  168. default n
  169. endmenu
  170. endmenu