Kconfig 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. menu "Hardware Drivers Config"
  2. config MCU_HC32L136
  3. bool
  4. select ARCH_ARM_CORTEX_M0
  5. select RT_USING_COMPONENTS_INIT
  6. select RT_USING_USER_MAIN
  7. default y
  8. menu "Onboard Peripheral Drivers"
  9. endmenu
  10. menu "On-chip Peripheral Drivers"
  11. config BSP_USING_GPIO
  12. bool "Enable GPIO"
  13. select RT_USING_PIN
  14. default y
  15. menuconfig BSP_USING_UART
  16. bool "Enable UART"
  17. default y
  18. select RT_USING_SERIAL
  19. if BSP_USING_UART
  20. config BSP_USING_UART0
  21. bool "Enable UART0"
  22. default n
  23. config BSP_USING_UART1
  24. bool "Enable UART1"
  25. default y
  26. endif
  27. menuconfig BSP_USING_I2C1
  28. bool "Enable I2C1 BUS (software simulation)"
  29. default y
  30. select RT_USING_I2C
  31. select RT_USING_I2C_BITOPS
  32. select RT_USING_PIN
  33. if BSP_USING_I2C1
  34. config BSP_I2C1_SCL_PIN
  35. int "i2c1 scl pin number"
  36. range 1 176
  37. default 51
  38. config BSP_I2C1_SDA_PIN
  39. int "I2C1 sda pin number"
  40. range 1 176
  41. default 90
  42. endif
  43. endmenu
  44. menu "Board extended module Drivers"
  45. endmenu
  46. endmenu