1 /* -----------------------------------------------------------------------------
2 * Copyright (c) 2019 Arm Limited (or its affiliates). All rights reserved.
4 * SPDX-License-Identifier: Apache-2.0
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
10 * www.apache.org/licenses/LICENSE-2.0
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.
19 * $Date: 27. November 2019
22 * Project: ESP32 WiFi Driver
23 * -------------------------------------------------------------------------- */
25 //-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
27 // <h>ESP32 WiFi Driver Configuration
29 // <o> WiFi Driver Number (Driver_WiFi#) <0-255>
30 // <i> Defines exported WiFi driver control block number (Driver_WiFi#)
32 #define WIFI_ESP32_DRIVER_NUMBER 0
34 // <o>Connect to hardware via Driver_USART# <0-255>
35 // <i>Defines the serial driver control block number (Driver_USART#)
37 #define WIFI_ESP32_SERIAL_DRIVER 3
39 // <o> Serial interface baudrate <115200=>115200
43 // <i> Defines the serial interface baudrate.
44 // <i> Default: 115200
45 #define WIFI_ESP32_SERIAL_BAUDRATE 115200
47 // <o> WiFi thread priority <0=>osPriorityLow
48 // <1=>osPriorityBelowNormal
49 // <2=>osPriorityNormal
50 // <3=>osPriorityAboveNormal
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.
56 #define WIFI_ESP32_THREAD_PRIORITY 3
58 // <o> WiFi thread stack size [bytes] <96-1073741824:8>
59 // <i> Defines stack size for the WiFi Thread.
61 #define WIFI_ESP32_THREAD_STACK_SIZE 1024
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.
67 #define WIFI_ESP32_SOCKET_BLOCK_SIZE 1024
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.
73 #define WIFI_ESP32_SOCKET_BLOCK_COUNT 8
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.
79 #define WIFI_ESP32_PARSER_BLOCK_SIZE 256
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.
85 #define WIFI_ESP32_PARSER_BLOCK_COUNT 8
89 //------------- <<< end of configuration section >>> -------------------------