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