Kconfig 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. menu "Hardware Drivers Config"
  2. config SOC_R7FA4M1AB
  3. bool
  4. select SOC_SERIES_R7FA4M1
  5. select RT_USING_COMPONENTS_INIT
  6. select RT_USING_USER_MAIN
  7. default y
  8. menu "Onboard Peripheral Drivers"
  9. menuconfig BSP_USING_FS
  10. bool "Enable filesystem"
  11. default n
  12. if BSP_USING_FS
  13. config BSP_USING_SPICARD_FS
  14. bool "Enable SPI FLASH filesystem"
  15. select BSP_USING_SCI
  16. select BSP_USING_SCI9
  17. select BSP_USING_SCI9_SPI
  18. select RT_USING_SPI_MSD
  19. select RT_USING_DFS_ELMFAT
  20. default n
  21. endif
  22. endmenu
  23. menu "On-chip Peripheral Drivers"
  24. rsource "../../libraries/HAL_Drivers/drivers/Kconfig"
  25. menuconfig BSP_USING_UART
  26. bool "Enable UART"
  27. default y
  28. select RT_USING_SERIAL
  29. select RT_USING_SERIAL_V2
  30. if BSP_USING_UART
  31. menuconfig BSP_USING_UART0
  32. bool "Enable UART0"
  33. default y
  34. if BSP_USING_UART0
  35. config BSP_UART0_RX_USING_DMA
  36. bool "Enable UART0 RX DMA"
  37. depends on BSP_USING_UART0 && RT_SERIAL_USING_DMA
  38. default n
  39. config BSP_UART0_TX_USING_DMA
  40. bool "Enable UART0 TX DMA"
  41. depends on BSP_USING_UART0 && RT_SERIAL_USING_DMA
  42. default n
  43. config BSP_UART0_RX_BUFSIZE
  44. int "Set UART0 RX buffer size"
  45. range 64 65535
  46. depends on RT_USING_SERIAL_V2
  47. default 256
  48. config BSP_UART0_TX_BUFSIZE
  49. int "Set UART0 TX buffer size"
  50. range 0 65535
  51. depends on RT_USING_SERIAL_V2
  52. default 0
  53. endif
  54. endif
  55. menuconfig BSP_USING_SPI
  56. bool "Enable SPI"
  57. default n
  58. select RT_USING_SPI
  59. if BSP_USING_SPI
  60. config BSP_USING_SPI0
  61. bool "Enable SPI0 BUS"
  62. default n
  63. config BSP_USING_SPI1
  64. bool "Enable SPI1 BUS"
  65. default n
  66. endif
  67. menuconfig BSP_USING_HW_I2C
  68. bool "Enable I2C"
  69. default n
  70. select RT_USING_I2C
  71. select BSP_USING_HW_I2C0
  72. if BSP_USING_HW_I2C
  73. config BSP_USING_HW_I2C0
  74. bool "Enable I2C0 BUS"
  75. default n
  76. endif
  77. menuconfig BSP_USING_ADC
  78. bool "Enable ADC"
  79. default n
  80. select RT_USING_ADC
  81. if BSP_USING_ADC
  82. config BSP_USING_ADC0
  83. bool "Enable ADC0"
  84. default n
  85. endif
  86. menuconfig BSP_USING_TIM
  87. bool "Enable timer"
  88. default n
  89. select RT_USING_HWTIMER
  90. if BSP_USING_TIM
  91. config BSP_USING_TIM0
  92. bool "Enable TIM0"
  93. default n
  94. config BSP_USING_TIM1
  95. bool "Enable TIM1"
  96. default n
  97. endif
  98. menuconfig BSP_USING_DAC
  99. bool "Enable DAC"
  100. default n
  101. select RT_USING_DAC
  102. if BSP_USING_DAC
  103. config BSP_USING_DAC0
  104. bool "Enable DAC0"
  105. default n
  106. endif
  107. menuconfig BSP_USING_PWM
  108. bool "Enable PWM"
  109. default n
  110. select RT_USING_PWM
  111. if BSP_USING_PWM
  112. config BSP_USING_PWM0
  113. bool "Enable GPT0 (32-Bits) output PWM"
  114. default n
  115. endif
  116. menuconfig BSP_USING_CAN
  117. bool "Enable CAN"
  118. default n
  119. select RT_USING_CAN
  120. if BSP_USING_CAN
  121. config BSP_USING_CAN0
  122. bool "Enable CAN0"
  123. default n
  124. endif
  125. endmenu
  126. menu "Board extended module Drivers"
  127. endmenu
  128. endmenu