Kconfig 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. menu "Hardware Drivers Config"
  2. config SOC_SERIES_N32L43X
  3. bool
  4. default y
  5. config SOC_N32L43X
  6. bool
  7. select SOC_SERIES_N32L43X
  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. endif
  39. menuconfig BSP_USING_SPI
  40. bool "Enable SPI BUS"
  41. default n
  42. select RT_USING_SPI
  43. if BSP_USING_SPI
  44. config BSP_USING_SPI1
  45. bool "Enable SPI1 BUS"
  46. default n
  47. config BSP_USING_SPI2
  48. bool "Enable SPI2 BUS"
  49. default n
  50. endif
  51. menuconfig BSP_USING_I2C1
  52. bool "Enable I2C1 BUS (software simulation)"
  53. default n
  54. select RT_USING_I2C
  55. select RT_USING_I2C_BITOPS
  56. select RT_USING_PIN
  57. if BSP_USING_I2C1
  58. config BSP_I2C1_SCL_PIN
  59. int "i2c1 scl pin number"
  60. range 0 64
  61. default 22
  62. config BSP_I2C1_SDA_PIN
  63. int "I2C1 sda pin number"
  64. range 0 64
  65. default 23
  66. endif
  67. menuconfig BSP_USING_RTC
  68. bool "Enable RTC"
  69. select RT_USING_RTC
  70. default n
  71. if BSP_USING_RTC
  72. choice
  73. prompt "Select clock source"
  74. default BSP_RTC_USING_LSE
  75. config BSP_RTC_USING_LSE
  76. bool "RTC USING LSE"
  77. config BSP_RTC_USING_HSE
  78. bool "RTC USING HSE"
  79. config BSP_RTC_USING_LSI
  80. bool "RTC USING LSI"
  81. endchoice
  82. endif
  83. config BSP_USING_WDT
  84. bool "Enable Watchdog Timer"
  85. select RT_USING_WDT
  86. default n
  87. menuconfig BSP_USING_HWTIMER
  88. bool "Enable hwtimer"
  89. default n
  90. select RT_USING_HWTIMER
  91. if BSP_USING_HWTIMER
  92. config BSP_USING_HWTIMER1
  93. bool "using hwtimer1"
  94. default n
  95. config BSP_USING_HWTIMER2
  96. bool "using hwtimer2"
  97. default n
  98. config BSP_USING_HWTIMER3
  99. bool "using hwtimer3"
  100. default n
  101. config BSP_USING_HWTIMER4
  102. bool "using hwtimer4"
  103. default n
  104. config BSP_USING_HWTIMER5
  105. bool "using hwtimer5"
  106. default n
  107. config BSP_USING_HWTIMER6
  108. bool "using hwtimer6"
  109. default n
  110. config BSP_USING_HWTIMER7
  111. bool "using hwtimer7"
  112. default n
  113. config BSP_USING_HWTIMER8
  114. bool "using hwtimer8"
  115. default n
  116. config BSP_USING_HWTIMER9
  117. bool "using hwtimer9"
  118. default n
  119. endif
  120. config BSP_USING_ADC
  121. bool "Enable ADC"
  122. select RT_USING_ADC
  123. default n
  124. config BSP_USING_DAC
  125. bool "Enable DAC"
  126. select RT_USING_DAC
  127. default n
  128. config BSP_USING_CAN
  129. bool "Enable CAN"
  130. select RT_USING_CAN
  131. default n
  132. rsource "../../libraries/n32_drivers/Kconfig"
  133. endmenu
  134. menu "Board extended module Drivers"
  135. endmenu
  136. endmenu