Kconfig 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. menu "Hardware Drivers Config"
  2. config SOC_SERIES_N32G45X
  3. bool
  4. default y
  5. config SOC_N32G45X
  6. bool
  7. select SOC_SERIES_N32G45X
  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. endif
  42. menuconfig BSP_USING_SPI
  43. bool "Enable SPI BUS"
  44. default n
  45. select RT_USING_SPI
  46. if BSP_USING_SPI
  47. config BSP_USING_SPI1
  48. bool "Enable SPI1 BUS"
  49. default n
  50. config BSP_USING_SPI2
  51. bool "Enable SPI2 BUS"
  52. default n
  53. config BSP_USING_SPI3
  54. bool "Enable SPI3 BUS"
  55. default n
  56. endif
  57. menuconfig BSP_USING_I2C1
  58. bool "Enable I2C1 BUS (software simulation)"
  59. default n
  60. select RT_USING_I2C
  61. select RT_USING_I2C_BITOPS
  62. select RT_USING_PIN
  63. if BSP_USING_I2C1
  64. config BSP_I2C1_SCL_PIN
  65. int "i2c1 scl pin number"
  66. range 0 111
  67. default 22
  68. config BSP_I2C1_SDA_PIN
  69. int "I2C1 sda pin number"
  70. range 0 111
  71. default 23
  72. endif
  73. menuconfig BSP_USING_RTC
  74. bool "Enable RTC"
  75. select RT_USING_RTC
  76. default n
  77. if BSP_USING_RTC
  78. choice
  79. prompt "Select clock source"
  80. default BSP_RTC_USING_LSE
  81. config BSP_RTC_USING_LSE
  82. bool "RTC USING LSE"
  83. config BSP_RTC_USING_HSE
  84. bool "RTC USING HSE"
  85. config BSP_RTC_USING_LSI
  86. bool "RTC USING LSI"
  87. endchoice
  88. endif
  89. config BSP_USING_WDT
  90. bool "Enable Watchdog Timer"
  91. select RT_USING_WDT
  92. default n
  93. menuconfig BSP_USING_HWTIMER
  94. bool "Enable hwtimer"
  95. default n
  96. select RT_USING_HWTIMER
  97. if BSP_USING_HWTIMER
  98. config BSP_USING_HWTIMER1
  99. bool "using hwtimer1"
  100. default n
  101. config BSP_USING_HWTIMER2
  102. bool "using hwtimer2"
  103. default n
  104. config BSP_USING_HWTIMER3
  105. bool "using hwtimer3"
  106. default n
  107. config BSP_USING_HWTIMER4
  108. bool "using hwtimer4"
  109. default n
  110. config BSP_USING_HWTIMER5
  111. bool "using hwtimer5"
  112. default n
  113. config BSP_USING_HWTIMER6
  114. bool "using hwtimer6"
  115. default n
  116. config BSP_USING_HWTIMER7
  117. bool "using hwtimer7"
  118. default n
  119. config BSP_USING_HWTIMER8
  120. bool "using hwtimer8"
  121. default n
  122. endif
  123. menuconfig BSP_USING_ADC
  124. bool "Enable ADC"
  125. default n
  126. select RT_USING_ADC
  127. if BSP_USING_ADC
  128. config BSP_USING_ADC1
  129. bool "using adc1"
  130. default n
  131. config BSP_USING_ADC2
  132. bool "using adc2"
  133. default n
  134. config BSP_USING_ADC3
  135. bool "using adc3"
  136. default n
  137. config BSP_USING_ADC4
  138. bool "using adc4"
  139. default n
  140. endif
  141. menuconfig BSP_USING_DAC
  142. bool "Enable DAC"
  143. default n
  144. select RT_USING_DAC
  145. if BSP_USING_DAC
  146. config BSP_USING_DAC1
  147. bool "using dac1"
  148. default n
  149. config BSP_USING_DAC2
  150. bool "using dac2"
  151. default n
  152. endif
  153. menuconfig BSP_USING_CAN
  154. bool "Enable CAN"
  155. default n
  156. select RT_USING_CAN
  157. if BSP_USING_CAN
  158. config BSP_USING_CAN1
  159. bool "using can1"
  160. default n
  161. config BSP_USING_CAN2
  162. bool "using can2"
  163. default n
  164. endif
  165. rsource "../../libraries/n32_drivers/Kconfig"
  166. endmenu
  167. menu "Board extended module Drivers"
  168. endmenu
  169. endmenu