TuyaOS
tuya_iot_config.h
1/*
2tuya_iot_config.h
3Copyright(C),2018-2020, 涂鸦科技 www.tuya.comm
4*/
5
6/* AUTO-GENERATED FILE. DO NOT MODIFY !!!
7*
8* This config file is automatically generated by tuya cross-build system.
9* It should not be modified by hand.
10*/
11
12#ifndef TUYA_IOT_CONFIG_H
13#define TUYA_IOT_CONFIG_H
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19/* default definitons */
20
21#define SYSTEM_SMALL_MEMORY_BEGIN 0 /*small memory systems begin */
22#define SYSTEM_REALTEK8710_1M 1
23#define SYSTEM_REALTEK8710_2M 2
24#define SYSTEM_NON_OS 3 /*no operating system*/
25#define SYSTEM_FREERTOS 98
26#define SYSTEM_SMALL_MEMORY_END 99 /*small memory systems end */
27#define SYSTEM_LINUX 100
28#define SYSTEM_LITEOS 120
29
30#define TLS_DISABLE 0 /* disable tls function */
31#define TLS_TUYA_PSK_ONLY 2 /* only enable ciper 0xAE */
32#define TLS_TUYA_ECC_PSK 3 /* enable ciper 0xAE && 0xC027 */
33#define TLS_TUYA_ECC_ONLY 4 /* only enable ciper 0xC027 */
34#define TLS_TUYA_ECC_ONLY_NOSTRIP 5 /* only enable ciper 0xC027, but enable most of mbed-tls configs */
35#define TLS_TUYA_ECC_CLIENT_AUTH 6 /* TLS Client Authentication and Server Authentication mode */
36
37#define TUYA_SL_0 0 /* security level 0,Applies to: Resource-constrained devices;Feature: Can only access Tuya Cloud */
38#define TUYA_SL_1 1 /* security level 1,Applies to: Resource-constrained devices;Feature: One-way authentication */
39#define TUYA_SL_2 2 /* security level 2,Applies to: Resource-rich equipment;Feature: Two-way authentication */
40#define TUYA_SL_3 3 /* security level 3,Applies to: Resource-rich equipment;Feature: Two-way authentication,Devices use security chips to protect sensitive information */
41#define TUYA_MODIFY_MBEDTLS 1
42
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)
49
50
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)
56
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)
61
62/* custom settings */
63#define BUILD_DATE "2023_06_19"
64#define BUILD_TIME "11_01_03"
65#define GIT_USER "ci_manage"
66#define IOT_SDK_VER "3.7.2"
67#define SDK_BETA_VER ""
68#define TARGET_PLATFORM "bk7231n"
69#define PROJECT_NAME "tuyaos-iot"
70#define SDK_ID "tuyaos-iot_3.7.2_bk7231n_wifi-ble-com_1.2.4"
71// Generated by Tuya (https://www.tuya.com)
72// 基于项目 tuyaos-iot (3.7.0-beta.1)
73// 基于工具链 bk7231n (0.0.18-beta.32)
74
75
76#define ENABLE_LOG 1
77
78#define STACK_SIZE_TIMERQ 4096
79
80// CONFIG_ENABLE_PRINTF_CHECK is not set
81
82#define ENABLE_SET_SOCK_OPT 1
83
84// CONFIG_ENABLE_NETWORK_OPTIONS is not set
85
86
87#define STACK_SIZE_HEALTH_MONITOR 2048
88
89#define ENABLE_OSS_COMPILE_WARNINGS 1
90
91
92#define KV_PROTECTED_ENABLE 1
93
94// CONFIG_ENABLE_KV_FILE is not set
95
96#define ENABLE_KV_PROTECTED 1
97
98#define ENABLE_KV_KEY_SEED 1
99
100#define KV_KEY_SEED "8710_2M"
101
102
103// CONFIG_ENABLE_UF_HUGE_FILE is not set
104
105#define MAX_LENGTH_OF_FILE_FULL_PATH 128
106
107
108#define EVENT_NAME_MAX_LEN 16
109
110#define ENABLE_TUYA_LAN 1
111
112#define TUYA_LAN_VERSION 0x8
113
114#define ENABLE_LAN_ENCRYPTION 1
115
116// CONFIG_ENABLE_RTSP_SERVER is not set
117
118#define STACK_SIZE_LAN 4096
119
120
121#define STACK_SIZE_UPGRADE 4096
122
123// CONFIG_ENABLE_TUYA_DIFF_OTA is not set
124
125// CONFIG_ENABLE_FIRMWARE_SIGN_TUYA is not set
126
127// CONFIG_ENABLE_FIRMWARE_SIGN_USER is not set
128
129
130// CONFIG_ENABLE_PRODUCT_AUTOTEST is not set
131
132#define STACK_SIZE_MF_TEST 5120
133
134#define ENABLE_LWIP 1
135
136#define LWIP_TCP_HEAD_ALLOC_REUSE_POLL 0
137
138#define LWIP_TUYA_APP_TCPIP_THREAD_SWITCH 1
139
140#define IPEF_TEST_OPTIMIZE 0
141
142#define MEM_SIZE 13312
143
144#define MEMP_NUM_UDP_PCB 6
145
146#define MEMP_NUM_TCP_PCB 10
147
148#define MEMP_NUM_TCP_PCB_LISTEN 5
149
150#define MEMP_NUM_NETCONN 21
151
152#define MEMP_NUM_PBUF 100
153
154#define MEMP_NUM_TCP_SEG 20
155
156#define IP_REASS_MAX_PBUFS 10
157
158#define PBUF_POOL_SIZE 20
159
160#define PBUF_LINK_ENCAPSULATION_HLEN 0
161
162#define TCP_SND_BUF 7300
163
164#define TCP_SND_QUEUELEN 20
165
166#define MEMP_NUM_NETBUF 8
167
168#define TCPIP_MBOX_SIZE 6
169
170#define DEFAULT_UDP_RECVMBOX_SIZE 6
171
172#define DEFAULT_TCP_RECVMBOX_SIZE 6
173
174#define DEFAULT_RAW_RECVMBOX_SIZE 6
175
176#define DEFAULT_ACCEPTMBOX_SIZE 6
177
178#define MEMP_NUM_SYS_TIMEOUT 10
179
180#define LWIP_SO_SNDTIMEO 1
181
182#define LWIP_SO_RCVTIMEO 1
183
184#define LWIP_SO_LINGER 1
185
186#define LWIP_TUYA_SO_LINGER_RST 1
187
188#define LWIP_PROVIDE_ERRNO 1
189
190#define LWIP_IPV6 0
191
192#define LWIP_NETIF_HOSTNAME 1
193
194#define LWIP_TCPIP_CORE_LOCKING 1
195
196#define LWIP_EAPOL_SUPPORT 0
197
198#define TCPIP_THREAD_STACKSIZE 2048
199
200#define TCPIP_THREAD_PRIO 9
201
202#define DHCPC_THREAD_STACKSIZE 2048
203
204#define DHCPC_THREAD_PRIO 5
205
206#define LWIP_TX_PBUF_ZERO_COPY 0
207
208#define CONFIG_TUYA_SOCK_SHIM 0
209
210#define SOCK_API_SYNC 0
211
212#define LWIP_DHCPC_STATIC_IPADDR_ENABLE 1
213
214#define LWIP_NETCONN_SEM_PER_THREAD 1
215
216#define ETHARP_SUPPORT_STATIC_ENTRIES 1
217
218#define LWIP_NETIF_STATUS_CALLBACK 1
219
220#define LWIP_COMPAT_MUTEX_ALLOWED 1
221
222#define LWIP_TIMEVAL_PRIVATE 1
223
224// CONFIG_IN_ADDR_T_DEFINED is not set
225
226#define LWIP_NETCONN_FULLDUPLEX 1
227
228#define MEM_LIBC_MALLOC 0
229
230#define ENABLE_BT_SERVICE 1
231
232#define ENABLE_BT_NETCFG 1
233
234#define ENABLE_BT_ACTIVE 1
235
236#define ENABLE_BT_CTRL 1
237
238#define BT_ADV_INTERVAL_MIN 30
239
240#define BT_ADV_INTERVAL_MAX 60
241
242#define ENABLE_BT_REMOTE_CTRL 1
243
244#define BT_REMOTE_CTRL_SCAN_INTERVAL 30
245
246#define BT_REMOTE_CTRL_SCAN_WINDOWS 10
247
248#define ENABLE_BT_TIMER 1
249
250#define ENABLE_BT_MF 1
251
252#define ENABLE_MF_BY_BT 1
253
254// CONFIG_ENABLE_BT_VIRTUAL is not set
255
256#define TUYA_BLE_VER 4
257
258#define ENABLE_TAL_BLUETOOTH 1
259
260#define TAL_BLUETOOTH 1
261
262#define TAL_BLE_SERVICE_VERSION 2
263
264#define ENABLE_TUYA_BLE_STACK 1
265
266#define TARGET_BT_PLATFORM 3
267
268#define TUYA_HS_BLE_HOST_TASK_PRIORITY 5
269
270#define TUYA_HS_BLE_HOST_STACK_SIZE 3072
271
272#define TY_BT_MOD 1
273
274#define BT_NETCFG 1
275
276#define BT_ACTIVE 1
277
278#define BT_CTRL 1
279
280#define BT_REMOTE_CTRL 1
281
282#define BT_TIMER 1
283
284#define MF_BT 1
285
286// CONFIG_BT_VIRTUAL is not set
287
288#define WIFI_GW 1
289
290// CONFIG_TUYA_HOSTAPD_SUPPORT is not set
291
292#define ENABLE_WIFI_SERVICE 1
293
294// CONFIG_ENABLE_WIFI_EZ is not set
295
296// CONFIG_ENABLE_WIFI_FFS is not set
297
298// CONFIG_ENABLE_WIFI_PEGASUS is not set
299
300#define ENABLE_WIFI_PROTECT 1
301
302#define ENABLE_WIFI_FFC 1
303
304
305// CONFIG_TUYA_WIFI_FFC_MASTER is not set
306
307#define TUYA_WIFI_FFC_SLAVER 1
308
309// CONFIG_ENABLE_HOSTAPD is not set
310
311#define ENABLE_STATION_AP_MODE 0
312
313#define WIFI_AP_BUF_SIZE 10240
314
315// CONFIG_QRCODE_ACTIVE_MODE is not set
316
317#define ENABLE_TUYA_CLOUD 1
318
319#define ENABLE_ASTRO_TIMER 1
320
321#define ENABLE_CALENDAR_TIMER 1
322
323// CONFIG_ENABLE_QRCODE_ACTIVE is not set
324
325#define ENABLE_DEVICE_DATA_COLLECT 1
326
327#define ENABLE_LOCAL_KEY_UPDATE 1
328
329#define ENABLE_COMMUNICATE_PRIORITY 1
330
331
332// CONFIG_ENABLE_BLACK_WHITE_LIST is not set
333
334#define MAX_SECURITY_LEVEL 0
335
336#define TUYA_SECURITY_LEVEL 0
337
338// CONFIG_ENABLE_MBEDTLS_DEBUG is not set
339
340// CONFIG_ENABLE_CUSTOM_CONFIG is not set
341
342
343#define HTTP_MAX_REQ_RESP_HDR_SIZE 1024
344
345#define MAX_HTTP_SESSION_NUM 16
346
347
348#define TUYA_MQ_VERSION 0x4
349
350#define STACK_SIZE_MQTT_CLIENT 4096
351
352#define QOS1_PUBACK_TIMEOUT 3
353
354#define QOS1_PUBLISH_SLOT_CNT 8
355
356#define QOS1_PUBACK_TIMEOUT_LIMIT 3
357
358#define MAX_RANDOM_DELAY_BEFORE_RECONNECT 300
359
360#define MQTT_HEATBEAT_INTERVAL 60
361
362#define MQTT_RECV_BUF_SIZE 512
363
364#define MQTT_MAX_MESSGAE_SIZE 4096
365
366#define MQTT_RECV_SELECT_TIMEOUT 3000
367
368// CONFIG_ENABLE_MQTT_QOS1_RESEND is not set
369
370// CONFIG_ENABLE_MATOP is not set
371
372#define MATOP_REQ_TIMEOUT 6
373
374#define TUYA_IOT_DEBUG 1
375
376
377#define STACK_SIZE_WORK_QUEUE 5120
378
379#define MAX_NODE_NUM_WORK_QUEUE 100
380
381#define STACK_SIZE_MSG_QUEUE 4096
382
383#define MAX_NODE_NUM_MSG_QUEUE 100
384
385#define ENABLE_IOT_DEBUG 1
386
387#define MAX_SIZE_OF_DEBUG_BUF 1024
388
389#define TUYA_REDUCE_BIN 2
390
391// CONFIG_ENABLE_WEBSOCKET is not set
392// Generated by Tuya (https://www.tuya.com)
393// 基于工具链 bk7231n (0.0.100-beta.3)
394
395
396#define OPERATING_SYSTEM 98
397
398#define LITTLE_END 1
399
400// CONFIG_ENABLE_FILE_SYSTEM is not set
401
402#define ENABLE_RTC 1
403
404#define ENABLE_ADC 1
405
406#define ENABLE_UART 1
407
408// CONFIG_ENABLE_UART_INTERRUPT is not set
409
410#define ENABLE_WATCHDOG 1
411
412#define ENABLE_FLASH 1
413
414#define TUYA_FLASH_TYPE_MAX_PARTITION_NUM 10
415
416#define ENABLE_PWM 1
417
418#define ENABLE_GPIO 1
419
420// CONFIG_ENABLE_I2C is not set
421
422#define ENABLE_SPI 1
423
424// CONFIG_ENABLE_ZIGBEE is not set
425
426#define ENABLE_WIFI 1
427
428// CONFIG_ENABLE_WIRED is not set
429
430#define ENABLE_TIMER 1
431
432// CONFIG_ENABLE_BLUETOOTH is not set
433
434#define ENABLE_HCI 1
435
436// CONFIG_ENABLE_DISPLAY is not set
437
438// CONFIG_ENABLE_MEDIA is not set
439
440// CONFIG_ENABLE_PM is not set
441
442// CONFIG_GPRS_GW is not set
443
444// CONFIG_TUYA_CAT1 is not set
445
446// CONFIG_ENABLE_CELLULAR is not set
447
448// CONFIG_ENABLE_STORAGE is not set
449
450// CONFIG_ENABLE_NB is not set
451
452// CONFIG_ENABLE_REGISTER is not set
453
454// CONFIG_ENABLE_DAC is not set
455
456// CONFIG_ENABLE_I2S is not set
457
458#define ENABLE_PINMUX 1
459
460// CONFIG_ENABLE_PLATFORM_AES is not set
461
462// CONFIG_ENABLE_PLATFORM_SHA256 is not set
463
464// CONFIG_ENABLE_PLATFORM_MD5 is not set
465
466// CONFIG_ENABLE_PLATFORM_SHA1 is not set
467
468// CONFIG_ENABLE_PLATFORM_RSA is not set
469
470// CONFIG_ENABLE_PLATFORM_ECC is not set
471
472// CONFIG_ENABLE_WAKEUP is not set
473#define KERNEL_VER "1.0.0"
474#ifndef TUYA_LAN_VERSION
475#define TUYA_LAN_VERSION TUYA_LAN_V35
476#endif
477
478#ifndef TUYA_MQ_VERSION
479#define TUYA_MQ_VERSION TUYA_MQ_V23
480#endif
481
482#ifndef ENABLE_DEVICE_DATA_COLLECT
483#define ENABLE_DEVICE_DATA_COLLECT 0
484#endif
485
486#ifndef TUYA_WEAK_ATTRIBUTE
487#define TUYA_WEAK_ATTRIBUTE __attribute__ ((weak))
488#endif
489
490/* custom settings */
491
492#ifdef __cplusplus
493}
494#endif
495
496
497#endif