1 /* 2 * Copyright (c) 2022 Winner Microelectronics Co., Ltd. All rights reserved. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 /** 17 * @file wm_config.h 18 * 19 * @brief w800 chip inferface configure 20 * 21 * @author dave 22 * 23 * @copyright (c) 2014 Winner Microelectronics Co., Ltd. 24 */ 25 #ifndef __WM_CONFIG_H__ 26 #define __WM_CONFIG_H__ 27 #include <csi_config.h> 28 29 #define CFG_ON 1 30 #define CFG_OFF 0 31 32 #define WM_CONFIG_DEBUG_UART1 CFG_OFF /* PRINTF PORT USE UART1 */ 33 /**Driver Support**/ 34 #define TLS_CONFIG_HS_SPI CFG_OFF /* High Speed SPI */ 35 #define TLS_CONFIG_LS_SPI CFG_OFF /* Low Speed SPI */ 36 #define TLS_CONFIG_UART CFG_ON /* UART */ 37 38 /**Only Factory Test At Command**/ 39 #define TLS_CONFIG_ONLY_FACTORY_ATCMD CFG_OFF 40 41 /**Host Interface&Command**/ 42 #define TLS_CONFIG_HOSTIF CFG_ON 43 #define TLS_CONFIG_AT_CMD (CFG_ON && TLS_CONFIG_HOSTIF) 44 #define TLS_CONFIG_RI_CMD (CFG_ON && TLS_CONFIG_HOSTIF) 45 #define TLS_CONFIG_RMMS (CFG_ON && TLS_CONFIG_HOSTIF) 46 47 // LWIP CONFIG 48 #define TLS_CONFIG_IPV4 CFG_ON // must ON 49 #define TLS_CONFIG_IPV6 CFG_OFF 50 #define TLS_CONFIG_DHCP_OPTION60 "Winnermicro:W800_01" 51 52 /** SOCKET CONFIG **/ 53 #define TLS_CONFIG_SOCKET_STD CFG_ON 54 #define TLS_CONFIG_SOCKET_RAW CFG_ON 55 #define TLS_CONFIG_CMD_USE_RAW_SOCKET (CFG_ON && TLS_CONFIG_SOCKET_RAW) 56 #define TLS_CONFIG_CMD_NET_USE_LIST_FTR CFG_ON 57 58 #define TLS_CONFIG_HARD_CRYPTO CFG_ON 59 60 #define TLS_CONFIG_NTO CFG_ON 61 #define TLS_CONFIG_CRYSTAL_24M CFG_OFF 62 63 /** HTTP CLIENT **/ 64 /* 65 HTTP Lib 66 HTTPS Lib 67 SSL LIB 68 CRYPTO 69 */ 70 #define TLS_CONFIG_HTTP_CLIENT (CFG_ON) 71 #define TLS_CONFIG_HTTP_CLIENT_PROXY CFG_OFF 72 #define TLS_CONFIG_HTTP_CLIENT_AUTH_BASIC CFG_OFF 73 #define TLS_CONFIG_HTTP_CLIENT_AUTH_DIGEST CFG_OFF 74 #define TLS_CONFIG_HTTP_CLIENT_AUTH (TLS_CONFIG_HTTP_CLIENT_AUTH_BASIC || TLS_CONFIG_HTTP_CLIENT_AUTH_DIGEST) 75 #define TLS_CONFIG_HTTP_CLIENT_SECURE (CFG_ON && (TLS_CONFIG_USE_POLARSSL || TLS_CONFIG_USE_MBEDTLS)) 76 #define TLS_CONFIG_HTTP_CLIENT_TASK (CFG_ON && TLS_CONFIG_HTTP_CLIENT) 77 78 /* MatrixSSL will be used except one of the following two Macros is CFG_ON */ 79 #define TLS_CONFIG_USE_POLARSSL CFG_OFF 80 #define TLS_CONFIG_USE_MBEDTLS CFG_ON 81 82 /* MUST configure TLS_CONFIG_HTTP_CLIENT_SECURE CFG_ON */ 83 #define TLS_CONFIG_SERVER_SIDE_SSL (CFG_ON && TLS_CONFIG_HTTP_CLIENT_SECURE && TLS_CONFIG_USE_MBEDTLS) 84 85 /**IGMP**/ 86 #define TLS_CONFIG_IGMP CFG_ON 87 88 #define TLS_CONFIG_NTP CFG_ON 89 90 #if NIMBLE_FTR 91 #define TLS_CONFIG_BLE CFG_ON 92 #define TLS_CONFIG_BR_EDR CFG_OFF 93 #else 94 #define TLS_CONFIG_BLE CFG_OFF 95 #define TLS_CONFIG_BR_EDR CFG_ON 96 #endif 97 98 #define TLS_CONFIG_BT (TLS_CONFIG_BR_EDR || TLS_CONFIG_BLE) 99 100 #include "wm_os_config.h" // if you want to use source code,please open 101 #include "wm_wifi_config.h" 102 103 #endif /* __WM_CONFIG_H__ */