]> begriffs open source - cmsis-driver-validation/blob - Boards/Espressif/ESP32_Arduino/RTE/CMSIS_Driver/WiFi_ESP32_Config.h
Update validation examples for Espressif ESP32, ESP8266 and WizNet WizFi360 and add...
[cmsis-driver-validation] / Boards / Espressif / ESP32_Arduino / RTE / CMSIS_Driver / WiFi_ESP32_Config.h
1 /* -----------------------------------------------------------------------------
2  * Copyright (c) 2019 Arm Limited (or its affiliates). All rights reserved.
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Licensed under the Apache License, Version 2.0 (the License); you may
7  * not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an AS IS BASIS, WITHOUT
14  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  *
18  *
19  * $Date:        27. November 2019
20  * $Revision:    V1.0
21  *
22  * Project:      ESP32 WiFi Driver
23  * -------------------------------------------------------------------------- */
24
25 //-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
26
27 // <h>ESP32 WiFi Driver Configuration
28
29 // <o> WiFi Driver Number (Driver_WiFi#) <0-255>
30 // <i> Defines exported WiFi driver control block number (Driver_WiFi#)
31 // <i> Default: 0
32 #define WIFI_ESP32_DRIVER_NUMBER            0
33
34 // <o>Connect to hardware via Driver_USART# <0-255>
35 // <i>Defines the serial driver control block number (Driver_USART#)
36 // <i> Default: 0
37 #define WIFI_ESP32_SERIAL_DRIVER            3
38
39 // <o> Serial interface baudrate <115200=>115200
40 //                               <230400=>230400
41 //                               <460800=>460800
42 //                               <921600=>921600
43 // <i> Defines the serial interface baudrate.
44 // <i> Default: 115200
45 #define WIFI_ESP32_SERIAL_BAUDRATE          115200
46
47 // <o> WiFi thread priority <0=>osPriorityLow
48 //                          <1=>osPriorityBelowNormal
49 //                          <2=>osPriorityNormal
50 //                          <3=>osPriorityAboveNormal
51 //                          <4=>osPriorityHigh
52 //                          <5=>osPriorityRealtime
53 // <i> Defines the WiFi driver thread priority.
54 // <i> The priority of the WiFi thread should be higher as application thread priority.
55 // <i> Default: 3
56 #define WIFI_ESP32_THREAD_PRIORITY          3
57
58 // <o> WiFi thread stack size [bytes] <96-1073741824:8>
59 // <i> Defines stack size for the WiFi Thread.
60 // <i> Default: 512
61 #define WIFI_ESP32_THREAD_STACK_SIZE        1024
62
63 // <o> Socket buffer block size <128-16384:128>
64 // <i> Defines the size of one memory block used for socket data buffering.
65 // <i> Socket buffering consists of multiple blocks which are distributed across multiple sockets.
66 // <i> Default: 512
67 #define WIFI_ESP32_SOCKET_BLOCK_SIZE        1024
68
69 // <o> Socket buffer block count <5-256>
70 // <i> Defines the total number of memory blocks used for socket data buffering.
71 // <i> Socket buffering consists of multiple blocks which are distributed across multiple sockets.
72 // <i> Default: 8
73 #define WIFI_ESP32_SOCKET_BLOCK_COUNT       8
74
75 // <o> Serial parser buffer block size
76 // <i> Defines the size of one memory block in serial parser buffer.
77 // <i> The total size of serial parser buffer is defined by memory block size and number of blocks.
78 // <i> Default: 256
79 #define WIFI_ESP32_PARSER_BLOCK_SIZE        256
80
81 // <o> Serial parser buffer block count
82 // <i> Defines the number of memory blocks in serial parser buffer.
83 // <i> The total size of serial parser buffer is defined by memory block size and number of blocks.
84 // <i> Default: 8
85 #define WIFI_ESP32_PARSER_BLOCK_COUNT       8
86
87 // </h>
88
89 //------------- <<< end of configuration section >>> -------------------------