Kconfig 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. menu "Hardware Drivers Config"
  2. config SOC_N32G452XX
  3. bool
  4. select SOC_SERIES_N32G452XX
  5. select RT_USING_COMPONENTS_INIT
  6. select RT_USING_USER_MAIN
  7. default y
  8. menu "Onboard Peripheral Drivers"
  9. config RT_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 RT_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_UART
  24. bool "Enable UART"
  25. default y
  26. select RT_USING_SERIAL
  27. if BSP_USING_UART
  28. config BSP_USING_UART1
  29. bool "Enable UART1"
  30. default y
  31. config BSP_USING_UART2
  32. bool "Enable UART2"
  33. default n
  34. config BSP_USING_UART3
  35. bool "Enable UART3"
  36. default n
  37. endif
  38. menuconfig BSP_USING_PWM
  39. bool "Enable PWM"
  40. default n
  41. select RT_USING_PWM
  42. if BSP_USING_PWM
  43. menuconfig BSP_USING_TIM3
  44. bool "Enable timer3 output PWM"
  45. default n
  46. if BSP_USING_TIM3
  47. config BSP_USING_TIM3_CH1
  48. bool "Enable TIM3 channel1 PWM"
  49. default n
  50. config BSP_USING_TIM3_CH2
  51. bool "Enable TIM3 channel2 PWM"
  52. default n
  53. config BSP_USING_TIM3_CH3
  54. bool "Enable TIM3 channel3 PWM"
  55. default n
  56. config BSP_USING_TIM3_CH4
  57. bool "Enable TIM3 channel4 PWM"
  58. default n
  59. endif
  60. endif
  61. menuconfig BSP_USING_HWTIMER
  62. bool "Enable HWTIMER"
  63. default n
  64. select RT_USING_HWTIMER
  65. if BSP_USING_HWTIMER
  66. config BSP_USING_HWTIM3
  67. bool "Enable hardware timer3"
  68. default n
  69. config BSP_USING_HWTIM4
  70. bool "Enable hardware timer4"
  71. default n
  72. config BSP_USING_HWTIM5
  73. bool "Enable hardware timer5"
  74. default n
  75. config BSP_USING_HWTIM6
  76. bool "Enable hardware timer6"
  77. default n
  78. config BSP_USING_HWTIM7
  79. bool "Enable hardware timer7"
  80. default n
  81. endif
  82. menuconfig BSP_USING_SPI
  83. bool "Enable SPI BUS"
  84. default n
  85. select RT_USING_SPI
  86. if BSP_USING_SPI
  87. config BSP_USING_SPI1
  88. bool "Enable SPI1 BUS"
  89. default n
  90. config BSP_USING_SPI2
  91. bool "Enable SPI2 BUS"
  92. default n
  93. endif
  94. menuconfig BSP_USING_I2C1
  95. bool "Enable I2C1 BUS (software simulation)"
  96. default n
  97. select RT_USING_I2C
  98. select RT_USING_I2C_BITOPS
  99. select RT_USING_PIN
  100. if BSP_USING_I2C1
  101. config BSP_I2C1_SCL_PIN
  102. int "i2c1 scl pin number"
  103. range 0 63
  104. default 22
  105. config BSP_I2C1_SDA_PIN
  106. int "I2C1 sda pin number"
  107. range 0 63
  108. default 23
  109. endif
  110. menuconfig BSP_USING_ADC
  111. bool "Enable ADC"
  112. default n
  113. select RT_USING_ADC
  114. if BSP_USING_ADC
  115. config BSP_USING_ADC1
  116. bool "Enable ADC1"
  117. default n
  118. config BSP_USING_ADC2
  119. bool "Enable ADC2"
  120. default n
  121. endif
  122. menuconfig BSP_USING_CAN
  123. bool "Enable CAN"
  124. default n
  125. select RT_USING_CAN
  126. if BSP_USING_CAN
  127. config BSP_USING_CAN1
  128. bool "using CAN1"
  129. default n
  130. config BSP_USING_CAN2
  131. bool "using CAN2"
  132. default n
  133. endif
  134. menuconfig BSP_USING_SDIO
  135. bool "Enable SDIO"
  136. default n
  137. select RT_USING_SDIO
  138. if BSP_USING_SDIO
  139. config BSP_USING_SDIO1
  140. bool "Enable SDIO1"
  141. default n
  142. endif
  143. endmenu
  144. endmenu