Kconfig 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. config BSP_USING_WM_LIBRARIES
  2. bool
  3. select PKG_USING_WM_LIBRARIES
  4. default y
  5. menu "W60x Device config"
  6. choice
  7. prompt "Device type"
  8. default SOC_W600-A8xx
  9. config SOC_W600_A8xx
  10. bool "W600-A8xx"
  11. config SOC_W601_A8xx
  12. bool "W601-A8xx"
  13. endchoice
  14. endmenu
  15. menu "Hardware Drivers Config"
  16. menu "On-chip Peripheral Drivers"
  17. menuconfig BSP_USING_UART
  18. bool "Using UART"
  19. select RT_USING_SERIAL
  20. default y
  21. if BSP_USING_UART
  22. config BSP_USING_UART0
  23. bool "Enabel UART 0"
  24. default y
  25. config BSP_USING_UART1
  26. bool "Enabel UART 1"
  27. default n
  28. if BSP_USING_UART1
  29. config WM_UART1_BAUDRATE
  30. int "UART1 baudrate"
  31. default 115200
  32. config WM_UART1_RX_PIN
  33. int "UART1 RX pin number"
  34. default 31
  35. config WM_UART1_TX_PIN
  36. int "UART1 TX pin number"
  37. default 32
  38. endif
  39. config BSP_USING_UART2
  40. bool "Enabel UART 2"
  41. default n
  42. if BSP_USING_UART2
  43. config WM_UART2_BAUDRATE
  44. int "UART2 baudrate"
  45. default 115200
  46. config WM_UART2_RX_PIN
  47. int "UART2 RX pin number"
  48. default 13
  49. config WM_UART2_TX_PIN
  50. int "UART2 TX pin number"
  51. default 14
  52. endif
  53. endif
  54. config BSP_USING_PIN
  55. bool "Using PIN"
  56. select RT_USING_PIN
  57. default y
  58. config BSP_USING_WIFI
  59. bool "Using WIFI"
  60. select RT_USING_WIFI
  61. select RT_USING_LWIP
  62. default y
  63. if SOC_W601_A8xx
  64. menuconfig BSP_USING_ADC
  65. bool "Enable ADC"
  66. select RT_USING_ADC
  67. default n
  68. if BSP_USING_ADC
  69. config USING_CPU_TEMP
  70. bool "Enable CPU Temperature"
  71. config USING_ADC_CH1
  72. bool "Enable ADC Channel 1"
  73. config USING_ADC_CH2
  74. bool "Enable ADC Channel 2"
  75. config USING_ADC_CH3
  76. bool "Enable ADC Channel 3"
  77. config USING_ADC_CH4
  78. bool "Enable ADC Channel 4"
  79. config USING_ADC_CH5
  80. bool "Enable ADC Channel 5"
  81. config USING_ADC_CH6
  82. bool "Enable ADC Channel 6"
  83. config USING_ADC_CH7
  84. bool "Enable ADC Channel 7"
  85. config USING_ADC_CH8
  86. bool "Enable ADC Channel 8"
  87. endif
  88. endif
  89. menuconfig BSP_USING_HWTIMER
  90. bool "Enable HWTIMER"
  91. select RT_USING_HWTIMER
  92. default n
  93. if BSP_USING_HWTIMER
  94. config USING_HW_TIMER1
  95. bool "Enable hw timer1"
  96. config USING_HW_TIMER2
  97. bool "Enable hw timer2"
  98. config USING_HW_TIMER3
  99. bool "Enable hw timer3"
  100. config USING_HW_TIMER4
  101. bool "Enable hw timer4"
  102. config USING_HW_TIMER5
  103. bool "Enable hw timer5"
  104. endif
  105. menuconfig BSP_USING_PWM
  106. bool "Enable PWM"
  107. select RT_USING_PWM
  108. default n
  109. if BSP_USING_PWM
  110. config USING_PWM_CH1
  111. bool "Enable pwm channel 1"
  112. default n
  113. if USING_PWM_CH1
  114. config WM_PWM_CH1_PIN
  115. int "wm pwm channel 1 pin number"
  116. default 23
  117. endif
  118. config USING_PWM_CH2
  119. bool "Enable pwm channel 2"
  120. default n
  121. if USING_PWM_CH2
  122. config WM_PWM_CH2_PIN
  123. int "wm pwm channel 2 pin number"
  124. default 22
  125. endif
  126. config USING_PWM_CH3
  127. bool "Enable pwm channel 3"
  128. default n
  129. if USING_PWM_CH3
  130. config WM_PWM_CH3_PIN
  131. int "wm pwm channel 3 pin number"
  132. default 21
  133. endif
  134. config USING_PWM_CH4
  135. bool "Enable pwm channel 4"
  136. default n
  137. if USING_PWM_CH4
  138. config WM_PWM_CH4_PIN
  139. int "wm pwm channel 4 pin number"
  140. default 20
  141. endif
  142. config USING_PWM_CH5
  143. bool "Enable pwm channel 5"
  144. default n
  145. if USING_PWM_CH5
  146. config WM_PWM_CH5_PIN
  147. int "wm pwm channel 5 pin number"
  148. default 19
  149. endif
  150. endif
  151. menuconfig BSP_USING_I2C
  152. bool "Enable I2C"
  153. select RT_USING_I2C
  154. default n
  155. if BSP_USING_I2C
  156. config WM_HW_I2C_FREQ
  157. int "wm hardware I2C frequency(HZ)"
  158. default 200000
  159. config WM_I2C_DAT_PIN
  160. int "wm I2C DAT pin number"
  161. default 19
  162. config WM_I2C_SCL_PIN
  163. int "wm I2C SCL pin number"
  164. default 18
  165. endif
  166. menuconfig BSP_USING_SPI
  167. bool "Enable SPI"
  168. select RT_USING_SPI
  169. default n
  170. if BSP_USING_SPI
  171. config WM_SPI_CK_PIN
  172. int "wm SPI CK pin number"
  173. default 21
  174. config WM_SPI_DO_PIN
  175. int "wm SPI DO pin number"
  176. default 23
  177. config WM_SPI_DI_PIN
  178. int "wm SPI DI pin number"
  179. default 22
  180. endif
  181. config BSP_USING_WDT
  182. bool "Enable WDT"
  183. select RT_USING_WDT
  184. default n
  185. menuconfig BSP_USING_RTC
  186. bool "Enable RTC"
  187. select RT_USING_RTC
  188. default n
  189. if BSP_USING_RTC
  190. config BSP_USING_ALARM
  191. bool "Enable Alarm"
  192. select RT_USING_ALARM
  193. default n
  194. endif
  195. config BSP_USING_STANDBY
  196. bool "Enable standby"
  197. default n
  198. endmenu
  199. menu "Offboard Peripheral Drivers"
  200. menuconfig BSP_USING_FLASH
  201. bool "Enable Flash"
  202. select RT_USING_SFUD
  203. select BSP_USING_SPI
  204. default n
  205. if BSP_USING_FLASH
  206. config SPI_Flash_BUS_NAME
  207. string "SPI BUS Name"
  208. default "spi0"
  209. config SPI_Flash_CS_PIN
  210. int "SPI Flash CS pin number"
  211. default 20
  212. endif
  213. endmenu
  214. endmenu