Kconfig 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. # you can change the RTT_ROOT default: "rt-thread"
  11. # example : default "F:/git_repositories/rt-thread"
  12. config PKGS_DIR
  13. string
  14. option env="PKGS_ROOT"
  15. default "packages"
  16. source "$RTT_DIR/Kconfig"
  17. source "$PKGS_DIR/Kconfig"
  18. config SOC_SERIES_GD32F1
  19. bool
  20. default y
  21. config SOC_GD32103C
  22. bool
  23. select RT_USING_COMPONENTS_INIT
  24. select RT_USING_USER_MAIN
  25. select SOC_SERIES_GD32F1
  26. default y
  27. menu "On-chip Peripheral Drivers"
  28. menuconfig BSP_USING_UART
  29. bool "Enable UART"
  30. default y
  31. select RT_USING_SERIAL
  32. if BSP_USING_UART
  33. config BSP_USING_UART0
  34. bool "using uart0"
  35. default n
  36. config BSP_USING_UART1
  37. bool "using uart1"
  38. default n
  39. config BSP_USING_UART2
  40. bool "using uart2"
  41. default y
  42. config BSP_USING_UART3
  43. bool "using uart3"
  44. default n
  45. config BSP_USING_UART4
  46. bool "using uart4"
  47. default n
  48. endif
  49. menuconfig BSP_USING_ADC
  50. bool "Enable ADC"
  51. default n
  52. select RT_USING_ADC
  53. if BSP_USING_ADC
  54. config BSP_USING_ADC0
  55. bool "using adc0"
  56. default n
  57. config BSP_USING_ADC1
  58. bool "using adc1"
  59. default n
  60. endif
  61. endmenu