Kconfig 6.7 KB

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