Kconfig 5.3 KB

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