Kconfig 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. menu "BL808_M0 Hardware Drivers Config"
  2. config SOC_BL808
  3. bool
  4. select RT_USING_COMPONENTS_INIT
  5. select RT_USING_USER_MAIN
  6. select ARCH_RISCV_FPU_S
  7. default y
  8. config BSP_USING_JTAG_M0
  9. bool "Enable M0 JTAG "
  10. default n
  11. menu "On-chip Peripheral Drivers"
  12. config BSP_USING_GPIO
  13. bool "Enable GPIO"
  14. select RT_USING_PIN
  15. default y
  16. menuconfig BSP_USING_I2C1
  17. bool "Enable I2C1 BUS (software simulation)"
  18. default n
  19. select RT_USING_I2C
  20. select RT_USING_I2C_BITOPS
  21. select RT_USING_PIN
  22. if BSP_USING_I2C1
  23. config BSP_I2C1_SCL_PIN
  24. int "i2c1 scl pin number"
  25. range 0 33
  26. default 20
  27. config BSP_I2C1_SDA_PIN
  28. int "I2C1 sda pin number"
  29. range 0 33
  30. default 21
  31. endif
  32. menuconfig BSP_USING_UART
  33. bool "Enable UART"
  34. default y
  35. select RT_USING_SERIAL
  36. if BSP_USING_UART
  37. config BSP_USING_UART0
  38. bool "Enable UART0"
  39. default y
  40. if BSP_USING_UART0
  41. config BSP_UART0_TXD_PIN
  42. int "uart0 TXD pin number"
  43. default 14
  44. config BSP_UART0_RXD_PIN
  45. int "uart0 RXD pin number"
  46. default 15
  47. endif
  48. endif
  49. endmenu
  50. endmenu