Kconfig 4.8 KB

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