Kconfig 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  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 "SOC 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. choice
  15. prompt "Board type"
  16. if SOC_W600_A8xx
  17. config W600_EV_BOARD
  18. bool "W600_EV BOARD"
  19. endif
  20. if SOC_W601_A8xx
  21. config W601_IOT_BOARD
  22. bool "W601 IoT Board"
  23. endif
  24. config W60X_CUSTOM_BOARD
  25. bool "Custom Board"
  26. endchoice
  27. endmenu
  28. menu "On-chip Peripheral Drivers"
  29. menuconfig BSP_USING_UART
  30. bool "Using UART"
  31. select RT_USING_SERIAL
  32. default y
  33. if BSP_USING_UART
  34. config BSP_USING_UART0
  35. bool "Enabel UART 0"
  36. default y
  37. if W600_EV_BOARD || W60X_CUSTOM_BOARD
  38. config BSP_USING_UART1
  39. bool "Enabel UART 1"
  40. default n
  41. if BSP_USING_UART1
  42. config WM_UART1_BAUDRATE
  43. int "UART1 baudrate"
  44. default 115200
  45. endif
  46. endif
  47. if W601_IOT_BOARD || W60X_CUSTOM_BOARD
  48. config BSP_USING_UART2
  49. bool "Enabel UART 2"
  50. default n
  51. if BSP_USING_UART2
  52. config WM_UART2_BAUDRATE
  53. int "UART2 baudrate"
  54. default 115200
  55. endif
  56. endif
  57. endif
  58. config BSP_USING_PIN
  59. bool "Using PIN"
  60. select RT_USING_PIN
  61. default y
  62. config BSP_USING_WIFI
  63. bool "Using WIFI"
  64. select RT_USING_WIFI
  65. select RT_USING_LWIP
  66. select PKG_USING_NETUTILS
  67. select PKG_NETUTILS_NTP
  68. select RT_USING_RTC
  69. select RT_USING_SOFT_RTC if !BSP_USING_RTC
  70. default y
  71. if SOC_W601_A8xx
  72. menuconfig BSP_USING_ADC
  73. bool "Enable ADC"
  74. select RT_USING_ADC
  75. default n
  76. if BSP_USING_ADC
  77. config USING_CPU_TEMP
  78. bool "Enable CPU Temperature"
  79. config USING_ADC_CH1
  80. bool "Enable ADC Channel 1"
  81. config USING_ADC_CH2
  82. bool "Enable ADC Channel 2"
  83. config USING_ADC_CH3
  84. bool "Enable ADC Channel 3"
  85. config USING_ADC_CH4
  86. bool "Enable ADC Channel 4"
  87. config USING_ADC_CH5
  88. bool "Enable ADC Channel 5"
  89. config USING_ADC_CH6
  90. bool "Enable ADC Channel 6"
  91. config USING_ADC_CH7
  92. bool "Enable ADC Channel 7"
  93. config USING_ADC_CH8
  94. bool "Enable ADC Channel 8"
  95. endif
  96. endif
  97. menuconfig BSP_USING_HWTIMER
  98. bool "Enable HWTIMER"
  99. select RT_USING_HWTIMER
  100. default n
  101. if BSP_USING_HWTIMER
  102. config USING_HW_TIMER1
  103. bool "Enable hw timer1"
  104. config USING_HW_TIMER2
  105. bool "Enable hw timer2"
  106. config USING_HW_TIMER3
  107. bool "Enable hw timer3"
  108. config USING_HW_TIMER4
  109. bool "Enable hw timer4"
  110. config USING_HW_TIMER5
  111. bool "Enable hw timer5"
  112. endif
  113. menuconfig BSP_USING_PWM
  114. bool "Enable PWM"
  115. select RT_USING_PWM
  116. default n
  117. if BSP_USING_PWM
  118. config USING_PWM_CH1
  119. bool "Enable pwm channel 1"
  120. default n
  121. if USING_PWM_CH1
  122. config WM_PWM_CH1_PIN
  123. int "wm pwm channel 1 pin number"
  124. default 23
  125. endif
  126. config USING_PWM_CH2
  127. bool "Enable pwm channel 2"
  128. default n
  129. if USING_PWM_CH2
  130. config WM_PWM_CH2_PIN
  131. int "wm pwm channel 2 pin number"
  132. default 22
  133. endif
  134. config USING_PWM_CH3
  135. bool "Enable pwm channel 3"
  136. default n
  137. if USING_PWM_CH3
  138. config WM_PWM_CH3_PIN
  139. int "wm pwm channel 3 pin number"
  140. default 21
  141. endif
  142. config USING_PWM_CH4
  143. bool "Enable pwm channel 4"
  144. default n
  145. if USING_PWM_CH4
  146. config WM_PWM_CH4_PIN
  147. int "wm pwm channel 4 pin number"
  148. default 37
  149. endif
  150. config USING_PWM_CH5
  151. bool "Enable pwm channel 5"
  152. default n
  153. if USING_PWM_CH5
  154. config WM_PWM_CH5_PIN
  155. int "wm pwm channel 5 pin number"
  156. default 19
  157. endif
  158. endif
  159. config BSP_USING_I2C
  160. bool "Enable I2C"
  161. select RT_USING_I2C
  162. default n
  163. if BSP_USING_I2C
  164. config WM_HW_I2C_FREQ
  165. int "wm hardware I2C frequency(HZ)"
  166. default 200000
  167. endif
  168. menuconfig BSP_USING_SOFT_I2C
  169. bool "Enable SOFT I2C"
  170. select RT_USING_I2C
  171. select RT_USING_I2C_BITOPS
  172. default n
  173. if BSP_USING_SOFT_I2C
  174. config BSP_USING_SOFT_I2C1
  175. bool "Enabel SOFT I2C1"
  176. default n
  177. endif
  178. if BSP_USING_SOFT_I2C
  179. config BSP_USING_SOFT_I2C2
  180. bool "Enabel SOFT I2C2"
  181. default n
  182. endif
  183. menuconfig BSP_USING_SPI
  184. bool "Enable SPI"
  185. select RT_USING_SPI
  186. default n
  187. if BSP_USING_SPI
  188. config WM_SPI_BUS_NAME
  189. string "Set SPI BUS name"
  190. default "spi0"
  191. endif
  192. config BSP_USING_WDT
  193. bool "Enable WDT"
  194. select RT_USING_WDT
  195. default n
  196. menuconfig BSP_USING_RTC
  197. bool "Enable RTC"
  198. select RT_USING_RTC
  199. default n
  200. if BSP_USING_RTC
  201. config BSP_USING_ALARM
  202. bool "Enable Alarm"
  203. select RT_USING_ALARM
  204. default n
  205. endif
  206. config BSP_USING_CRYPTO
  207. bool "Enable Hardware Crypto"
  208. select RT_USING_HWCRYPTO
  209. select RT_HWCRYPTO_USING_AES
  210. select RT_HWCRYPTO_USING_AES_ECB
  211. select RT_HWCRYPTO_USING_AES_CBC
  212. select RT_HWCRYPTO_USING_MD5
  213. select RT_HWCRYPTO_USING_SHA1
  214. select RT_HWCRYPTO_USING_RNG
  215. select RT_HWCRYPTO_USING_CRC
  216. select RT_HWCRYPTO_USING_CRC_07
  217. select RT_HWCRYPTO_USING_CRC_8005
  218. select RT_HWCRYPTO_USING_CRC_1021
  219. select RT_HWCRYPTO_USING_CRC_04C11DB7
  220. select RT_HWCRYPTO_USING_BIGNUM
  221. select RT_HWCRYPTO_USING_BIGNUM_EXPTMOD
  222. default n
  223. config BSP_USING_STANDBY
  224. bool "Enable standby"
  225. default n
  226. endmenu
  227. menu "External Libraries"
  228. config WM_USING_ONESHOT
  229. bool "Using winner micro Oneshot"
  230. select RT_USING_WIFI
  231. default y
  232. if WM_USING_ONESHOT
  233. config WM_USING_ONESHOT_DEMO
  234. bool "Using Oneshot Demo"
  235. default y
  236. endif
  237. endmenu