Kconfig 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. menu "Hardware Drivers Config"
  2. config SOC_HK32F030C8T6
  3. bool
  4. select SOC_SERIES_HK32F0XX
  5. select RT_USING_COMPONENTS_INIT
  6. select RT_USING_USER_MAIN
  7. default y
  8. menu "Onboard Peripheral Drivers"
  9. config BSP_USING_SERIAL
  10. bool "Enable USART (uart1)"
  11. select BSP_USING_UART
  12. select BSP_USING_UART1
  13. default y
  14. endmenu
  15. menu "On-chip Peripheral Drivers"
  16. config BSP_USING_GPIO
  17. bool "Enable GPIO"
  18. select RT_USING_PIN
  19. default y
  20. config BSP_USING_ON_CHIP_FLASH
  21. bool "Enable on-chip FLASH"
  22. default n
  23. menuconfig BSP_USING_RTC
  24. bool "Enable RTC"
  25. select RT_USING_RTC
  26. default n
  27. if BSP_USING_RTC
  28. choice
  29. prompt "Select clock source"
  30. default BSP_RTC_USING_LSE
  31. config BSP_RTC_USING_LSE
  32. bool "RTC USING LSE"
  33. config BSP_RTC_USING_LSI
  34. bool "RTC USING LSI"
  35. endchoice
  36. endif
  37. menuconfig BSP_USING_UART
  38. bool "Enable UART"
  39. default y
  40. select RT_USING_SERIAL
  41. if BSP_USING_UART
  42. config BSP_USING_UART1
  43. bool "Enable UART1"
  44. default y
  45. config BSP_USING_UART2
  46. bool "Enable UART2"
  47. default n
  48. endif
  49. menuconfig BSP_USING_PWM
  50. bool "Enable PWM"
  51. default n
  52. select RT_USING_PWM
  53. if BSP_USING_PWM
  54. menuconfig BSP_USING_TIM1
  55. bool "Enable timer1 output PWM"
  56. default n
  57. if BSP_USING_TIM1
  58. config BSP_USING_TIM1_CH1
  59. bool "Enable TIM1 channel1 PWM"
  60. default n
  61. config BSP_USING_TIM1_CH4
  62. bool "Enable TIM1 channel4 PWM"
  63. default n
  64. endif
  65. endif
  66. menuconfig BSP_USING_HWTIMER
  67. bool "Enable HWTIMER"
  68. default n
  69. select RT_USING_HWTIMER
  70. if BSP_USING_HWTIMER
  71. config BSP_USING_HWTIM3
  72. bool "Enable hardware timer3"
  73. default n
  74. endif
  75. menuconfig BSP_USING_SPI
  76. bool "Enable SPI BUS"
  77. default n
  78. select RT_USING_SPI
  79. if BSP_USING_SPI
  80. config BSP_USING_SPI1
  81. bool "Enable SPI1 BUS"
  82. default n
  83. config BSP_USING_SPI2
  84. bool "Enable SPI2 BUS"
  85. default n
  86. endif
  87. menuconfig BSP_USING_I2C
  88. bool "Enable I2C BUS"
  89. default n
  90. select RT_USING_I2C
  91. select RT_USING_I2C_BITOPS
  92. select RT_USING_PIN
  93. if BSP_USING_I2C
  94. config BSP_USING_I2C1
  95. bool "Enable I2C1 BUS (software simulation)"
  96. default n
  97. if BSP_USING_I2C1
  98. config BSP_I2C1_SCL_PIN
  99. int "i2c1 scl pin number"
  100. range 0 63
  101. default 24
  102. config BSP_I2C1_SDA_PIN
  103. int "I2C1 sda pin number"
  104. range 0 63
  105. default 25
  106. endif
  107. config BSP_USING_I2C2
  108. bool "Enable I2C2 BUS (software simulation)"
  109. default n
  110. if BSP_USING_I2C2
  111. config BSP_I2C2_SCL_PIN
  112. int "i2c2 scl pin number"
  113. range 0 63
  114. default 26
  115. config BSP_I2C2_SDA_PIN
  116. int "I2C2 sda pin number"
  117. range 0 63
  118. default 27
  119. endif
  120. endif
  121. menuconfig BSP_USING_ADC
  122. bool "Enable ADC"
  123. default n
  124. select RT_USING_ADC
  125. if BSP_USING_ADC
  126. config BSP_USING_ADC1
  127. bool "Enable ADC1"
  128. default n
  129. config BSP_USING_ADC2
  130. bool "Enable ADC2"
  131. default n
  132. endif
  133. endmenu
  134. endmenu