Kconfig 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. menu "Hardware Drivers Config"
  2. menu "Onboard Peripheral Drivers"
  3. config BSP_USING_ARDUINO
  4. bool "Compatible with Arduino Ecosystem (RTduino)"
  5. select PKG_USING_RTDUINO
  6. select BSP_USING_USART1
  7. select BSP_USING_USART2
  8. select BSP_USING_GPIO
  9. select BSP_USING_ADC
  10. select BSP_USING_ADC1
  11. select BSP_USING_PWM
  12. select BSP_USING_PWM1
  13. select BSP_USING_PWM4
  14. select BSP_USING_PWM4_CH4
  15. select BSP_USING_PWM4_CH3
  16. select BSP_USING_PWM4_CH2
  17. select BSP_USING_PWM4_CH1
  18. select BSP_USING_PWM1_CH3
  19. select BSP_USING_PWM1_CH2
  20. select BSP_USING_PWM1_CH1
  21. select BSP_USING_SPI
  22. select BSP_USING_SPI1
  23. select BSP_USING_I2C
  24. select BSP_USING_I2C1
  25. imply RTDUINO_USING_SERVO
  26. imply RTDUINO_USING_SPI
  27. imply RTDUINO_USING_WIRE
  28. default n
  29. endmenu
  30. menu "On-chip Peripheral Drivers"
  31. config BSP_USING_GPIO
  32. bool "Enable GPIO"
  33. select RT_USING_PIN
  34. default y
  35. menuconfig BSP_USING_UART
  36. bool "Enable UART"
  37. default y
  38. select RT_USING_SERIAL
  39. if BSP_USING_UART
  40. config BSP_USING_UART1
  41. bool "Enable UART1"
  42. default y
  43. config BSP_UART1_RX_USING_DMA
  44. bool "Enable UART1 RX DMA"
  45. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  46. default n
  47. config BSP_USING_UART2
  48. bool "Enable UART2"
  49. default n
  50. config BSP_UART2_RX_USING_DMA
  51. bool "Enable UART2 RX DMA"
  52. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  53. default n
  54. endif
  55. menuconfig BSP_USING_ADC
  56. bool "Enable ADC"
  57. default n
  58. select RT_USING_ADC
  59. if BSP_USING_ADC
  60. config BSP_USING_ADC1
  61. bool "Enable ADC1"
  62. default n
  63. endif
  64. menuconfig BSP_USING_I2C1
  65. bool "Enable I2C1 BUS (software simulation)"
  66. default n
  67. select RT_USING_I2C
  68. select RT_USING_I2C_BITOPS
  69. select RT_USING_PIN
  70. if BSP_USING_I2C1
  71. comment "Notice: PC14 --> 46; PC15 --> 47"
  72. config BSP_I2C1_SCL_PIN
  73. int "i2c1 scl pin number"
  74. range 0 48
  75. default 47
  76. config BSP_I2C1_SDA_PIN
  77. int "I2C1 sda pin number"
  78. range 0 48
  79. default 46
  80. endif
  81. menuconfig BSP_USING_PWM
  82. bool "Enable PWM"
  83. default n
  84. select RT_USING_PWM
  85. if BSP_USING_PWM
  86. menuconfig BSP_USING_PWM1
  87. bool "Enable timer1 output PWM"
  88. default n
  89. if BSP_USING_PWM1
  90. config BSP_USING_PWM1_CH1
  91. bool "Enable PWM1 channel1"
  92. default n
  93. config BSP_USING_PWM1_CH2
  94. bool "Enable PWM1 channel2"
  95. default n
  96. config BSP_USING_PWM1_CH3
  97. bool "Enable PWM1 channel3"
  98. default n
  99. endif
  100. menuconfig BSP_USING_PWM4
  101. bool "Enable timer4 output PWM"
  102. default n
  103. if BSP_USING_PWM4
  104. config BSP_USING_PWM4_CH1
  105. bool "Enable PWM4 channel1"
  106. default n
  107. config BSP_USING_PWM4_CH2
  108. bool "Enable PWM4 channel2"
  109. default n
  110. config BSP_USING_PWM4_CH3
  111. bool "Enable PWM4 channel3"
  112. default n
  113. config BSP_USING_PWM4_CH4
  114. bool "Enable PWM4 channel4"
  115. default n
  116. endif
  117. endif
  118. menuconfig BSP_USING_SPI
  119. bool "Enable SPI BUS"
  120. default n
  121. select RT_USING_SPI
  122. if BSP_USING_SPI
  123. config BSP_USING_SPI1
  124. bool "Enable SPI1 BUS"
  125. default n
  126. config BSP_SPI1_TX_USING_DMA
  127. bool "Enable SPI1 TX DMA"
  128. depends on BSP_USING_SPI1
  129. default n
  130. config BSP_SPI1_RX_USING_DMA
  131. bool "Enable SPI1 RX DMA"
  132. depends on BSP_USING_SPI1
  133. select BSP_SPI1_TX_USING_DMA
  134. default n
  135. endif
  136. menuconfig BSP_USING_TIM
  137. bool "Enable timer"
  138. default n
  139. select RT_USING_HWTIMER
  140. if BSP_USING_TIM
  141. config BSP_USING_TIM10
  142. bool "Enable TIM10"
  143. default n
  144. config BSP_USING_TIM11
  145. bool "Enable TIM11"
  146. default n
  147. endif
  148. config BSP_USING_ON_CHIP_FLASH
  149. bool "Enable on-chip FLASH"
  150. default n
  151. config BSP_USING_USBD
  152. bool "Enable USB Device"
  153. select RT_USING_USB_DEVICE
  154. default n
  155. source "$BSP_DIR/../libraries/HAL_Drivers/drivers/Kconfig"
  156. endmenu
  157. menu "Board extended module Drivers"
  158. endmenu
  159. endmenu