Kconfig 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. menu "Hardware Drivers Config"
  2. config SOC_STM32F103RC
  3. bool
  4. select SOC_SERIES_STM32F1
  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_UART1
  21. bool "Enable UART1"
  22. default y
  23. config BSP_UART1_RX_USING_DMA
  24. bool "Enable UART1 RX DMA"
  25. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  26. default n
  27. endif
  28. menuconfig BSP_USING_SPI
  29. bool "Enable SPI BUS"
  30. default n
  31. select RT_USING_SPI
  32. if BSP_USING_SPI
  33. config BSP_USING_SPI1
  34. bool "Enable SPI1 BUS"
  35. default n
  36. config BSP_SPI1_TX_USING_DMA
  37. bool "Enable SPI1 TX DMA"
  38. depends on BSP_USING_SPI1
  39. default n
  40. config BSP_SPI1_RX_USING_DMA
  41. bool "Enable SPI1 RX DMA"
  42. depends on BSP_USING_SPI1
  43. select BSP_SPI1_TX_USING_DMA
  44. default n
  45. endif
  46. menuconfig BSP_USING_I2C1
  47. bool "Enable I2C1 BUS (software simulation)"
  48. default n
  49. select RT_USING_I2C
  50. select RT_USING_I2C_BITOPS
  51. select RT_USING_PIN
  52. if BSP_USING_I2C1
  53. config BSP_I2C1_SCL_PIN
  54. int "i2c1 scl pin number"
  55. range 1 216
  56. default 15
  57. config BSP_I2C1_SDA_PIN
  58. int "I2C1 sda pin number"
  59. range 1 216
  60. default 16
  61. endif
  62. menuconfig BSP_USING_PWM
  63. bool "Enable PWM"
  64. default n
  65. select RT_USING_PWM
  66. if BSP_USING_PWM
  67. menuconfig BSP_USING_PWM2
  68. bool "Enable timer2 output pwm"
  69. default n
  70. if BSP_USING_PWM2
  71. config BSP_USING_PWM2_CH1
  72. bool "Enable PWM2 channel 1"
  73. default n
  74. config BSP_USING_PWM2_CH2
  75. bool "Enable PWM2 channel 2"
  76. default n
  77. config BSP_USING_PWM2_CH3
  78. bool "Enable PWM2 channel 3"
  79. default n
  80. endif
  81. endif
  82. config BSP_USING_SDIO
  83. bool "Enable SDCARD (sdio)"
  84. select RT_USING_SDIO
  85. select RT_USING_DFS
  86. select RT_USING_DFS_ELMFAT
  87. default n
  88. source "../libraries/HAL_Drivers/Kconfig"
  89. endmenu
  90. menu "Board extended module Drivers"
  91. endmenu
  92. endmenu