Kconfig 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. menu "Hardware Drivers Config"
  2. config SOC_R9A07G084
  3. bool
  4. select SOC_SERIES_R9A07G0
  5. select RT_USING_COMPONENTS_INIT
  6. select RT_USING_USER_MAIN
  7. default y
  8. menu "Onboard Peripheral Drivers"
  9. endmenu
  10. menu "On-chip Peripheral Drivers"
  11. source "libraries/HAL_Drivers/Kconfig"
  12. menuconfig BSP_USING_UART
  13. bool "Enable UART"
  14. default y
  15. select RT_USING_SERIAL
  16. select RT_USING_SERIAL_V2
  17. if BSP_USING_UART
  18. menuconfig BSP_USING_UART0
  19. bool "Enable UART0"
  20. default n
  21. if BSP_USING_UART0
  22. config BSP_UART0_RX_USING_DMA
  23. bool "Enable UART0 RX DMA"
  24. depends on BSP_USING_UART0 && RT_SERIAL_USING_DMA
  25. default n
  26. config BSP_UART0_TX_USING_DMA
  27. bool "Enable UART0 TX DMA"
  28. depends on BSP_USING_UART0 && RT_SERIAL_USING_DMA
  29. default n
  30. config BSP_UART0_RX_BUFSIZE
  31. int "Set UART0 RX buffer size"
  32. range 64 65535
  33. depends on RT_USING_SERIAL_V2
  34. default 256
  35. config BSP_UART0_TX_BUFSIZE
  36. int "Set UART0 TX buffer size"
  37. range 0 65535
  38. depends on RT_USING_SERIAL_V2
  39. default 0
  40. endif
  41. endif
  42. menuconfig BSP_USING_ADC
  43. bool "Enable ADC"
  44. default n
  45. select RT_USING_ADC
  46. if BSP_USING_ADC
  47. config BSP_USING_ADC1
  48. bool "Enable ADC1"
  49. default n
  50. endif
  51. menuconfig BSP_USING_CANFD
  52. bool "Enable CANFD"
  53. default n
  54. select RT_USING_CAN
  55. select RT_CAN_USING_CANFD
  56. if BSP_USING_CANFD
  57. config BSP_USING_CANFD0
  58. bool "Enable CANFD0"
  59. default n
  60. config BSP_USING_CANFD1
  61. bool "Enable CANFD1"
  62. default n
  63. endif
  64. menuconfig BSP_USING_I2C
  65. bool "Enable I2C BUS"
  66. default n
  67. select RT_USING_I2C
  68. select RT_USING_I2C_BITOPS
  69. select RT_USING_PIN
  70. if BSP_USING_I2C
  71. config BSP_USING_HW_I2C
  72. bool "Enable Hardware I2C BUS"
  73. default n
  74. if BSP_USING_HW_I2C
  75. config BSP_USING_HW_I2C0
  76. bool "Enable Hardware I2C0 BUS"
  77. default n
  78. endif
  79. if BSP_USING_HW_I2C
  80. config BSP_USING_HW_I2C1
  81. bool "Enable Hardware I2C1 BUS"
  82. default n
  83. endif
  84. if !BSP_USING_HW_I2C
  85. menuconfig BSP_USING_I2C1
  86. bool "Enable I2C1 BUS (software simulation)"
  87. default y
  88. if BSP_USING_I2C1
  89. config BSP_I2C1_SCL_PIN
  90. hex "i2c1 scl pin number"
  91. range 0x0000 0x0B0F
  92. default 0x0B03
  93. config BSP_I2C1_SDA_PIN
  94. hex "I2C1 sda pin number"
  95. range 0x0000 0x0B0F
  96. default 0x050E
  97. endif
  98. endif
  99. endif
  100. menuconfig BSP_USING_SPI
  101. bool "Enable SPI BUS"
  102. default n
  103. select RT_USING_SPI
  104. if BSP_USING_SPI
  105. config BSP_USING_SPI0
  106. bool "Enable SPI0 BUS"
  107. default n
  108. config BSP_USING_SPI1
  109. bool "Enable SPI1 BUS"
  110. default n
  111. config BSP_USING_SPI2
  112. bool "Enable SPI2 BUS"
  113. default n
  114. endif
  115. menuconfig BSP_USING_TIM
  116. bool "Enable timer"
  117. default n
  118. select RT_USING_HWTIMER
  119. if BSP_USING_TIM
  120. config BSP_USING_TIM0
  121. bool "Enable TIM0"
  122. default n
  123. config BSP_USING_TIM1
  124. bool "Enable TIM1"
  125. default n
  126. endif
  127. config BSP_USING_ETH
  128. bool "Enable Ethernet"
  129. select RT_USING_SAL
  130. select RT_USING_LWIP
  131. select RT_USING_NETDEV
  132. default n
  133. endmenu
  134. menu "Board extended module Drivers"
  135. menuconfig BSP_USING_RW007
  136. bool "Enable RW007"
  137. default n
  138. select PKG_USING_RW007
  139. select BSP_USING_SPI
  140. select BSP_USING_SPI2
  141. select RT_USING_MEMPOOL
  142. select RW007_NOT_USE_EXAMPLE_DRIVERS
  143. if BSP_USING_RW007
  144. config RA_RW007_SPI_BUS_NAME
  145. string "RW007 BUS NAME"
  146. default "spi2"
  147. config RA_RW007_CS_PIN
  148. hex "(HEX)CS pin index"
  149. default 0x1207
  150. config RA_RW007_BOOT0_PIN
  151. hex "(HEX)BOOT0 pin index (same as spi clk pin)"
  152. default 0x1204
  153. config RA_RW007_BOOT1_PIN
  154. hex "(HEX)BOOT1 pin index (same as spi cs pin)"
  155. default 0x1207
  156. config RA_RW007_INT_BUSY_PIN
  157. hex "(HEX)INT/BUSY pin index"
  158. default 0x1102
  159. config RA_RW007_RST_PIN
  160. hex "(HEX)RESET pin index"
  161. default 0x1706
  162. endif
  163. endmenu
  164. endmenu