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
41#define TUYA_MODIFY_MBEDTLS 1
43#define TUYA_OPERATOR_DISABLE 0x0
44#define TUYA_OPERATOR_CUCC 0x01
45#define TUYA_OPERATOR_CTCC 0x02
46#define TUYA_OPERATOR_CMCC 0x04
47#define TUYA_OPERATOR_CMCC_ANDLINK 0x08
48#define TUYA_OPERATOR_ALL (TUYA_OPERATOR_CUCC | TUYA_OPERATOR_CTCC | TUYA_OPERATOR_CMCC)
51#define TUYA_LAN_V31 0x1
52#define TUYA_LAN_V32 0x2
53#define TUYA_LAN_V33 0x4
54#define TUYA_LAN_V35 0x8
55#define TUYA_LAN_ALL (TUYA_LAN_V31 | TUYA_LAN_V32 | TUYA_LAN_V33 | TUYA_LAN_V35)
57#define TUYA_MQ_V21 0x1
58#define TUYA_MQ_V22 0x2
59#define TUYA_MQ_V23 0x4
60#define TUYA_MQ_ALL (TUYA_MQ_V21 | TUYA_MQ_V22 | TUYA_MQ_V23)
63#define BUILD_DATE "2024_01_03"
64#define BUILD_TIME "14_06_39"
65#define GIT_USER "ci_manage"
66#define IOT_SDK_VER "3.9.0"
67#define SDK_BETA_VER ""
68#define TARGET_PLATFORM "bk7231n"
69#define PROJECT_NAME "tuyaos-iot"
70#define SDK_ID "tuyaos-iot_3.9.0_bk7231n_wifi-ble-com_1.3.5"
78#define STACK_SIZE_TIMERQ 4096
82#define ENABLE_SET_SOCK_OPT 1
84#define ENABLE_NETWORK_OPTIONS 1
86#define TUYA_FD_MAX_COUNT 64
93#define STACK_SIZE_HEALTH_MONITOR 2048
95#define HEALTH_FREE_MEM_THRESHOLD 8192
97#define ENABLE_OSS_COMPILE_WARNINGS 1
99#define ENABLE_LOG_UPLOAD 1
101#define PACKET_SIZE_PER_HTTP_SEND 307200
103#define HTTP_SEND_INTERVAL 100
105#define PACKET_SIZE_PER_LAN_SEND 8192
107#define LAN_SEND_INTERVAL 100
109#define MAX_UPD_FILE_SIZE 5242880
112#define KV_PROTECTED_ENABLE 1
118#define ENABLE_KV_PROTECTED 1
120#define ENABLE_KV_KEY_SEED 1
122#define KV_KEY_SEED "8710_2M"
127#define MAX_LENGTH_OF_FILE_FULL_PATH 128
130#define EVENT_NAME_MAX_LEN 16
132#define ENABLE_TUYA_LAN 1
134#define TUYA_LAN_VERSION 0x8
136#define ENABLE_LAN_ENCRYPTION 1
140#define STACK_SIZE_LAN 4096
143#define OTA_DOWMLOAD_BUF_SIZE 1024
145#define STACK_SIZE_UPGRADE 4096
156#define STACK_SIZE_MF_TEST 5120
160#define LWIP_TCP_HEAD_ALLOC_REUSE_POLL 0
162#define LWIP_TUYA_APP_TCPIP_THREAD_SWITCH 1
164#define IPEF_TEST_OPTIMIZE 0
166#define MEM_SIZE 13312
168#define MEMP_NUM_UDP_PCB 6
170#define MEMP_NUM_TCP_PCB 10
172#define MEMP_NUM_TCP_PCB_LISTEN 5
174#define MEMP_NUM_NETCONN 21
176#define MEMP_NUM_PBUF 100
178#define MEMP_NUM_TCP_SEG 20
180#define IP_REASS_MAX_PBUFS 10
182#define PBUF_POOL_SIZE 20
184#define PBUF_LINK_ENCAPSULATION_HLEN 0
186#define TCP_SND_BUF 7300
188#define TCP_SND_QUEUELEN 20
190#define MEMP_NUM_NETBUF 8
192#define TCPIP_MBOX_SIZE 6
194#define DEFAULT_UDP_RECVMBOX_SIZE 6
196#define DEFAULT_TCP_RECVMBOX_SIZE 6
198#define DEFAULT_RAW_RECVMBOX_SIZE 6
200#define DEFAULT_ACCEPTMBOX_SIZE 6
202#define MEMP_NUM_SYS_TIMEOUT 10
204#define LWIP_SO_SNDTIMEO 1
206#define LWIP_SO_RCVTIMEO 1
208#define LWIP_SO_LINGER 1
210#define LWIP_TUYA_SO_LINGER_RST 1
212#define LWIP_PROVIDE_ERRNO 1
216#define LWIP_NETIF_HOSTNAME 1
218#define LWIP_TCPIP_CORE_LOCKING 1
220#define LWIP_EAPOL_SUPPORT 0
222#define TCPIP_THREAD_STACKSIZE 2048
224#define TCPIP_THREAD_PRIO 9
226#define DHCPC_THREAD_STACKSIZE 2048
228#define DHCPC_THREAD_PRIO 5
230#define LWIP_TX_PBUF_ZERO_COPY 0
232#define CONFIG_TUYA_SOCK_SHIM 0
234#define SOCK_API_SYNC 0
236#define LWIP_DHCPC_STATIC_IPADDR_ENABLE 0
238#define LWIP_NETCONN_SEM_PER_THREAD 1
240#define ETHARP_SUPPORT_STATIC_ENTRIES 1
242#define LWIP_NETIF_STATUS_CALLBACK 1
244#define LWIP_COMPAT_MUTEX_ALLOWED 1
246#define LWIP_TIMEVAL_PRIVATE 1
250#define LWIP_NETCONN_FULLDUPLEX 1
252#define MEM_LIBC_MALLOC 0
254#define ENABLE_BT_SERVICE 1
256#define ENABLE_BT_NETCFG 1
258#define ENABLE_BT_ACTIVE 1
260#define ENABLE_BT_CTRL 1
262#define BT_ADV_INTERVAL_MIN 30
264#define BT_ADV_INTERVAL_MAX 60
266#define ENABLE_BT_REMOTE_CTRL 1
268#define BT_REMOTE_CTRL_SCAN_INTERVAL 30
270#define BT_REMOTE_CTRL_SCAN_WINDOWS 10
272#define ENABLE_BT_TIMER 1
274#define ENABLE_BT_MF 1
282#define TUYA_BLE_VER 4
284#define ENABLE_TAL_BLUETOOTH 1
286#define TAL_BLUETOOTH 1
288#define TAL_BLE_SERVICE_VERSION 2
290#define ENABLE_TUYA_BLE_STACK 1
292#define TARGET_BT_PLATFORM 3
294#define TUYA_HS_BLE_HOST_TASK_PRIORITY 5
296#define TUYA_HS_BLE_HOST_STACK_SIZE 3072
306#define BT_REMOTE_CTRL 1
322#define ENABLE_WIFI_SERVICE 1
326#define ENABLE_WIFI_AP 1
332#define ENABLE_WIFI_QRCODE 1
334#define ENABLE_WIFI_PROTECT 1
336#define ENABLE_WIFI_FFC 1
341#define TUYA_WIFI_FFC_SLAVER 1
345#define ENABLE_STATION_AP_MODE 0
347#define WIFI_AP_BUF_SIZE 10240
351#define ENABLE_TUYA_CLOUD 1
353#define ENABLE_ASTRO_TIMER 1
355#define ENABLE_CALENDAR_TIMER 1
359#define ENABLE_DEVICE_DATA_COLLECT 1
361#define ENABLE_LOCAL_KEY_UPDATE 1
363#define ENABLE_COMMUNICATE_PRIORITY 1
368#define MAX_SECURITY_LEVEL 0
370#define TUYA_SECURITY_LEVEL 0
377#define HTTP_MAX_REQ_RESP_HDR_SIZE 1024
379#define MAX_HTTP_SESSION_NUM 16
384#define TUYA_MQ_VERSION 0x4
386#define STACK_SIZE_MQTT_CLIENT 4096
388#define QOS1_PUBACK_TIMEOUT 3
390#define QOS1_PUBLISH_SLOT_CNT 8
392#define QOS1_PUBACK_TIMEOUT_LIMIT 3
394#define MAX_RANDOM_DELAY_BEFORE_RECONNECT 300
396#define MQTT_HEATBEAT_INTERVAL 60
398#define MQTT_RECV_BUF_SIZE 512
400#define MQTT_MAX_MESSGAE_SIZE 4096
402#define MQTT_RECV_SELECT_TIMEOUT 3000
408#define MATOP_REQ_TIMEOUT 6
410#define TUYA_IOT_DEBUG 1
413#define STACK_SIZE_WORK_QUEUE 5120
415#define MAX_NODE_NUM_WORK_QUEUE 100
417#define STACK_SIZE_MSG_QUEUE 4096
419#define MAX_NODE_NUM_MSG_QUEUE 100
421#define ENABLE_IOT_DEBUG 1
423#define MAX_SIZE_OF_DEBUG_BUF 1024
425#define ENABLE_LOG_OUTPUT_FORMAT 1
427#define TUYA_REDUCE_BIN 2
434#define OPERATING_SYSTEM 98
448#define ENABLE_WATCHDOG 1
450#define ENABLE_FLASH 1
452#define TUYA_FLASH_TYPE_MAX_PARTITION_NUM 10
468#define ENABLE_TIMER 1
496#define ENABLE_PINMUX 1
511#define KERNEL_VER "1.0.0"
512#ifndef TUYA_LAN_VERSION
513#define TUYA_LAN_VERSION TUYA_LAN_V35
516#ifndef TUYA_MQ_VERSION
517#define TUYA_MQ_VERSION TUYA_MQ_V23
520#ifndef ENABLE_DEVICE_DATA_COLLECT
521#define ENABLE_DEVICE_DATA_COLLECT 0
524#ifndef TUYA_WEAK_ATTRIBUTE
525#define TUYA_WEAK_ATTRIBUTE __attribute__ ((weak))
529#define KERNEL_VER "9.9.9"