Kconfig 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  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 "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. endif
  22. menuconfig BSP_USING_ADC
  23. bool "Enable ADC"
  24. default n
  25. select RT_USING_ADC
  26. if BSP_USING_ADC
  27. config BSP_USING_ADC1
  28. bool "Enable ADC1"
  29. default n
  30. config BSP_USING_ADC2
  31. bool "Enable ADC2"
  32. default n
  33. config BSP_USING_ADC3
  34. bool "Enable ADC3"
  35. default n
  36. endif
  37. menuconfig BSP_USING_DAC
  38. bool "Enable DAC"
  39. default n
  40. select RT_USING_DAC
  41. if BSP_USING_DAC
  42. config BSP_USING_DAC1
  43. bool "Enable DAC1"
  44. default n
  45. endif
  46. menuconfig BSP_USING_ONCHIP_RTC
  47. bool "Enable RTC"
  48. select RT_USING_RTC
  49. default n
  50. if BSP_USING_ONCHIP_RTC
  51. choice
  52. prompt "Select clock source"
  53. default BSP_RTC_USING_LSE
  54. config BSP_RTC_USING_LSE
  55. bool "RTC USING LSE"
  56. config BSP_RTC_USING_LSI
  57. bool "RTC USING LSI"
  58. endchoice
  59. endif
  60. menuconfig BSP_USING_I2C1
  61. bool "Enable I2C1 BUS (software simulation)"
  62. default n
  63. select RT_USING_I2C
  64. select RT_USING_I2C_BITOPS
  65. select RT_USING_PIN
  66. if BSP_USING_I2C1
  67. config BSP_I2C1_SCL_PIN
  68. int "i2c1 scl pin number"
  69. range 0 63
  70. default 22
  71. config BSP_I2C1_SDA_PIN
  72. int "I2C1 sda pin number"
  73. range 0 63
  74. default 23
  75. endif
  76. menuconfig BSP_USING_SPI
  77. bool "Enable SPI"
  78. default n
  79. select RT_USING_SPI
  80. if BSP_USING_SPI
  81. config BSP_USING_SPI1
  82. bool "Enable SPI1"
  83. default n
  84. config BSP_USING_SPI2
  85. bool "Enable SPI2"
  86. default n
  87. config BSP_USING_SPI3
  88. bool "Enable SPI3"
  89. default n
  90. endif
  91. menuconfig BSP_USING_TMR
  92. bool "Enable Timer"
  93. default n
  94. select RT_USING_HWTIMER
  95. if BSP_USING_TMR
  96. config BSP_USING_TMR1
  97. bool "Enable TMR1"
  98. default n
  99. config BSP_USING_TMR2
  100. bool "Enable TMR2"
  101. default n
  102. config BSP_USING_TMR3
  103. bool "Enable TMR3"
  104. default n
  105. config BSP_USING_TMR4
  106. bool "Enable TMR4"
  107. default n
  108. config BSP_USING_TMR5
  109. bool "Enable TMR5"
  110. default n
  111. config BSP_USING_TMR6
  112. bool "Enable TMR6"
  113. default n
  114. config BSP_USING_TMR7
  115. bool "Enable TMR7"
  116. default n
  117. config BSP_USING_TMR8
  118. bool "Enable TMR8"
  119. default n
  120. endif
  121. menuconfig BSP_USING_PWM
  122. bool "Enable PWM"
  123. default n
  124. select RT_USING_PWM
  125. if BSP_USING_PWM
  126. menuconfig BSP_USING_PWM3
  127. bool "Enable timer3 output pwm"
  128. default n
  129. if BSP_USING_PWM3
  130. config BSP_USING_PWM3_CH1
  131. bool "Enable PWM3 channel1"
  132. default n
  133. config BSP_USING_PWM3_CH2
  134. bool "Enable PWM3 channel2"
  135. default n
  136. config BSP_USING_PWM3_CH3
  137. bool "Enable PWM3 channel3"
  138. default n
  139. config BSP_USING_PWM3_CH4
  140. bool "Enable PWM3 channel4"
  141. default n
  142. endif
  143. endif
  144. config BSP_USING_WDT
  145. bool "Enable Watchdog Timer"
  146. select RT_USING_WDT
  147. default n
  148. endmenu
  149. endmenu