Kconfig 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. menu "Hardware Drivers Config"
  2. menu "Onboard Peripheral Drivers"
  3. config BSP_USING_USB_TO_USART
  4. bool "Enable USB TO USART (lpuart1)"
  5. select BSP_USING_LPUART1
  6. default y
  7. endmenu
  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_LPUART1
  19. bool "Enable LPUART1"
  20. default y
  21. config BSP_LPUART1_RX_USING_DMA
  22. bool "Enable LPUART1 RX DMA"
  23. depends on BSP_USING_LPUART1 && RT_SERIAL_USING_DMA
  24. default n
  25. config BSP_USING_UART1
  26. bool "Enable UART1"
  27. default n
  28. config BSP_UART1_RX_USING_DMA
  29. bool "Enable UART1 RX DMA"
  30. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  31. default n
  32. config BSP_USING_UART2
  33. bool "Enable UART2"
  34. default n
  35. config BSP_UART2_RX_USING_DMA
  36. bool "Enable UART2 RX DMA"
  37. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  38. default n
  39. endif
  40. menuconfig BSP_USING_TIM
  41. bool "Enable timer"
  42. default n
  43. select RT_USING_HWTIMER
  44. if BSP_USING_TIM
  45. config BSP_USING_TIM2
  46. bool "Enable TIM2"
  47. default n
  48. config BSP_USING_TIM3
  49. bool "Enable TIM3"
  50. default n
  51. endif
  52. menuconfig BSP_USING_PWM
  53. bool "Enable PWM"
  54. default n
  55. select RT_USING_PWM
  56. if BSP_USING_PWM
  57. menuconfig BSP_USING_PWM3
  58. bool "Enable timer3 output PWM"
  59. default n
  60. if BSP_USING_PWM3
  61. config BSP_USING_PWM3_CH1
  62. bool "Enable PWM3 channel1"
  63. default n
  64. config BSP_USING_PWM3_CH2
  65. bool "Enable PWM3 channel2"
  66. default n
  67. config BSP_USING_PWM3_CH3
  68. bool "Enable PWM3 channel3"
  69. default n
  70. config BSP_USING_PWM3_CH4
  71. bool "Enable PWM3 channel4"
  72. default n
  73. endif
  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_SPI1_TX_USING_DMA
  84. bool "Enable SPI1 TX DMA"
  85. depends on BSP_USING_SPI1
  86. default n
  87. config BSP_SPI1_RX_USING_DMA
  88. bool "Enable SPI1 RX DMA"
  89. depends on BSP_USING_SPI1
  90. select BSP_SPI1_TX_USING_DMA
  91. default n
  92. config BSP_USING_SPI2
  93. bool "Enable SPI2 BUS"
  94. default n
  95. config BSP_SPI2_TX_USING_DMA
  96. bool "Enable SPI2 TX DMA"
  97. depends on BSP_USING_SPI2
  98. default n
  99. config BSP_SPI2_RX_USING_DMA
  100. bool "Enable SPI2 RX DMA"
  101. depends on BSP_USING_SPI2
  102. select BSP_SPI2_TX_USING_DMA
  103. default n
  104. endif
  105. menuconfig BSP_USING_I2C1
  106. bool "Enable I2C1 BUS (software simulation)"
  107. default n
  108. select RT_USING_I2C
  109. select RT_USING_I2C_BITOPS
  110. select RT_USING_PIN
  111. if BSP_USING_I2C1
  112. config BSP_I2C1_SCL_PIN
  113. int "i2c1 scl pin number"
  114. range 0 47
  115. default 22
  116. config BSP_I2C1_SDA_PIN
  117. int "I2C1 sda pin number"
  118. range 0 47
  119. default 23
  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. endif
  130. config BSP_USING_ON_CHIP_FLASH
  131. bool "Enable on-chip FLASH"
  132. default n
  133. config BSP_USING_WDT
  134. bool "Enable Watchdog Timer"
  135. select RT_USING_WDT
  136. default n
  137. source "$BSP_DIR/../libraries/HAL_Drivers/drivers/Kconfig"
  138. endmenu
  139. menu "Board extended module Drivers"
  140. endmenu
  141. endmenu