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_05_09"
64#define BUILD_TIME "16_31_02"
65#define GIT_USER "ci_manage"
66#define IOT_SDK_VER "3.6.1"
67#define SDK_BETA_VER ""
68#define TARGET_PLATFORM "rtl8720cf_ameba"
69#define PROJECT_NAME "tuyaos-iot"
70#define SDK_ID "tuyaos-iot_3.6.1_rtl8720cf_ameba_rtl8720cf_wifi-ble-com_product_3.6.1"
71#define KERNEL_VER "1.0.1-beta.31"
72// Generated by Tuya (https://www.tuya.com)
73// 基于项目 tuyaos-iot (3.6.1-beta.15)
74// 基于工具链 rtl8720cf_ameba (3.6.1-beta.4)
75
76
77#define ENABLE_LOG 1
78
79#define STACK_SIZE_TIMERQ 4096
80
81// CONFIG_ENABLE_PRINTF_CHECK is not set
82
83// CONFIG_ENABLE_NETWORK_OPTIONS is not set
84
85
86#define STACK_SIZE_HEALTH_MONITOR 1536
87
88#define ENABLE_OSS_COMPILE_WARNINGS 1
89
90
91#define KV_PROTECTED_ENABLE 1
92
93// CONFIG_ENABLE_KV_FILE is not set
94
95#define ENABLE_KV_PROTECTED 1
96
97#define ENABLE_KV_KEY_SEED 1
98
99#define KV_KEY_SEED "8710_2M"
100
101
102// CONFIG_ENABLE_UF_HUGE_FILE is not set
103
104#define MAX_LENGTH_OF_FILE_FULL_PATH 128
105
106
107#define EVENT_NAME_MAX_LEN 16
108
109#define ENABLE_TUYA_LAN 1
110
111#define TUYA_LAN_VERSION 0x8
112
113#define ENABLE_LAN_ENCRYPTION 1
114
115// CONFIG_ENABLE_RTSP_SERVER is not set
116
117#define STACK_SIZE_LAN 4096
118
119
120#define STACK_SIZE_UPGRADE 4096
121
122// CONFIG_ENABLE_FIRMWARE_SIGN_TUYA is not set
123
124// CONFIG_ENABLE_FIRMWARE_SIGN_USER is not set
125
126
127#define ENABLE_PRODUCT_AUTOTEST 1
128
129#define STACK_SIZE_MF_TEST 5120
130
131#define ENABLE_LWIP 1
132
133#define LWIP_TCP_HEAD_ALLOC_REUSE_POLL 0
134
135#define LWIP_TUYA_APP_TCPIP_THREAD_SWITCH 1
136
137#define IPEF_TEST_OPTIMIZE 0
138
139#define MEM_SIZE (5*1024)
140
141#define MEMP_NUM_UDP_PCB 6
142
143#define MEMP_NUM_TCP_PCB 10
144
145#define MEMP_NUM_TCP_PCB_LISTEN 5
146
147#define MEMP_NUM_NETCONN 21
148
149#define MEMP_NUM_PBUF 100
150
151#define MEMP_NUM_TCP_SEG 20
152
153#define IP_REASS_MAX_PBUFS 10
154
155#define PBUF_POOL_SIZE 20
156
157#define PBUF_LINK_ENCAPSULATION_HLEN 400
158
159#define TCP_SND_BUF 7300
160
161#define TCP_SND_QUEUELEN 20
162
163#define MEMP_NUM_NETBUF 8
164
165#define TCPIP_MBOX_SIZE 6
166
167#define DEFAULT_UDP_RECVMBOX_SIZE 6
168
169#define DEFAULT_TCP_RECVMBOX_SIZE 6
170
171#define DEFAULT_RAW_RECVMBOX_SIZE 6
172
173#define DEFAULT_ACCEPTMBOX_SIZE 6
174
175#define MEMP_NUM_SYS_TIMEOUT 10
176
177#define LWIP_SO_SNDTIMEO 1
178
179#define LWIP_SO_RCVTIMEO 1
180
181#define LWIP_SO_LINGER 1
182
183#define LWIP_TUYA_SO_LINGER_RST 1
184
185#define LWIP_PROVIDE_ERRNO 1
186
187#define LWIP_IPV6 0
188
189#define LWIP_NETIF_HOSTNAME 1
190
191#define LWIP_TCPIP_CORE_LOCKING 1
192
193#define LWIP_EAPOL_SUPPORT 0
194
195#define TCPIP_THREAD_STACKSIZE 2048
196
197#define TCPIP_THREAD_PRIO 9
198
199#define DHCPC_THREAD_STACKSIZE 2048
200
201#define DHCPC_THREAD_PRIO 5
202
203#define LWIP_TX_PBUF_ZERO_COPY 0
204
205#define CONFIG_TUYA_SOCK_SHIM 0
206
207#define SOCK_API_SYNC 0
208
209#define LWIP_DHCPC_STATIC_IPADDR_ENABLE 0
210
211#define LWIP_NETCONN_SEM_PER_THREAD 1
212
213#define ETHARP_SUPPORT_STATIC_ENTRIES 1
214
215#define LWIP_NETIF_STATUS_CALLBACK 0
216
217#define LWIP_COMPAT_MUTEX_ALLOWED 1
218
219#define LWIP_TIMEVAL_PRIVATE 0
220
221#define IN_ADDR_T_DEFINED 1
222
223#define LWIP_NETCONN_FULLDUPLEX 1
224
225#define MEM_LIBC_MALLOC 1
226
227#define ENABLE_BT_SERVICE 1
228
229#define ENABLE_BT_NETCFG 1
230
231#define ENABLE_BT_ACTIVE 1
232
233#define ENABLE_BT_CTRL 1
234
235#define BT_ADV_INTERVAL_MIN 30
236
237#define BT_ADV_INTERVAL_MAX 60
238
239#define ENABLE_BT_REMOTE_CTRL 1
240
241#define BT_REMOTE_CTRL_SCAN_INTERVAL 520
242
243#define BT_REMOTE_CTRL_SCAN_WINDOWS 520
244
245#define ENABLE_BT_TIMER 1
246
247#define ENABLE_BT_MF 1
248
249#define ENABLE_MF_BY_BT 1
250
251// CONFIG_ENABLE_BT_VIRTUAL is not set
252
253#define TUYA_BLE_VER 4
254
255#define ENABLE_TAL_BLUETOOTH 1
256
257#define TAL_BLUETOOTH 1
258
259#define TAL_BLE_SERVICE_VERSION 2
260
261#define ENABLE_TUYA_BLE_STACK 1
262
263#define TARGET_BT_PLATFORM 1
264
265#define TUYA_HS_BLE_HOST_TASK_PRIORITY 9
266
267#define TUYA_HS_BLE_HOST_STACK_SIZE 5120
268
269#define TY_BT_MOD 1
270
271#define BT_NETCFG 1
272
273#define BT_ACTIVE 1
274
275#define BT_CTRL 1
276
277#define BT_REMOTE_CTRL 1
278
279#define BT_TIMER 1
280
281#define MF_BT 1
282
283// CONFIG_BT_VIRTUAL is not set
284
285#define WIFI_GW 1
286
287// CONFIG_TUYA_HOSTAPD_SUPPORT is not set
288
289#define ENABLE_WIFI_SERVICE 1
290
291// CONFIG_ENABLE_WIFI_EZ is not set
292
293// CONFIG_ENABLE_WIFI_FFS is not set
294
295// CONFIG_ENABLE_WIFI_PEGASUS is not set
296
297#define ENABLE_WIFI_PROTECT 1
298
299#define ENABLE_WIFI_FFC 1
300
301
302// CONFIG_TUYA_WIFI_FFC_MASTER is not set
303
304#define TUYA_WIFI_FFC_SLAVER 1
305
306// CONFIG_ENABLE_HOSTAPD is not set
307
308#define ENABLE_STATION_AP_MODE 0
309
310#define WIFI_AP_BUF_SIZE 10240
311
312// CONFIG_QRCODE_ACTIVE_MODE is not set
313
314#define ENABLE_TUYA_CLOUD 1
315
316#define ENABLE_ASTRO_TIMER 1
317
318#define ENABLE_CALENDAR_TIMER 1
319
320// CONFIG_ENABLE_QRCODE_ACTIVE is not set
321
322#define ENABLE_DEVICE_DATA_COLLECT 1
323
324// CONFIG_ENABLE_LOCAL_KEY_UPDATE is not set
325
326#define ENABLE_COMMUNICATE_PRIORITY 1
327
328
329// CONFIG_ENABLE_BLACK_WHITE_LIST is not set
330
331#define MAX_SECURITY_LEVEL 0
332
333#define TUYA_SECURITY_LEVEL 0
334
335// CONFIG_ENABLE_MBEDTLS_DEBUG is not set
336
337// CONFIG_ENABLE_CUSTOM_CONFIG is not set
338
339
340#define HTTP_MAX_REQ_RESP_HDR_SIZE 1024
341
342#define MAX_HTTP_SESSION_NUM 16
343
344
345#define TUYA_MQ_VERSION 0x4
346
347#define STACK_SIZE_MQTT_CLIENT 4096
348
349#define QOS1_PUBACK_TIMEOUT 3
350
351#define QOS1_PUBLISH_SLOT_CNT 8
352
353#define QOS1_PUBACK_TIMEOUT_LIMIT 3
354
355#define MAX_RANDOM_DELAY_BEFORE_RECONNECT 300
356
357#define MQTT_HEATBEAT_INTERVAL 60
358
359#define MQTT_RECV_BUF_SIZE 512
360
361#define MQTT_MAX_MESSGAE_SIZE 4096
362
363#define MQTT_RECV_SELECT_TIMEOUT 3000
364
365// CONFIG_ENABLE_MQTT_QOS1_RESEND is not set
366
367#define TUYA_IOT_DEBUG 1
368
369
370#define STACK_SIZE_WORK_QUEUE 5120
371
372#define MAX_NODE_NUM_WORK_QUEUE 100
373
374#define STACK_SIZE_MSG_QUEUE 4096
375
376#define MAX_NODE_NUM_MSG_QUEUE 100
377
378#define ENABLE_IOT_DEBUG 1
379
380#define TUYA_REDUCE_BIN 2
381
382// CONFIG_ENABLE_WEBSOCKET is not set
383
384
385#define OPERATING_SYSTEM 98
386
387#define LITTLE_END 1
388
389// CONFIG_ENABLE_FILE_SYSTEM is not set
390
391#define ENABLE_RTC 1
392
393// CONFIG_ENABLE_ADC is not set
394
395#define ENABLE_UART 1
396
397// CONFIG_ENABLE_UART_INTERRUPT is not set
398
399#define ENABLE_WATCHDOG 1
400
401#define ENABLE_FLASH 1
402
403#define TUYA_FLASH_TYPE_MAX_PARTITION_NUM 10
404
405#define ENABLE_PWM 1
406
407#define ENABLE_GPIO 1
408
409// CONFIG_ENABLE_I2C is not set
410
411#define ENABLE_SPI 1
412
413// CONFIG_ENABLE_ZIGBEE is not set
414
415#define ENABLE_WIFI 1
416
417// CONFIG_ENABLE_WIRED is not set
418
419#define ENABLE_TIMER 1
420
421// CONFIG_ENABLE_BLUETOOTH is not set
422
423#define ENABLE_HCI 1
424
425// CONFIG_ENABLE_DISPLAY is not set
426
427// CONFIG_ENABLE_MEDIA is not set
428
429// CONFIG_ENABLE_PM is not set
430
431// CONFIG_GPRS_GW is not set
432
433// CONFIG_TUYA_CAT1 is not set
434
435// CONFIG_ENABLE_CELLULAR is not set
436
437// CONFIG_ENABLE_STORAGE is not set
438
439// CONFIG_ENABLE_NB is not set
440
441// CONFIG_ENABLE_REGISTER is not set
442
443// CONFIG_ENABLE_DAC is not set
444
445// CONFIG_ENABLE_I2S is not set
446
447// CONFIG_ENABLE_PINMUX is not set
448
449// CONFIG_ENABLE_PLATFORM_AES is not set
450
451// CONFIG_ENABLE_PLATFORM_SHA256 is not set
452
453// CONFIG_ENABLE_PLATFORM_MD5 is not set
454
455// CONFIG_ENABLE_PLATFORM_SHA1 is not set
456
457// CONFIG_ENABLE_PLATFORM_RSA is not set
458
459// CONFIG_ENABLE_PLATFORM_ECC is not set
460
461// CONFIG_ENABLE_WAKEUP is not set
462
463
464//
465// VENDOR
466//
467
468#define ENABLE_RTL8720CF_PLATFORM_CONFIG 1
469
470#define ENABLE_WIFI_WPA3 1
471
472#define ENABLE_PLATFORM_CLT_TEST 0
473
474#define FLASH_SIZE 2
475
476#define OTA_MODE 0
477
478// end of VENDOR
479#ifndef TUYA_LAN_VERSION
480#define TUYA_LAN_VERSION TUYA_LAN_V35
481#endif
482
483#ifndef TUYA_MQ_VERSION
484#define TUYA_MQ_VERSION TUYA_MQ_V23
485#endif
486
487#ifndef ENABLE_DEVICE_DATA_COLLECT
488#define ENABLE_DEVICE_DATA_COLLECT 0
489#endif
490
491#ifndef TUYA_WEAK_ATTRIBUTE
492#define TUYA_WEAK_ATTRIBUTE __attribute__ ((weak))
493#endif
494
495/* custom settings */
496
497#ifdef __cplusplus
498}
499#endif
500
501
502#endif