1 /* -----------------------------------------------------------------------------
2 * Copyright © 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: 30. October 2019
22 * Project: WiFi Driver Configuration for
23 * Inventek ISM43362-M3G-L44 WiFi Module (SPI variant)
24 * -------------------------------------------------------------------------- */
26 //-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
28 #ifndef __WIFI_ISM43362_CONFIG_H
29 #define __WIFI_ISM43362_CONFIG_H
31 // <h> WiFi Inventek ISM43362 Driver Configuration (SPI)
33 // <o> WiFi Driver Number
34 // <i> Configuration settings specifying driver number (default: Driver_WiFi0)
35 #define WIFI_ISM43362_DRV_NUM 0
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
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
47 // Number of sockets supported by Module (default and maximum: 4)
48 #define WIFI_ISM43362_SOCKETS_NUM (4)
50 // SPI bus speed (default: 20 Mbps)
51 #define WIFI_ISM43362_SPI_BUS_SPEED (20000000)
53 // SPI mutex acquire timeout in ms (default: 1000)
54 #define WIFI_ISM43362_SPI_TIMEOUT (1000)
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)
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)
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)
69 // Asynchronous thread priority (default: osPriorityAboveNormal)
70 // This priority should be above user threads
71 #define WIFI_ISM43362_ASYNC_PRIORITY (osPriorityAboveNormal)
73 #endif // __WIFI_ISM43362_CONFIG_H