Kconfig 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  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. select RT_USING_LIBC
  27. default n
  28. if BSP_USING_RTC
  29. choice
  30. prompt "Select clock source"
  31. default BSP_RTC_USING_LSE
  32. config BSP_RTC_USING_LSE
  33. bool "RTC USING LSE"
  34. config BSP_RTC_USING_LSI
  35. bool "RTC USING LSI"
  36. endchoice
  37. endif
  38. menuconfig BSP_USING_UART
  39. bool "Enable UART"
  40. default y
  41. select RT_USING_SERIAL
  42. if BSP_USING_UART
  43. config BSP_USING_UART1
  44. bool "Enable UART1"
  45. default y
  46. config BSP_USING_UART2
  47. bool "Enable UART2"
  48. default n
  49. endif
  50. menuconfig BSP_USING_PWM
  51. bool "Enable PWM"
  52. default n
  53. select RT_USING_PWM
  54. if BSP_USING_PWM
  55. menuconfig BSP_USING_TIM1
  56. bool "Enable timer1 output PWM"
  57. default n
  58. if BSP_USING_TIM1
  59. config BSP_USING_TIM1_CH1
  60. bool "Enable TIM1 channel1 PWM"
  61. default n
  62. config BSP_USING_TIM1_CH4
  63. bool "Enable TIM1 channel4 PWM"
  64. default n
  65. endif
  66. endif
  67. menuconfig BSP_USING_HWTIMER
  68. bool "Enable HWTIMER"
  69. default n
  70. select RT_USING_HWTIMER
  71. if BSP_USING_HWTIMER
  72. config BSP_USING_HWTIM3
  73. bool "Enable hardware timer3"
  74. default n
  75. endif
  76. menuconfig BSP_USING_SPI
  77. bool "Enable SPI BUS"
  78. default n
  79. select RT_USING_SPI
  80. if BSP_USING_SPI
  81. config BSP_USING_SPI1
  82. bool "Enable SPI1 BUS"
  83. default n
  84. config BSP_USING_SPI2
  85. bool "Enable SPI2 BUS"
  86. default n
  87. endif
  88. menuconfig BSP_USING_I2C
  89. bool "Enable I2C BUS"
  90. default n
  91. select RT_USING_I2C
  92. select RT_USING_I2C_BITOPS
  93. select RT_USING_PIN
  94. if BSP_USING_I2C
  95. config BSP_USING_I2C1
  96. bool "Enable I2C1 BUS (software simulation)"
  97. default n
  98. if BSP_USING_I2C1
  99. config BSP_I2C1_SCL_PIN
  100. int "i2c1 scl pin number"
  101. range 0 63
  102. default 24
  103. config BSP_I2C1_SDA_PIN
  104. int "I2C1 sda pin number"
  105. range 0 63
  106. default 25
  107. endif
  108. config BSP_USING_I2C2
  109. bool "Enable I2C2 BUS (software simulation)"
  110. default n
  111. if BSP_USING_I2C2
  112. config BSP_I2C2_SCL_PIN
  113. int "i2c2 scl pin number"
  114. range 0 63
  115. default 26
  116. config BSP_I2C2_SDA_PIN
  117. int "I2C2 sda pin number"
  118. range 0 63
  119. default 27
  120. endif
  121. endif
  122. menuconfig BSP_USING_ADC
  123. bool "Enable ADC"
  124. default n
  125. select RT_USING_ADC
  126. if BSP_USING_ADC
  127. config BSP_USING_ADC1
  128. bool "Enable ADC1"
  129. default n
  130. config BSP_USING_ADC2
  131. bool "Enable ADC2"
  132. default n
  133. endif
  134. endmenu
  135. endmenu