Kconfig 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. menu "Hardware Drivers Config"
  2. config MCU_HC32F460
  3. bool
  4. select ARCH_ARM_CORTEX_M4
  5. select RT_USING_COMPONENTS_INIT
  6. select RT_USING_USER_MAIN
  7. default y
  8. menu "On-chip Peripheral Drivers"
  9. config BSP_USING_GPIO
  10. bool "Enable GPIO"
  11. select RT_USING_PIN
  12. default y
  13. menuconfig BSP_USING_UART
  14. bool "Enable UART"
  15. default y
  16. select RT_USING_SERIAL
  17. if BSP_USING_UART
  18. config BSP_USING_UART1
  19. bool "Enable UART1"
  20. default n
  21. config BSP_USING_UART2
  22. bool "Enable UART2"
  23. default n
  24. config BSP_USING_UART3
  25. bool "Enable UART3"
  26. default n
  27. config BSP_USING_UART4
  28. bool "Enable UART4"
  29. default y
  30. endif
  31. menuconfig BSP_USING_RTC
  32. bool "Enable RTC"
  33. select RT_USING_RTC
  34. select RT_USING_LIBC
  35. default n
  36. if BSP_USING_RTC
  37. choice
  38. prompt "Select clock source"
  39. default BSP_RTC_USING_LRC
  40. config BSP_RTC_USING_XTAL32
  41. bool "RTC USING XTAL32"
  42. config BSP_RTC_USING_LRC
  43. bool "RTC USING LRC"
  44. endchoice
  45. endif
  46. endmenu
  47. endmenu