Kconfig 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. mainmenu "RT-Thread Configuration"
  2. config BSP_DIR
  3. string
  4. option env="BSP_ROOT"
  5. default "."
  6. config RTT_DIR
  7. string
  8. option env="RTT_ROOT"
  9. default "../.."
  10. config PKGS_DIR
  11. string
  12. option env="PKGS_ROOT"
  13. default "packages"
  14. source "$RTT_DIR/Kconfig"
  15. source "$RTT_DIR/libcpu/mips/common/Kconfig"
  16. source "$PKGS_DIR/Kconfig"
  17. config SOC_LS
  18. bool
  19. default y
  20. config SOC_LS1C300
  21. bool
  22. select RT_USING_COMPONENTS_INIT
  23. select RT_USING_USER_MAIN
  24. default y
  25. choice
  26. prompt "Board Type"
  27. config RT_LS1C_OPENLOONGSON
  28. bool "OpenLoongson Board"
  29. config RT_LS1C_BAICAIBOARD
  30. bool "Baicai Board"
  31. endchoice
  32. config RT_USING_SELF_BOOT
  33. bool "Enable RT-Thread run without bootloader"
  34. default n
  35. if RT_USING_SELF_BOOT
  36. config RT_SELF_BOOT_DEBUG
  37. bool "Debug self boot code"
  38. default n
  39. endif
  40. if RT_USING_SERIAL
  41. config RT_USING_UART2
  42. bool "Using RT_USING_UART2"
  43. default y
  44. config RT_USING_UART1
  45. bool "Using RT_USING_UART1"
  46. default y
  47. config RT_USING_UART3
  48. bool "Using RT_USING_UART3"
  49. default n
  50. config RT_UART_RX_BUFFER_SIZE
  51. int "The rx buffer size"
  52. default 64 if RT_USING_SERIAL
  53. default 64
  54. endif
  55. config RT_USING_GMAC_INT_MODE
  56. bool "Using RT_USING_GMAC_INT_MODE"
  57. default y
  58. config RT_USING_SPI0
  59. bool "Enable SPI0"
  60. select RT_USING_SPI
  61. default y
  62. config RT_USING_SPI1
  63. bool "Enable SPI1"
  64. select RT_USING_SPI
  65. default y
  66. if RT_USING_I2C
  67. config RT_USING_I2C1
  68. bool "Enable I2C1"
  69. default y
  70. config RT_USING_I2C2
  71. bool "Enable I2C2"
  72. default y
  73. endif
  74. config USING_BXCAN0
  75. bool "Enable CAN0"
  76. select RT_USING_CAN
  77. default y
  78. config USING_BXCAN1
  79. bool "Enable CAN1"
  80. select RT_USING_CAN
  81. default y
  82. if RT_USING_CAN
  83. config RT_CAN_USING_HDR
  84. bool "Using RT_CAN_USING_HDR"
  85. select RT_USING_CAN
  86. default y
  87. endif
  88. choice
  89. prompt "Touch format"
  90. default NO_TOUCH
  91. config NO_TOUCH
  92. bool "with no touch"
  93. if RT_USING_RTGUI
  94. config XPT2046_USING_TOUCH
  95. bool "with XPT2046 touch"
  96. endif
  97. config TINA_USING_TOUCH
  98. bool "with TINA touch"
  99. endchoice
  100. if RT_USING_RTC
  101. config RT_RTC_NAME
  102. string "RT_RTC_NAME"
  103. default "RTC"
  104. endif