Kconfig 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. menu "Hardware Drivers Config"
  2. menu "On-chip Peripheral Drivers"
  3. menuconfig BSP_USING_UART
  4. bool "Enable UART"
  5. default y
  6. select RT_USING_SERIAL
  7. if BSP_USING_UART
  8. config RT_USING_UART1
  9. bool "Enable UART1"
  10. default y
  11. config RT_USING_UART0
  12. bool "Enable UART0"
  13. default n
  14. endif
  15. menuconfig BSP_USING_SDC
  16. bool "Enable sd controller"
  17. select RT_USING_SDIO
  18. select RT_USING_DFS
  19. select RT_USING_DFS_ELMFAT
  20. default n
  21. if BSP_USING_SDC
  22. config BSP_SDC_DEBUG_PRINT
  23. bool "Enable sd controller debug print"
  24. default n
  25. config BSP_SDC_USE_IRQ
  26. bool "Use interrupt to handle when cmd complete, dma complete"
  27. default n
  28. if BSP_SDC_USE_IRQ
  29. config BSP_SDC_IRQ_CARD_REMOVE
  30. bool "Use interrupt to determine if the card is pulled out"
  31. default n
  32. endif
  33. endif
  34. menuconfig BSP_USING_GMAC
  35. bool "Enable gmac"
  36. default n
  37. select RT_USING_NETDEV
  38. if BSP_USING_GMAC
  39. config BSP_USING_GMAC0
  40. bool "Enable GMAC0"
  41. default y
  42. config BSP_USING_GMAC1
  43. bool "Enable GMAC1"
  44. default n
  45. config RT_LWIP_ETH_PAD_SIZE
  46. int "set lwip ETH_PAD_SIZE"
  47. range 2 256
  48. default 2
  49. config RAW_DATA_PRINT
  50. bool "Enable mac raw data print"
  51. default n
  52. if RAW_DATA_PRINT
  53. config ETH_RX_DUMP
  54. bool "Enable gmac receive raw data print "
  55. default n
  56. config ETH_TX_DUMP
  57. bool "Enable gmac send raw data print "
  58. default n
  59. endif
  60. endif
  61. # menuconfig BSP_USE_QSPI
  62. # bool "Enable Qspi"
  63. # select RT_USING_SFUD
  64. # select RT_SFUD_USING_QSPI
  65. # default n
  66. # if BSP_USE_QSPI
  67. # config BSP_QSPI_DEBUG
  68. # bool "Enable qspi debug print"
  69. # default n
  70. # endif
  71. menuconfig BSP_USE_SPI
  72. bool "Enable Spi"
  73. select RT_USING_SFUD
  74. select RT_SFUD_USING_SPI
  75. select RT_SFUD_USING_SFDP
  76. select RT_SFUD_USING_FLASH_INFO_TABLE
  77. select BSP_USE_GPIO
  78. default n
  79. if BSP_USE_SPI
  80. config BSP_SPI_DEBUG
  81. bool "Enable spi debug print"
  82. default n
  83. endif
  84. menuconfig BSP_USE_GPIO
  85. bool "Enable Gpio"
  86. default n
  87. if BSP_USE_GPIO
  88. config BSP_GPIO_DEBUG
  89. bool "Enable gpio debug print"
  90. default n
  91. endif
  92. menuconfig BSP_USE_CAN
  93. bool "Enable Can"
  94. select RT_USING_CAN
  95. default n
  96. if BSP_USE_CAN
  97. config BSP_USING_CAN0
  98. bool "Enable can0"
  99. default n
  100. config BSP_USING_CAN1
  101. bool "Enable can1"
  102. default n
  103. if BSP_USING_CAN0
  104. config BSP_USING_CAN0_DEBUG
  105. bool "Enable can0 work in loop back"
  106. default n
  107. endif
  108. endif
  109. endmenu
  110. menu "Board extended module Drivers"
  111. endmenu
  112. endmenu