12#ifndef TUYA_IOT_CONFIG_H
13#define TUYA_IOT_CONFIG_H
21#define SYSTEM_SMALL_MEMORY_BEGIN 0
22#define SYSTEM_REALTEK8710_1M 1
23#define SYSTEM_REALTEK8710_2M 2
24#define SYSTEM_NON_OS 3
25#define SYSTEM_FREERTOS 98
26#define SYSTEM_SMALL_MEMORY_END 99
27#define SYSTEM_LINUX 100
28#define SYSTEM_LITEOS 120
31#define TLS_TUYA_PSK_ONLY 2
32#define TLS_TUYA_ECC_PSK 3
33#define TLS_TUYA_ECC_ONLY 4
34#define TLS_TUYA_ECC_ONLY_NOSTRIP 5
35#define TLS_TUYA_ECC_CLIENT_AUTH 6
38#define TUYA_OPERATOR_DISABLE 0x0
39#define TUYA_OPERATOR_CUCC 0x01
40#define TUYA_OPERATOR_CTCC 0x02
41#define TUYA_OPERATOR_CMCC 0x04
42#define TUYA_OPERATOR_CMCC_ANDLINK 0x08
43#define TUYA_OPERATOR_ALL (TUYA_OPERATOR_CUCC | TUYA_OPERATOR_CTCC | TUYA_OPERATOR_CMCC)
46#define TUYA_LAN_V31 0x1
47#define TUYA_LAN_V32 0x2
48#define TUYA_LAN_V33 0x4
49#define TUYA_LAN_V35 0x8
50#define TUYA_LAN_ALL (TUYA_LAN_V31 | TUYA_LAN_V32 | TUYA_LAN_V33 | TUYA_LAN_V35)
52#define TUYA_MQ_V21 0x1
53#define TUYA_MQ_V22 0x2
54#define TUYA_MQ_V23 0x4
55#define TUYA_MQ_ALL (TUYA_MQ_V21 | TUYA_MQ_V22 | TUYA_MQ_V23)
59#define BUILD_DATE "2022_08_23"
60#define BUILD_TIME "15_27_13"
61#define GIT_USER "ci_manage"
62#define IOT_SDK_VER "3.3.2"
63#define SDK_BETA_VER ""
64#define TARGET_PLATFORM "bk7231n"
65#define PROJECT_NAME "tuyaos-iot"
66#define SDK_ID "tuyaos-iot_3.3.2_bk7231n_wifi-ble-com_0.0.31"
67#define KERNEL_VER "0.0.1"
72#define ENABLE_COMPATIBLE 1
76#define TUYA_IOT_DEBUG 1
78#define TUYA_REDUCE_BIN 2
84#define STACK_SIZE_HEALTH_MONITOR 1536
87#define KV_PROTECTED_ENABLE 1
89#define ENABLE_KV_PROTECTED 1
91#define ENABLE_KV_KEY_SEED 1
93#define KV_KEY_SEED "8710_2M"
99#define EVENT_NAME_MAX_LEN 16
101#define ENABLE_TUYA_LAN 1
103#define ENABLE_LAN_ENCRYPTION 1
107#define STACK_SIZE_LAN 4096
114#define LWIP_TCP_HEAD_ALLOC_REUSE_POLL 0
116#define LWIP_TUYA_APP_TCPIP_THREAD_SWITCH 1
118#define IPEF_TEST_OPTIMIZE 0
120#define MEM_SIZE 10240
122#define MEMP_NUM_UDP_PCB 6
124#define MEMP_NUM_TCP_PCB 10
126#define MEMP_NUM_TCP_PCB_LISTEN 5
128#define MEMP_NUM_NETCONN 21
130#define MEMP_NUM_PBUF 100
132#define MEMP_NUM_TCP_SEG 20
134#define IP_REASS_MAX_PBUFS 10
136#define PBUF_POOL_SIZE 20
138#define PBUF_LINK_ENCAPSULATION_HLEN 400
140#define TCP_SND_BUF 7300
142#define TCP_SND_QUEUELEN 20
144#define MEMP_NUM_NETBUF 8
146#define TCPIP_MBOX_SIZE 6
148#define DEFAULT_UDP_RECVMBOX_SIZE 6
150#define DEFAULT_TCP_RECVMBOX_SIZE 6
152#define DEFAULT_RAW_RECVMBOX_SIZE 6
154#define DEFAULT_ACCEPTMBOX_SIZE 6
156#define MEMP_NUM_SYS_TIMEOUT 10
158#define LWIP_SO_SNDTIMEO 1
160#define LWIP_SO_RCVTIMEO 1
162#define LWIP_SO_LINGER 1
164#define LWIP_TUYA_SO_LINGER_RST 1
166#define LWIP_PROVIDE_ERRNO 1
170#define LWIP_NETIF_HOSTNAME 1
172#define LWIP_TCPIP_CORE_LOCKING 1
174#define LWIP_EAPOL_SUPPORT 0
176#define TCPIP_THREAD_STACKSIZE 2048
178#define TCPIP_THREAD_PRIO 9
180#define DHCPC_THREAD_STACKSIZE 2048
182#define DHCPC_THREAD_PRIO 5
184#define LWIP_TX_PBUF_ZERO_COPY 0
186#define CONFIG_TUYA_SOCK_SHIM 0
188#define SOCK_API_SYNC 1
190#define LWIP_DHCPC_STATIC_IPADDR_ENABLE 1
192#define LWIP_NETCONN_SEM_PER_THREAD 1
194#define ETHARP_SUPPORT_STATIC_ENTRIES 1
196#define LWIP_NETIF_STATUS_CALLBACK 1
198#define LWIP_COMPAT_MUTEX_ALLOWED 1
200#define LWIP_TIMEVAL_PRIVATE 1
204#define LWIP_NETCONN_FULLDUPLEX 0
206#define ENABLE_BT_SERVICE 1
208#define ENABLE_BT_NETCFG 1
210#define ENABLE_BT_ACTIVE 1
212#define ENABLE_BT_CTRL 1
214#define ENABLE_BT_REMOTE_CTRL 1
218#define ENABLE_BT_MF 1
222#define TUYA_BLE_VER 3
224#define ENABLE_TAL_BLUETOOTH 1
226#define TAL_BLUETOOTH 1
228#define TAL_BLE_SERVICE_VERSION 1
230#define ENABLE_TUYA_BLE_STACK 1
232#define TARGET_BT_PLATFORM 3
234#define TUYA_HS_BLE_HOST_TASK_PRIORITY 5
244#define BT_REMOTE_CTRL 1
256#define ENABLE_WIFI_SERVICE 1
262#define ENABLE_WIFI_PROTECT 1
264#define ENABLE_WIFI_FFC 1
269#define TUYA_WIFI_FFC_SLAVER 1
275#define ENABLE_TUYA_CLOUD 1
281#define ENABLE_ASTRO_TIMER 1
283#define ENABLE_CALENDAR_TIMER 1
291#define ENABLE_LOCAL_KEY_UPDATE 1
293#define ENABLE_COMMUNICATE_PRIORITY 1
295#define STACK_SIZE_MQTT_CLIENT 4096
297#define MAX_RANDOM_DELAY_BEFORE_RECONNECT 300
300#define STACK_SIZE_WORK_QUEUE 5120
302#define MAX_NODE_NUM_WORK_QUEUE 100
304#define STACK_SIZE_MSG_QUEUE 4096
306#define MAX_NODE_NUM_MSG_QUEUE 100
311#define OPERATING_SYSTEM 98
325#define ENABLE_WATCHDOG 1
327#define ENABLE_FLASH 1
329#define TUYA_FLASH_TYPE_MAX_PARTITION_NUM 10
345#define ENABLE_TIMER 1
385#ifndef TUYA_LAN_VERSION
386#define TUYA_LAN_VERSION TUYA_LAN_V35
389#ifndef TUYA_MQ_VERSION
390#define TUYA_MQ_VERSION TUYA_MQ_V23
393#ifndef ENABLE_DEVICE_DATA_COLLECT
394#define ENABLE_DEVICE_DATA_COLLECT 0
397#ifndef TUYA_WEAK_ATTRIBUTE
398#define TUYA_WEAK_ATTRIBUTE __attribute__ ((weak))