Kconfig 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. menu "Hardware Drivers Config"
  2. menu "On-chip Peripheral Drivers"
  3. config BSP_USING_GPIO
  4. bool "Enable GPIO"
  5. select RT_USING_PIN
  6. default y
  7. config BSP_USING_WDT
  8. bool "Enable Watch Dog"
  9. select RT_USING_WDT
  10. default n
  11. menu "UART Drivers"
  12. config BSP_USING_UART0
  13. bool "Enable UART0 PA2/3(R/T)"
  14. select RT_USING_SERIAL
  15. default y
  16. config BSP_USING_UART1
  17. bool "Enable UART1 PC2/3(R/T)"
  18. select RT_USING_SERIAL
  19. default n
  20. config BSP_USING_UART2
  21. bool "Enable UART2 PC4/5(R/T)"
  22. select RT_USING_SERIAL
  23. default n
  24. config BSP_USING_UART3
  25. bool "Enable UART3 PC6/7(R/T)"
  26. select RT_USING_SERIAL
  27. default n
  28. endmenu
  29. menu "SPI Drivers"
  30. config BSP_USING_SPI0
  31. bool "Enable SPI0 BUS PC4/5/6(C/O/I)"
  32. select RT_USING_SPI
  33. select RT_USING_PIN
  34. default n
  35. config BSP_USING_SPI1
  36. bool "Enable SPI1 BUS PM5/C2/C3(C/O/I)"
  37. select RT_USING_SPI
  38. select RT_USING_PIN
  39. default n
  40. endmenu
  41. menu "I2C Drivers"
  42. config BSP_USING_I2C
  43. bool "Enable I2C BUS"
  44. select RT_USING_I2C
  45. select RT_USING_PIN
  46. select RT_USING_I2C_BITOPS
  47. default n
  48. if BSP_USING_I2C
  49. config BSP_I2C_SCL
  50. int "I2C SCL Pin index"
  51. default 98
  52. config BSP_I2C_SDA
  53. int "I2C SDA Pin index"
  54. default 99
  55. config BSP_I2C_BUS_NAME
  56. string "i2c bus name"
  57. default "i2c0"
  58. endif
  59. endmenu
  60. menu "PWM Drivers"
  61. config BSP_USING_PWM0
  62. bool "Using PWM0 PA4/10(A/B)"
  63. select RT_USING_PWM
  64. default n
  65. config BSP_USING_PWM1
  66. bool "Using PWM1 PA5/9(A/B)"
  67. select RT_USING_PWM
  68. default n
  69. config BSP_USING_PWM2
  70. bool "Using PWM2 PP0/2(A/B)"
  71. select RT_USING_PWM
  72. default n
  73. config BSP_USING_PWM3
  74. bool "Using PWM3 PP1/3(A/B)"
  75. select RT_USING_PWM
  76. default n
  77. endmenu
  78. menu "RTC Drivers"
  79. config BSP_USING_RTC
  80. bool "Using RTC"
  81. select RT_USING_RTC
  82. default n
  83. endmenu
  84. menu "HWtimer Drivers"
  85. config BSP_USING_HWTIMER0
  86. bool "Using timer0"
  87. select RT_USING_HWTIMER
  88. default n
  89. config BSP_USING_HWTIMER1
  90. bool "Using timer1"
  91. select RT_USING_HWTIMER
  92. default n
  93. config BSP_USING_HWTIMER2
  94. bool "Using timer2"
  95. select RT_USING_HWTIMER
  96. default n
  97. config BSP_USING_HWTIMER3
  98. bool "Using timer3"
  99. select RT_USING_HWTIMER
  100. default n
  101. config BSP_USING_HWTIMER4
  102. bool "Using timer4"
  103. select RT_USING_HWTIMER
  104. default n
  105. config BSP_USING_HWTIMER5
  106. bool "Using timer5"
  107. select RT_USING_HWTIMER
  108. default n
  109. endmenu
  110. endmenu
  111. menu "Onboard Peripheral Drivers"
  112. menuconfig BSP_USING_EXT_SRAM
  113. bool "Enable external sram"
  114. select RT_USING_MEMHEAP
  115. select RT_USING_MEMHEAP_AS_HEAP
  116. default n
  117. if BSP_USING_EXT_SRAM
  118. config BSP_EXT_SRAM_SIZE
  119. hex "external sram size"
  120. default 0x100000
  121. endif
  122. menuconfig BSP_USING_NOR_FLASH
  123. bool "Enable mtd nor flash"
  124. select RT_USING_MTD_NOR
  125. select PKG_USING_FTL_SRC
  126. default n
  127. if BSP_USING_NOR_FLASH
  128. config BSP_NOR_FLASH_SIZE
  129. hex "mtd nor flash size"
  130. default 0x1000000
  131. config BSP_NOR_FLASH_SECTOR_SIZE
  132. hex "mtd nor flsah sector"
  133. default 0x10000
  134. endif
  135. endmenu
  136. menu "Offboard Peripheral Drivers"
  137. endmenu
  138. endmenu