Kconfig 2.7 KB

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