Kconfig 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. menu "General Drivers Configuration"
  2. menuconfig BSP_USING_UART
  3. bool "Using UART"
  4. select RT_USING_SERIAL
  5. default y
  6. if BSP_USING_UART
  7. config RT_USING_UART0
  8. bool "Enable UART 0"
  9. default n
  10. config RT_USING_UART1
  11. bool "Enable UART 1"
  12. default y
  13. config UART_IRQ_BASE
  14. int
  15. default 30
  16. endif
  17. menuconfig BSP_USING_I2C
  18. bool "Using HW I2C"
  19. select RT_USING_I2C
  20. select RT_USING_I2C_BITOPS
  21. select RT_USING_PIN
  22. default n
  23. if BSP_USING_I2C
  24. config BSP_USING_I2C0
  25. bool "Enable I2C0"
  26. default n
  27. config BSP_USING_I2C1
  28. bool "Enable I2C1"
  29. default n
  30. config I2C_IRQ_BASE
  31. int
  32. default 32
  33. endif
  34. config BSP_USING_ADC
  35. bool "Using ADC"
  36. select RT_USING_ADC
  37. default n
  38. menuconfig BSP_USING_PWM
  39. bool "Using PWM"
  40. select RT_USING_PWM
  41. default n
  42. if BSP_USING_PWM
  43. config BSP_USING_PWM0
  44. bool "Enable PWM 0"
  45. default n
  46. config BSP_USING_PWM1
  47. bool "Enable PWM 1"
  48. default n
  49. config BSP_USING_PWM2
  50. bool "Enable PWM 2"
  51. default n
  52. config BSP_USING_PWM3
  53. bool "Enable PWM 3"
  54. default n
  55. endif
  56. endmenu