]> begriffs open source - cmsis-driver-validation/blob - Source/Config/DV_Config.h
Updated examples using Espressif ESP8266, ESP32 and WIZnet WizFi360-EVB:
[cmsis-driver-validation] / Source / Config / DV_Config.h
1 /*-----------------------------------------------------------------------------
2  *      Name:         DV_Config.h
3  *      Purpose:      DV Config header
4  *      Version:      1.2.3
5  *----------------------------------------------------------------------------
6  *      Copyright(c) KEIL - An ARM Company
7  *----------------------------------------------------------------------------*/
8 #ifndef __DV_CONFIG_H
9 #define __DV_CONFIG_H
10
11 #include <stdint.h>
12 #include "RTE_Components.h"
13
14 //-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
15
16 // <h> Common Test Settings
17 // <o> Print Output Format <0=> Plain Text <1=> XML
18 // <i> Set the test results output format to plain text or XML
19 #ifndef PRINT_XML_REPORT
20 #define PRINT_XML_REPORT                0
21 #endif
22 // <h> Buffer sizes
23 // <i> Enable/disable buffer sizes (bytes)
24 // <q> 1 - 32
25 #define BUFFER_ELEM_1_32                0
26 // <q> 512
27 #define BUFFER_ELEM_512                 1
28 // <q> 1024
29 #define BUFFER_ELEM_1024                0
30 // <q> 4096
31 #define BUFFER_ELEM_4096                0
32 // <q> 32768
33 #define BUFFER_ELEM_32768               0
34 // </h>
35 // <o> Buffer size for baudrate test
36 // <i> Set the buffer sizes (bytes)
37 #define BUFFER_SIZE_BR                  512
38 // <o> Buffer pattern <0=> 0x55, 0xAA <1=> 0x12, 0x34, 0x56, 0x78
39 // <i> Set the buffer pattern
40 #define BUFFER_PATTERN_INDEX            0
41 #if    (BUFFER_PATTERN_INDEX == 0)
42 #define BUFFER_PATTERN {0x55, 0xAA}
43 #endif
44 // </h>
45
46 // <h> SPI
47 // <o> Driver_SPI# <0-255>
48 // <i> Choose the Driver_SPI# instance to be tested
49 #define DRV_SPI                         0
50 // <h> SPI bus speed
51 // <i> Set the SPI bus speed (kHz)
52 // <i> Value zero is ignored
53 // <o> SPI bus speed 1
54 #define SPI_BR_1                        400
55 // <o> SPI bus speed 2
56 #define SPI_BR_2                        1000
57 // <o> SPI bus speed 3
58 #define SPI_BR_3                        4000
59 // <o> SPI bus speed 4
60 #define SPI_BR_4                        10000
61 // <o> SPI bus speed 5
62 #define SPI_BR_5                        25000
63 // <o> SPI bus speed 6
64 #define SPI_BR_6                        50000
65 // </h>
66 // <o> Percentual trigger for bus speed test
67 // <i> Set the minimum margin between measured and expected bus speeds (%)
68 #define MIN_BUS_SPEED                   5
69 // <o> SPI data bits
70 // <i> Set the SPI data bits
71 #define SPI_DATA_BITS                   8
72 // <o> Transfer timeout
73 // <i> Set the transfer timeout (us)
74 #define SPI_TRANSFER_TIMEOUT            1000000
75 // <h> Test Cases
76 // <i> Enable/disable test cases
77 // <q> SPI_GetCapabilities
78 #define SPI_GETCAPABILITIES_EN          1
79 // <q> SPI_Initialization
80 #define SPI_INITIALIZATION_EN           1
81 // <q> SPI_PowerControl
82 #define SPI_POWERCONTROL_EN             1
83 // <q> SPI_Config_PolarityPhase
84 #define SPI_CONFIG_POLARITYPHASE_EN     1
85 // <q> SPI_Config_DataBits
86 #define SPI_CONFIG_DATABITS_EN          1
87 // <q> SPI_Config_BitOrder
88 #define SPI_CONFIG_BITORDER_EN          1
89 // <q> SPI_Config_SSMode
90 #define SPI_CONFIG_SSMODE_EN            1
91 // <q> SPI_Config_BusSpeed
92 #define SPI_CONFIG_BUSSPEED_EN          1
93 // <q> SPI_Config_CommonParams
94 #define SPI_CONFIG_COMMONPARAMS_EN      1
95 // <q> SPI_Send
96 #define SPI_SEND_EN                     1
97 // <q> SPI_Receive
98 #define SPI_RECEIVE_EN                  1
99 // <q> SPI_Loopback_CheckBusSpeed
100 #define SPI_LOOPBACK_CHECKBUSSPEED_EN   1
101 // <q> SPI_Loopback_Transfer
102 #define SPI_LOOPBACK_TRANSFER_EN        1
103 // <q> SPI_CheckInvalidInit
104 #define SPI_CHECKINVALIDINIT_EN         1
105 // </h>
106 // </h>
107
108 // <h> USART
109 // <o> Driver_USART# <0-255>
110 // <i> Choose the Driver_USART# instance to be tested
111 #define DRV_USART                       0
112 // <h> USART baudrates
113 // <i> Set the USART baudrates (bps)
114 // <i> Value zero is ignored
115 // <o> USART baudrate 1
116 #define USART_BR_1                      9600
117 // <o> USART baudrate 2
118 #define USART_BR_2                      19200
119 // <o> USART baudrate 3
120 #define USART_BR_3                      38400
121 // <o> USART baudrate 4
122 #define USART_BR_4                      57600
123 // <o> USART baudrate 5
124 #define USART_BR_5                      115200
125 // <o> USART baudrate 6
126 #define USART_BR_6                      921600
127 // </h>
128 // <o> Percentual tolerance for baudrate test
129 // <i> Set the tolerance between measured and expected baudrates (%)
130 #define TOLERANCE_BR                    5
131 // <o> USART data bits
132 // <i> Set the USART data bits
133 #define USART_DATA_BITS                 8
134 // <o> Transfer timeout
135 // <i> Set the transfer timeout (us)
136 #define USART_TRANSFER_TIMEOUT          1000000
137 // <h> Test Cases
138 // <i> Enable/disable test cases
139 // <q> USART_GetCapabilities
140 #define USART_GETCAPABILITIES_EN        1
141 // <q> USART_Initialization
142 #define USART_INITIALIZATION_EN         1
143 // <q> USART_PowerControl
144 #define USART_POWERCONTROL_EN           1
145 // <q> USART_Config_PolarityPhase
146 #define USART_CONFIG_POLARITYPHASE_EN   1
147 // <q> USART_Config_DataBits
148 #define USART_CONFIG_DATABITS_EN        1
149 // <q> USART_Config_StopBits
150 #define USART_CONFIG_STOPBITS_EN        1
151 // <q> USART_Config_Parity
152 #define USART_CONFIG_PARITY_EN          1
153 // <q> USART_Config_Baudrate
154 #define USART_CONFIG_BAUDRATE_EN        1
155 // <q> USART_Config_CommonParams
156 #define USART_CONFIG_COMMONPARAMS_EN    1
157 // <q> USART_Send
158 #define USART_SEND_EN                   1
159 // <q> USART_AsynchronousReceive
160 #define USART_ASYNCHRONOUSRECEIVE_EN    1
161 // <q> USART_Loopback_CheckBaudrate
162 #define USART_LOOPBACK_CHECKBAUDRATE_EN 1
163 // <q> USART_Loopback_Transfer
164 #define USART_LOOPBACK_TRANSFER_EN      1
165 // <q> USART_CheckInvalidInit
166 #define USART_CHECKINVALIDINIT_EN       1
167 // </h>
168 // </h>
169
170 // <h> Ethernet
171 // <o> Driver_ETH_MAC# <0-255>
172 // <i> Choose the Driver_ETH_MAC# instance to be tested
173 #define DRV_ETH                         0
174 // <o> Link timeout
175 // <i> Set the Ethernet link timeout (us)
176 #define ETH_LINK_TIMEOUT                3000000
177 // <o> Transfer timeout
178 // <i> Set the transfer timeout (us)
179 #define ETH_TRANSFER_TIMEOUT 1000000
180 // <o> Time duration for PTP Control Time
181 // <i> Set time duration for Control Time tests (ms)
182 #define ETH_PTP_TIME_REF                1000
183 // <o> Tolerance for PTP Control Time
184 // <i> Set tolerance for Control Time tests (ns)
185 #define ETH_PTP_TOLERANCE               0
186 // <h> Test Cases
187 // <i> Enable/disable test cases
188 // <q> ETH_MAC_GetCapabilities
189 #define ETH_MAC_GETCAPABILITIES_EN      1
190 // <q> ETH_MAC_Initialization
191 #define ETH_MAC_INITIALIZATION_EN       1
192 // <q> ETH_MAC_PowerControl
193 #define ETH_MAC_POWERCONTROL_EN         1
194 // <q> ETH_MAC_SetBusSpeed
195 #define ETH_MAC_SETBUSSPEED_EN          1
196 // <q> ETH_MAC_Config_Mode
197 #define ETH_MAC_CONFIG_MODE_EN          1
198 // <q> ETH_MAC_Config_CommonParams
199 #define ETH_MAC_CONFIG_COMMONPARAMS_EN  1
200 // <q> ETH_MAC_PTP_ControlTimer
201 #define ETH_MAC_PTP_CONTROLTIMER_EN     1
202 // <q> ETH_PHY_Initialization
203 #define ETH_PHY_INITIALIZATION_EN       1
204 // <q> ETH_PHY_PowerControl
205 #define ETH_PHY_POWERCONTROL_EN         1
206 // <q> ETH_PHY_Config
207 #define ETH_PHY_CONFIG_EN               1
208 // <q> ETH_Loopback_Transfer
209 #define ETH_LOOPBACK_TRANSFER_EN        1
210 // <q> ETH_Loopback_PTP
211 #define ETH_LOOPBACK_PTP_EN             1
212 // <q> ETH_PHY_CheckInvalidInit
213 #define ETH_PHY_CHECKINVALIDINIT_EN     1
214 // <q> ETH_MAC_CheckInvalidInit
215 #define ETH_MAC_CHECKINVALIDINIT_EN     1
216 // </h>
217 // </h>
218
219 // <h> I2C
220 // <o> Driver_I2C# <0-255>
221 // <i> Choose the Driver_I2C# instance to be tested
222 #define DRV_I2C                         1
223 // <h> Test Cases
224 // <i> Enable/disable test cases
225 // <q> I2C_GetCapabilities
226 #define I2C_GETCAPABILITIES_EN          1
227 // <q> I2C_Initialization
228 #define I2C_INITIALIZATION_EN           1
229 // <q> I2C_PowerControl
230 #define I2C_POWERCONTROL_EN             1
231 // <q> I2C_SetBusSpeed
232 #define I2C_SETBUSSPEED_EN              1
233 // <q> I2C_SetOwnAddress
234 #define I2C_SETOWNADDRESS_EN            1
235 // <q> I2C_BusClear
236 #define I2C_BUSCLEAR_EN                 1
237 // <q> I2C_AbortTransfer
238 #define I2C_ABORTTRANSFER_EN            1
239 // <q> I2C_CheckInvalidInit
240 #define I2C_CHECKINVALIDINIT_EN         1
241 // </h>
242 // </h>
243
244 // <h> MCI
245 // <o> Driver_MCI# <0-255>
246 // <i> Choose the Driver_MCI# instance to be tested
247 #define DRV_MCI                         0
248 // <h> Test Cases
249 // <i> Enable/disable test cases
250 // <q> MCI_GetCapabilities
251 #define MCI_GETCAPABILITIES_EN          1
252 // <q> MCI_Initialization
253 #define MCI_INITIALIZATION_EN           1
254 // <q> MCI_PowerControl
255 #define MCI_POWERCONTROL_EN             1
256 // <q> MCI_SetBusSpeedMode
257 #define MCI_SETBUSSPEEDMODE_EN          1
258 // <q> MCI_Config_DataWidth
259 #define MCI_CONFIG_DATAWIDTH_EN         1
260 // <q> MCI_Config_CmdLineMode
261 #define MCI_CONFIG_CMDLINEMODE_EN       1
262 // <q> MCI_Config_DriverStrength
263 #define MCI_CONFIG_DRIVERSTRENGTH_EN    1
264 // <q> MCI_CheckInvalidInit
265 #define MCI_CHECKINVALIDINIT_EN         1
266 // </h>
267 // </h>
268
269 // <h> USB Device
270 // <o> Driver_USBD# <0-255>
271 // <i> Choose the Driver_USBD# instance to be tested
272 #define DRV_USBD                        0
273 // <h> Test Cases
274 // <i> Enable/disable test cases
275 // <q> USBD_GetCapabilities
276 #define USBD_GETCAPABILITIES_EN         1
277 // <q> USBD_Initialization
278 #define USBD_INITIALIZATION_EN          1
279 // <q> USBD_PowerControl
280 #define USBD_POWERCONTROL_EN            1
281 // <q> USBD_CheckInvalidInit
282 #define USBD_CHECKINVALIDINIT_EN        1
283 // </h>
284 // </h>
285
286 // <h> USB Host
287 // <o> Driver_USBH# <0-255>
288 // <i> Choose the Driver_USBH# instance to be tested
289 #define DRV_USBH                        0
290 // <h> Test Cases
291 // <i> Enable/disable test cases
292 // <q> USBH_GetCapabilities
293 #define USBH_GETCAPABILITIES_EN         1
294 // <q> USBH_Initialization
295 #define USBH_INITIALIZATION_EN          1
296 // <q> USBH_PowerControl
297 #define USBH_POWERCONTROL_EN            1
298 // <q> USBH_CheckInvalidInit
299 #define USBH_CHECKINVALIDINIT_EN        1
300 // </h>
301 // </h>
302
303 // <h> CAN
304 // <o> Driver_CAN# <0-255>
305 // <i> Choose the Driver_USBD# instance to be tested
306 #define DRV_CAN                         0
307 // <h> CAN bitrates
308 // <i> Set the CAN bitrates (kbit/s)
309 // <i> Value zero is ignored
310 // <o> CAN bitrate 1
311 #define CAN_BR_1                        125
312 // <o> CAN bitrate 2
313 #define CAN_BR_2                        250
314 // <o> CAN bitrate 3
315 #define CAN_BR_3                        500
316 // <o> CAN bitrate 4
317 #define CAN_BR_4                        1000
318 // <o> CAN bitrate 5
319 #define CAN_BR_5                        0
320 // <o> CAN bitrate 6
321 #define CAN_BR_6                        0
322 // </h>
323 // <o> Ratio data/arbitration bitrate
324 // <i> Set the ratio between data and arbitration bitrate for CAN FD
325 #define CAN_DATA_ARB_RATIO              8
326 // <o> Percentual trigger for bitrate test
327 // <i> Set the minimum margin between measured and expected birates (%)
328 #define MIN_BITRATE                     10
329 // <o> Transfer timeout
330 // <i> Set the transfer timeout (us)
331 #define CAN_TRANSFER_TIMEOUT            1000000
332 // <h> Test Cases
333 // <i> Enable/disable test cases
334 // <q> CAN_GetCapabilities
335 #define CAN_GETCAPABILITIES_EN          1
336 // <q> CAN_Initialization
337 #define CAN_INITIALIZATION_EN           1
338 // <q> CAN_PowerControl
339 #define CAN_POWERCONTROL_EN             1
340 // <q> CAN_Loopback_CheckBitrate
341 #define CAN_LOOPBACK_CHECK_BR_EN        1
342 // <q> CAN_Loopback_CheckBitrateFD
343 #define CAN_LOOPBACK_CHECK_BR_FD_EN     1
344 // <q> CAN_Loopback_Transfer
345 #define CAN_LOOPBACK_TRANSFER_EN        1
346 // <q> CAN_Loopback_TransferFD
347 #define CAN_LOOPBACK_TRANSFER_FD_EN     1
348 // <q> CAN_CheckInvalidInit
349 #define CAN_CHECKINVALIDINIT_EN         1
350 // </h>
351 // </h>
352
353 // <h> WiFi
354 // <o> Driver_WiFi# <0-255>
355 // <i> Choose the Driver_WiFi# instance to be tested
356 #define DRV_WIFI                        0
357 // <h> Configuration
358 // <i> Configuration of valid settings for driver functionality testing
359 // <h> Station
360 // <i> Settings relevant for Station
361 // <s.32> SSID
362 // <i> SSID of network that Station will connect to
363 #define WIFI_STA_SSID                   "SSID"
364 // <s.32> Password
365 // <i> Password of network that Station will connect to
366 #define WIFI_STA_PASS                   "Password"
367 // <o> Security Type
368 // <0=> Open <1=> WEP <2=> WPA <3=> WPA2
369 // <i> Security type of network that Station will connect to
370 #define WIFI_STA_SECURITY               3
371 // <o> Channel
372 // <i> WiFi channel of network that Station will connect to
373 // <i> Value 0 means Autodetect
374 #define WIFI_STA_CH                     0
375 // <s.8> WPS PIN
376 // <i> WiFi Protected Setup Personal Identification Number
377 #define WIFI_STA_WPS_PIN                "12345678"
378 // </h>
379 // <h> Access Point
380 // <i> Settings relevant for Access Point
381 // <s.32> SSID
382 // <i> SSID of created network
383 #define WIFI_AP_SSID                    "CMSIS_DV"
384 // <s.32> Password
385 // <i> Password of created network
386 #define WIFI_AP_PASS                    "Password"
387 // <o> Security Type
388 // <0=> Open <1=> WEP <2=> WPA <3=> WPA2
389 // <i> Security type of created network
390 #define WIFI_AP_SECURITY                3
391 // <o> Channel
392 // <i> WiFi channel of created network
393 // <i> Value 0 means Autoselect
394 #define WIFI_AP_CH                      0
395 // <s.8> WPS PIN
396 // <i> WiFi Protected Setup Personal Identification Number
397 #define WIFI_AP_WPS_PIN                 "12345678"
398 // </h>
399 // <h> Socket
400 // <i> Settings relevant for Socket testing
401 // <s.15>SockServer IP
402 // <i>Static IPv4 Address of SockServer
403 #define WIFI_SOCKET_SERVER_IP           "192.168.1.10"
404 // <o> Number of sockets
405 // <i> Number of sockets that driver supports
406 // <i> Default: 4
407 #define WIFI_SOCKET_MAX_NUM             4
408 // </h>
409 // </h>
410 // <h> Test Cases
411 // <i> Enable/disable test cases
412 // <e> Control
413 // <i> Control functions tests
414 #define WIFI_CONTROL_EN                 1
415 // <q> WIFI_GetVersion
416 #define WIFI_GETVERSION_EN              1
417 // <q> WIFI_GetCapabilities
418 #define WIFI_GETCAPABILITIES_EN         1
419 // <q> WIFI_Initialization/Uninitilization
420 #define WIFI_INIT_UNINIT_EN             1
421 // <q> WIFI_PowerControl
422 #define WIFI_POWERCONTROL_EN            1
423 // <q> WIFI_GetModuleInfo
424 #define WIFI_GETMODULEINFO_EN           1
425 // </e>
426 // <e> Management
427 // <i> Management functions tests
428 #define WIFI_MANAGEMENT_EN              1
429 // <e> WIFI_SetOption/GetOption
430 #define WIFI_SETGETOPTION_EN            1
431 // <o0> ARM_WIFI_BSSID <0=>Disabled <1=>Set <2=>Get <3=>Set/Get
432 // <i> Default test value is set in defines WIFI_BSSID_STA/WIFI_BSSID_AP (1E-30-6C-A2-45-5E)
433 #define WIFI_SETGETOPTION_BSSID_EN      3
434 // <o0> ARM_WIFI_TX_POWER <0=>Disabled <1=>Set <2=>Get <3=>Set/Get
435 // <i> Default test value is set in defines WIFI_TX_POWER_STA/WIFI_TX_POWER_AP (16)
436 #define WIFI_SETGETOPTION_TX_POWER_EN   3
437 // <o0> ARM_WIFI_LP_TIMER <0=>Disabled <1=>Set <2=>Get <3=>Set/Get
438 // <i> Default test value is set in defines WIFI_LP_TIMER_STA (10)
439 #define WIFI_SETGETOPTION_LP_TIMER_EN   3
440 // <o0> ARM_WIFI_DTIM <0=>Disabled <1=>Set <2=>Get <3=>Set/Get
441 // <i> Default test value is set in defines WIFI_DTIM_STA/WIFI_DTIM_AP (3)
442 #define WIFI_SETGETOPTION_DTIM_EN       3
443 // <o0> ARM_WIFI_BEACON <0=>Disabled <1=>Set <2=>Get <3=>Set/Get
444 // <i> Default test value is set in defines WIFI_BEACON_AP (2000)
445 #define WIFI_SETGETOPTION_BEACON_EN     3
446 // <o0> ARM_WIFI_MAC <0=>Disabled <1=>Set <2=>Get <3=>Set/Get
447 // <i> Default test value is set in defines WIFI_MAC_STA/WIFI_MAC_AP (1E-30-6C-A2-45-5E)
448 #define WIFI_SETGETOPTION_MAC_EN        3
449 // <o0> ARM_WIFI_IP <0=>Disabled <1=>Set <2=>Get <3=>Set/Get
450 // <i> Default test value is set in defines WIFI_IP_STA/WIFI_IP_AP (192.168.0.100)
451 #define WIFI_SETGETOPTION_IP_EN         3
452 // <o0> ARM_WIFI_IP_SUBNET_MASK <0=>Disabled <1=>Set <2=>Get <3=>Set/Get
453 // <i> Default test value is set in defines WIFI_IP_SUBNET_MASK_STA/WIFI_IP_SUBNET_MASK_AP (255.255.255.0)
454 #define WIFI_SETGETOPTION_IP_SUBNET_MASK_EN 3
455 // <o0> ARM_WIFI_IP_GATEWAY <0=>Disabled <1=>Set <2=>Get <3=>Set/Get
456 // <i> Default test value is set in defines WIFI_IP_GATEWAY_STA/WIFI_IP_GATEWAY_AP (192.168.0.254)
457 #define WIFI_SETGETOPTION_IP_GATEWAY_EN 3
458 // <o0> ARM_WIFI_IP_DNS1 <0=>Disabled <1=>Set <2=>Get <3=>Set/Get
459 // <i> Default test value is set in defines WIFI_IP_DNS1_STA/WIFI_IP_DNS1_AP (8.8.8.8)
460 #define WIFI_SETGETOPTION_IP_DNS1_EN    3
461 // <o0> ARM_WIFI_IP_DNS2 <0=>Disabled <1=>Set <2=>Get <3=>Set/Get
462 // <i> Default test value is set in defines WIFI_IP_DNS2_STA/WIFI_IP_DNS2_AP (8.8.4.4)
463 #define WIFI_SETGETOPTION_IP_DNS2_EN    3
464 // <o0> ARM_WIFI_IP_DHCP <0=>Disabled <1=>Set <2=>Get <3=>Set/Get
465 #define WIFI_SETGETOPTION_IP_DHCP_EN    3
466 // <o0> ARM_WIFI_IP_DHCP_POOL_BEGIN <0=>Disabled <1=>Set <2=>Get <3=>Set/Get
467 // <i> Default test value is set in defines WIFI_IP_DHCP_POOL_BEGIN_AP (192.168.0.100)
468 #define WIFI_SETGETOPTION_IP_DHCP_POOL_BEGIN_EN 3
469 // <o0> ARM_WIFI_IP_DHCP_POOL_END <0=>Disabled <1=>Set <2=>Get <3=>Set/Get
470 // <i> Default test value is set in defines WIFI_IP_DHCP_POOL_END_AP (192.168.0.200)
471 #define WIFI_SETGETOPTION_IP_DHCP_POOL_END_EN   3
472 // <o0> ARM_WIFI_IP_DHCP_LEASE_TIME <0=>Disabled <1=>Set <2=>Get <3=>Set/Get
473 // <i> Default test value is set in defines WIFI_IP_DHCP_LEASE_TIME_AP (3600)
474 #define WIFI_SETGETOPTION_IP_DHCP_LEASE_TIME_EN 3
475 // </e>
476 // <q> WIFI_Scan
477 #define WIFI_SCAN_EN                    1
478 #define WIFI_SCAN_MAX_NUM               10
479 // <q> WIFI_Activate/Deactivate
480 #define WIFI_ACT_DEACT_EN               1
481 // <q> WIFI_IsConnected
482 #define WIFI_ISCONNECTED_EN             1
483 // <q> WIFI_GetNetInfo
484 #define WIFI_GETNETINFO_EN              1
485 // </e>
486 // <e> Management (requires user interaction)
487 // <i> Management functions tests that require user interaction
488 #define WIFI_MANAGEMENT_USER_EN         0
489 // <q> WIFI_Activate_AP
490 // <i> For this test please connect a WiFi client (for example mobile phone) to AP
491 // <i> and check if connection has succeeded
492 #define WIFI_ACT_AP                     1
493 // <e> WPS
494 #define WIFI_WPS_USER_EN                1
495 // <q> WIFI_Activate_Station_WPS_PBC
496 // <i> For this test please start WPS Push-button method on WiFi AP (router) manually
497 #define WIFI_ACT_STA_WPS_PBC            1
498 // <q> WIFI_Activate_Station_WPS_PIN
499 // <i> For this test please configure WPS PIN method on WiFi AP (router) manually
500 #define WIFI_ACT_STA_WPS_PIN            1
501 // <q> WIFI_Activate_AP_WPS_PBC
502 // <i> For this test please connect a WiFi client (for example mobile phone) to AP with WPS Push-button method
503 // <i> and check if connection has succeeded
504 #define WIFI_ACT_AP_WPS_PBC             1
505 // <q> WIFI_Activate_AP_WPS_PIN
506 // <i> For this test please connect a WiFi client (for example mobile phone) to AP with WPS PIN method
507 // <i> and check if connection has succeeded
508 #define WIFI_ACT_AP_WPS_PIN             1
509 // </e>
510 // </e>
511 // <e> Socket API (requires SockServer)
512 // <i> Socket functions tests
513 #define WIFI_SOCKET_EN                  1
514 // <q> WIFI_SocketCreate
515 #define WIFI_SOCKETCREATE_EN            1
516 // <q> WIFI_SocketBind
517 #define WIFI_SOCKETBIND_EN              1
518 // <q> WIFI_SocketListen
519 #define WIFI_SOCKETLISTEN_EN            1
520 // <q> WIFI_SocketAccept
521 #define WIFI_SOCKETACCEPT_EN            1
522 // <q> WIFI_SocketConnect
523 #define WIFI_SOCKETCONNECT_EN           1
524 // <q> WIFI_SocketRecv
525 #define WIFI_SOCKETRECV_EN              1
526 // <q> WIFI_SocketRecvFrom
527 #define WIFI_SOCKETRECVFROM_EN          1
528 // <q> WIFI_SocketSend
529 #define WIFI_SOCKETSEND_EN              1
530 // <q> WIFI_SocketSendTo
531 #define WIFI_SOCKETSENDTO_EN            1
532 // <q> WIFI_SocketGetSockName
533 #define WIFI_SOCKETGETSOCKNAME_EN       1
534 // <q> WIFI_SocketGetPeerName
535 #define WIFI_SOCKETGETPEERNAME_EN       1
536 // <q> WIFI_SocketGetOpt
537 #define WIFI_SOCKETGETOPT_EN            1
538 // <q> WIFI_SocketSetOpt
539 #define WIFI_SOCKETSETOPT_EN            1
540 // <q> WIFI_SocketClose
541 #define WIFI_SOCKETCLOSE_EN             1
542 // <q> WIFI_SocketGetHostByName
543 #define WIFI_SOCKETGETHOSTBYNAME_EN     1
544 // <q> WIFI_Ping
545 #define WIFI_PING_EN                    1
546 // </e>
547 // <e> Socket Operation (requires SockServer)
548 // <i> Socket operation tests
549 #define WIFI_SOCKET_OP_EN               1
550 // <q> WIFI_Transfer_Fixed
551 // <i> Sends and receives in fixed size blocks
552 #define WIFI_TRANSFER_FIXED_EN          1
553 // <q> WIFI_Transfer_Incremental
554 // <i> Sends and receives in ascending size blocks
555 #define WIFI_TRANSFER_INCREMENTAL_EN    1
556 // <q> WIFI_Send_Fragmented
557 // <i> Sends several smaller blocks, receives one large block
558 #define WIFI_SEND_FRAGMENTED_EN         1
559 // <q> WIFI_Recv_Fragmented
560 // <i> Sends one large block, receives several smaller blocks
561 #define WIFI_RECV_FRAGMENTED_EN         1
562 // <q> WIFI_Test_Speed
563 // <i> Transmits data and measures transfer speed
564 #define WIFI_TEST_SPEED_EN              1
565 // <q> WIFI_Concurrent_Socket
566 // <i> Transmits data in two sockets simultaneously
567 #define WIFI_CONCURRENT_SOCKET_EN       1
568 // <q> WIFI_Downstream_Rate
569 // <i> Measures the downstream bandwidth
570 #define WIFI_DOWNSTREAM_RATE_EN         1
571 // <q> WIFI_Upstream_Rate
572 // <i> Measures the upstream bandwidth
573 #define WIFI_UPSTREAM_RATE_EN           1
574 // </e>
575 // </h>
576 // </h>
577
578 // Configuration settings of test values for Set/GetOptions
579 // BSSID
580 #define WIFI_BSSID_STA                  "1E-30-6C-A2-45-5E"
581 #define WIFI_BSSID_AP                   "1E-30-6C-A2-45-5E"
582 // Radio transmitting power in dBm
583 #define WIFI_TX_POWER_STA               16
584 #define WIFI_TX_POWER_AP                16
585 // Low-power deep-sleep time value in seconds
586 #define WIFI_LP_TIMER_STA               10
587 // Delivery Traffic Indication Message interval value in beacons
588 #define WIFI_DTIM_STA                   3
589 #define WIFI_DTIM_AP                    3
590 // Beacon interval value in milliseconds
591 #define WIFI_BEACON_AP                  2000
592 // Ethernet MAC Address in text representation
593 #define WIFI_MAC_STA                    "1E-30-6C-A2-45-5E"
594 #define WIFI_MAC_AP                     "1E-30-6C-A2-45-5E"
595 // Static IPv4 Address in text representation
596 #define WIFI_IP_STA                     "192.168.0.100"
597 #define WIFI_IP_AP                      "192.168.0.100"
598 // Local Subnet mask in text representation
599 #define WIFI_IP_SUBNET_MASK_STA         "255.255.255.0"
600 #define WIFI_IP_SUBNET_MASK_AP          "255.255.255.0"
601 // IP Address of Default Gateway in text representation
602 #define WIFI_IP_GATEWAY_STA             "192.168.0.254"
603 #define WIFI_IP_GATEWAY_AP              "192.168.0.254"
604 // IP Address of Primary DNS Server in text representation
605 #define WIFI_IP_DNS1_STA                "8.8.8.8"
606 #define WIFI_IP_DNS1_AP                 "8.8.8.8"
607 // IP Address of Secondary DNS Server in text representation
608 #define WIFI_IP_DNS2_STA                "8.8.4.4"
609 #define WIFI_IP_DNS2_AP                 "8.8.4.4"
610 // IP Address of DHCP server pool beginning in text representation
611 #define WIFI_IP_DHCP_POOL_BEGIN_AP      "192.168.0.100"
612 // IP Address of DHCP server pool end in text representation
613 #define WIFI_IP_DHCP_POOL_END_AP        "192.168.0.200"
614 // DHCP lease time value in seconds
615 #define WIFI_IP_DHCP_LEASE_TIME_AP      3600
616
617 // Timeout configuration that can be used for adjusting tests to limitations of the WiFi Module (in ms)
618 #define WIFI_SOCKET_TIMEOUT             2000
619 #define WIFI_SOCKET_TIMEOUT_LONG        35000
620
621 // Time that Access Point will wait for Client to connect to it (in ms)
622 #define WIFI_AP_CLIENT_CON_TIMEOUT      120000
623
624 //------------------------------------------------------------------------------
625
626 // Device specific local loopback settings
627 #define SPI_LOCAL_LOOPBACK()
628 #define USART_LOCAL_LOOPBACK()
629
630 #endif /* __DV_CONFIG_H */