Kconfig 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. menu "Hardware Drivers Config"
  2. config SOC_AIR32F103
  3. bool
  4. select ARCH_ARM_CORTEX_M3
  5. select RT_USING_COMPONENTS_INIT
  6. select RT_USING_USER_MAIN
  7. default y
  8. menu "Onboard Peripheral Drivers"
  9. config BSP_USING_SHELL_TO_USART
  10. bool "Enable SHELL TO USART (uart1)"
  11. select BSP_USING_UART
  12. select BSP_USING_UART1
  13. default y
  14. config BSP_USING_SPI_FLASH
  15. bool "Enable SPI FLASH (W25Q64 spi1)"
  16. select BSP_USING_SPI
  17. select BSP_USING_SPI
  18. select RT_USING_SFUD
  19. select RT_SFUD_USING_SFDP
  20. default n
  21. endmenu
  22. menu "On-chip Peripheral Drivers"
  23. config BSP_USING_GPIO
  24. bool "Enable GPIO"
  25. select RT_USING_PIN
  26. default y
  27. menuconfig BSP_USING_UART
  28. bool "Enable UART"
  29. default y
  30. select RT_USING_SERIAL
  31. if BSP_USING_UART
  32. menuconfig BSP_USING_UART1
  33. bool "Enable UART1"
  34. default n
  35. menuconfig BSP_USING_UART2
  36. bool "Enable UART2"
  37. default n
  38. menuconfig BSP_USING_UART3
  39. bool "Enable UART3"
  40. default n
  41. endif
  42. menuconfig BSP_USING_SOFTI2C
  43. bool "Enable SOFT I2C"
  44. select RT_USING_I2C
  45. select RT_USING_I2C_BITOPS
  46. select RT_USING_PIN
  47. default n
  48. if BSP_USING_SOFTI2C
  49. menuconfig BSP_USING_I2C1
  50. bool "Enable I2C1 BUS (software simulation)"
  51. default n
  52. if BSP_USING_I2C1
  53. config BSP_I2C1_SCL_PIN
  54. int "i2c1 scl pin number"
  55. range 0 63
  56. default 24
  57. config BSP_I2C1_SDA_PIN
  58. int "I2C1 sda pin number"
  59. range 0 63
  60. default 25
  61. endif
  62. endif
  63. menuconfig BSP_USING_SPI
  64. bool "Enable SPI BUS"
  65. default n
  66. select RT_USING_SPI
  67. if BSP_USING_SPI
  68. config BSP_USING_SPI1
  69. bool "Enable SPI1 BUS"
  70. default n
  71. config BSP_USING_SPI2
  72. bool "Enable SPI2 BUS"
  73. default n
  74. config BSP_USING_SPI3
  75. bool "Enable SPI3 BUS"
  76. default n
  77. endif
  78. menuconfig BSP_USING_ADC
  79. bool "Enable ADC"
  80. default n
  81. select RT_USING_ADC
  82. if BSP_USING_ADC
  83. config BSP_USING_ADC1
  84. bool "Enable ADC1"
  85. default n
  86. config BSP_USING_ADC2
  87. bool "Enable ADC2"
  88. default n
  89. endif
  90. menuconfig BSP_USING_TIM
  91. bool "Enable timer"
  92. default n
  93. select RT_USING_HWTIMER
  94. if BSP_USING_TIM
  95. config BSP_USING_TIM2
  96. bool "Enable TIM2"
  97. default n
  98. config BSP_USING_TIM3
  99. bool "Enable TIM3"
  100. default n
  101. config BSP_USING_TIM4
  102. bool "Enable TIM4"
  103. default n
  104. endif
  105. config BSP_USING_ON_CHIP_FLASH
  106. bool "Enable on-chip FLASH"
  107. default n
  108. config BSP_USING_WDT
  109. bool "Enable Watchdog Timer"
  110. select RT_USING_WDT
  111. default n
  112. endmenu
  113. endmenu