Kconfig 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. menu "Hardware Drivers Config"
  2. config SOC_SERIES_N32G4FR
  3. bool
  4. default y
  5. config SOC_N32G4FR
  6. bool
  7. select SOC_SERIES_N32G4FR
  8. select RT_USING_COMPONENTS_INIT
  9. select RT_USING_USER_MAIN
  10. default y
  11. menu "Onboard Peripheral Drivers"
  12. endmenu
  13. menu "On-chip Peripheral Drivers"
  14. config BSP_USING_GPIO
  15. bool "Enable GPIO"
  16. select RT_USING_PIN
  17. default y
  18. menuconfig BSP_USING_UART
  19. bool "Enable UART"
  20. default y
  21. select RT_USING_SERIAL
  22. if BSP_USING_UART
  23. config BSP_USING_USART1
  24. bool "Enable USART1"
  25. default y
  26. config BSP_USING_USART2
  27. bool "Enable USART2"
  28. default n
  29. config BSP_USING_USART3
  30. bool "Enable USART3"
  31. default n
  32. config BSP_USING_UART4
  33. bool "Enable UART4"
  34. default n
  35. config BSP_USING_UART5
  36. bool "Enable UART5"
  37. default n
  38. config BSP_USING_UART6
  39. bool "Enable UART6"
  40. default n
  41. config BSP_USING_UART7
  42. bool "Enable UART7"
  43. default n
  44. endif
  45. menuconfig BSP_USING_SPI
  46. bool "Enable SPI BUS"
  47. default n
  48. select RT_USING_SPI
  49. if BSP_USING_SPI
  50. config BSP_USING_SPI1
  51. bool "Enable SPI1 BUS"
  52. default n
  53. config BSP_USING_SPI2
  54. bool "Enable SPI2 BUS"
  55. default n
  56. config BSP_USING_SPI3
  57. bool "Enable SPI3 BUS"
  58. default n
  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 111
  70. default 22
  71. config BSP_I2C1_SDA_PIN
  72. int "I2C1 sda pin number"
  73. range 0 111
  74. default 23
  75. endif
  76. menuconfig BSP_USING_RTC
  77. bool "Enable RTC"
  78. select RT_USING_RTC
  79. default n
  80. if BSP_USING_RTC
  81. choice
  82. prompt "Select clock source"
  83. default BSP_RTC_USING_LSE
  84. config BSP_RTC_USING_LSE
  85. bool "RTC USING LSE"
  86. config BSP_RTC_USING_LSI
  87. bool "RTC USING LSI"
  88. endchoice
  89. endif
  90. config BSP_USING_WDT
  91. bool "Enable Watchdog Timer"
  92. select RT_USING_WDT
  93. default n
  94. menuconfig BSP_USING_HWTIMER
  95. bool "Enable hwtimer"
  96. default n
  97. select RT_USING_HWTIMER
  98. if BSP_USING_HWTIMER
  99. config BSP_USING_HWTIMER1
  100. bool "using hwtimer1"
  101. default n
  102. config BSP_USING_HWTIMER2
  103. bool "using hwtimer2"
  104. default n
  105. config BSP_USING_HWTIMER3
  106. bool "using hwtimer3"
  107. default n
  108. config BSP_USING_HWTIMER4
  109. bool "using hwtimer4"
  110. default n
  111. config BSP_USING_HWTIMER5
  112. bool "using hwtimer5"
  113. default n
  114. config BSP_USING_HWTIMER6
  115. bool "using hwtimer6"
  116. default n
  117. config BSP_USING_HWTIMER7
  118. bool "using hwtimer7"
  119. default n
  120. config BSP_USING_HWTIMER8
  121. bool "using hwtimer8"
  122. default n
  123. endif
  124. menuconfig BSP_USING_ADC
  125. bool "Enable ADC"
  126. default n
  127. select RT_USING_ADC
  128. if BSP_USING_ADC
  129. config BSP_USING_ADC1
  130. bool "using adc1"
  131. default n
  132. config BSP_USING_ADC2
  133. bool "using adc2"
  134. default n
  135. config BSP_USING_ADC3
  136. bool "using adc3"
  137. default n
  138. config BSP_USING_ADC4
  139. bool "using adc4"
  140. default n
  141. endif
  142. menuconfig BSP_USING_DAC
  143. bool "Enable DAC"
  144. default n
  145. select RT_USING_DAC
  146. if BSP_USING_DAC
  147. config BSP_USING_DAC1
  148. bool "using dac1"
  149. default n
  150. config BSP_USING_DAC2
  151. bool "using dac2"
  152. default n
  153. endif
  154. menuconfig BSP_USING_CAN
  155. bool "Enable CAN"
  156. default n
  157. select RT_USING_CAN
  158. if BSP_USING_CAN
  159. config BSP_USING_CAN1
  160. bool "using can1"
  161. default n
  162. config BSP_USING_CAN2
  163. bool "using can2"
  164. default n
  165. endif
  166. rsource "../../libraries/n32_drivers/Kconfig"
  167. endmenu
  168. menu "Board extended module Drivers"
  169. endmenu
  170. endmenu