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