]> begriffs open source - cmsis-driver-validation/blob - Boards/ST/B-L475E-IOT01A1/RTE/CMSIS_Driver/WiFi_ISM43362_Config.h
Changes:
[cmsis-driver-validation] / Boards / ST / B-L475E-IOT01A1 / RTE / CMSIS_Driver / WiFi_ISM43362_Config.h
1 /* -----------------------------------------------------------------------------
2  * Copyright © 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:        30. October 2019
20  * $Revision:    V1.1
21  *
22  * Project:      WiFi Driver Configuration for 
23  *               Inventek ISM43362-M3G-L44 WiFi Module (SPI variant)
24  * -------------------------------------------------------------------------- */
25
26 //-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
27
28 #ifndef __WIFI_ISM43362_CONFIG_H
29 #define __WIFI_ISM43362_CONFIG_H
30
31 // <h> WiFi Inventek ISM43362 Driver Configuration (SPI)
32
33 //   <o> WiFi Driver Number
34 //   <i> Configuration settings specifying driver number (default: Driver_WiFi0)
35 #define WIFI_ISM43362_DRV_NUM               0
36
37 //   <o> SPI Driver Number
38 //   <i> Configuration settings specifying SPI driver number used (if Module uses SPI interface)
39 #define WIFI_ISM43362_SPI_DRV_NUM           3
40
41 //   <o> Memory pool size
42 //   <i> Configuration settings specifying memory pool size for receive packets buffering
43 #define WIFI_ISM43362_MEM_POOL_SIZE         16384
44
45 // </h>
46
47 // Number of sockets supported by Module (default and maximum: 4)
48 #define WIFI_ISM43362_SOCKETS_NUM          (4)
49
50 // SPI bus speed (default: 20 Mbps)
51 #define WIFI_ISM43362_SPI_BUS_SPEED        (20000000)
52
53 // SPI mutex acquire timeout in ms (default: 1000)
54 #define WIFI_ISM43362_SPI_TIMEOUT          (1000)
55
56 // SPI receive transfer size (default: 32)
57 // This setting specifies chunk size in which SPI read is done
58 #define WIFI_ISM43362_SPI_RECEIVE_SIZE     (32)
59
60 // SPI command timeout in ms (default: 30000)
61 // Maximum time that command can keep the SPI DATARDY line busy
62 #define WIFI_ISM43362_CMD_TIMEOUT          (30000)
63
64 // Asynchronous thread polling time interval in ms (default: 1000)
65 // Interval in which asynchronous events are polled and also interval 
66 // in which long blocking socket receive is split
67 #define WIFI_ISM43362_ASYNC_INTERVAL       (8)
68
69 // Asynchronous thread priority (default: osPriorityAboveNormal)
70 // This priority should be above user threads
71 #define WIFI_ISM43362_ASYNC_PRIORITY       (osPriorityAboveNormal)
72
73 #endif // __WIFI_ISM43362_CONFIG_H