Kconfig 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. menu "Hardware Drivers Config"
  2. menu "Onboard Peripheral Drivers"
  3. config BSP_USING_SPI_FLASH
  4. bool "Enable SPI FLASH (W25Q64 spi2)"
  5. select BSP_USING_SPI
  6. select BSP_USING_SPI2
  7. select RT_USING_SFUD
  8. select RT_SFUD_USING_SFDP
  9. default n
  10. config BSP_USING_EEPROM
  11. bool "Enable I2C EEPROM (i2c1)"
  12. select BSP_USING_I2C
  13. select BSP_USING_I2C1
  14. default n
  15. config BSP_USING_RGB
  16. bool "Enable RGB LED (timer10/11/13 channel2)"
  17. select RT_USING_PWM
  18. select BSP_USING_PWM
  19. select BSP_USING_PWM10
  20. select BSP_USING_PWM10_CH1
  21. select BSP_USING_PWM11
  22. select BSP_USING_PWM11_CH1
  23. select BSP_USING_PWM13
  24. select BSP_USING_PWM13_CH1
  25. default n
  26. endmenu
  27. menu "On-chip Peripheral Drivers"
  28. config BSP_USING_GPIO
  29. bool "Enable GPIO"
  30. select RT_USING_PIN
  31. default y
  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_UART1
  38. bool "Enable UART1"
  39. default y
  40. endif
  41. menuconfig BSP_USING_SPI
  42. bool "Enable SPI BUS"
  43. default n
  44. select RT_USING_SPI
  45. if BSP_USING_SPI
  46. config BSP_USING_SPI2
  47. bool "Enable SPI2 BUS"
  48. default n
  49. endif
  50. menuconfig BSP_USING_I2C
  51. bool "Enable I2C BUS"
  52. default n
  53. select RT_USING_I2C
  54. if BSP_USING_I2C
  55. config BSP_USING_I2C1
  56. bool "Enable I2C1 BUS"
  57. default n
  58. config BSP_USING_I2C2
  59. bool "Enable I2C2 BUS"
  60. default n
  61. endif
  62. menuconfig BSP_USING_TIM
  63. bool "Enable timer"
  64. default n
  65. select RT_USING_HWTIMER
  66. if BSP_USING_TIM
  67. config BSP_USING_TIM6
  68. bool "Enable TIM6"
  69. default n
  70. endif
  71. menuconfig BSP_USING_PWM
  72. bool "Enable PWM"
  73. default n
  74. select RT_USING_PWM
  75. if BSP_USING_PWM
  76. menuconfig BSP_USING_PWM10
  77. bool "Enable timer10 output PWM"
  78. default n
  79. if BSP_USING_PWM10
  80. config BSP_USING_PWM10_CH1
  81. bool "Enable PWM10 channel1"
  82. default n
  83. endif
  84. menuconfig BSP_USING_PWM11
  85. bool "Enable timer11 output PWM"
  86. default n
  87. if BSP_USING_PWM11
  88. config BSP_USING_PWM11_CH1
  89. bool "Enable PWM11 channel1"
  90. default n
  91. endif
  92. menuconfig BSP_USING_PWM13
  93. bool "Enable timer13 output PWM"
  94. default n
  95. if BSP_USING_PWM13
  96. config BSP_USING_PWM13_CH1
  97. bool "Enable PWM13 channel1"
  98. default n
  99. endif
  100. endif
  101. source "$BSP_DIR/../libraries/HAL_Drivers/drivers/Kconfig"
  102. endmenu
  103. menu "Board extended module Drivers"
  104. endmenu
  105. endmenu