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_01_06"
64#define BUILD_TIME "17_04_35"
65#define GIT_USER "ci_manage"
66#define IOT_SDK_VER "3.3.30"
67#define SDK_BETA_VER ""
68#define TARGET_PLATFORM "bk7231n"
69#define PROJECT_NAME "tuyaos-iot"
70#define SDK_ID "tuyaos-iot_3.3.30_bk7231n_bk7231n-wifi-ble-com_0.0.33"
71#define KERNEL_VER "0.0.1-beta.582"
72// Generated by Tuya (https://www.tuya.com)
73// 基于项目 tuyaos-iot (3.3.30-beta.2)
74// 基于工具链 bk7231n (0.0.32-beta.4)
75
76#define ENABLE_COMPATIBLE 1
77
78#define KV_FILE 0
79
80#define TUYA_IOT_DEBUG 1
81
82#define TUYA_REDUCE_BIN 2
83
84
85#define ENABLE_LOG 1
86
87
88#define STACK_SIZE_HEALTH_MONITOR 1536
89
90
91#define KV_PROTECTED_ENABLE 1
92
93#define ENABLE_KV_PROTECTED 1
94
95#define ENABLE_KV_KEY_SEED 1
96
97#define KV_KEY_SEED "8710_2M"
98
99
100// CONFIG_ENABLE_UF_HUGE_FILE is not set
101
102
103#define EVENT_NAME_MAX_LEN 16
104
105#define ENABLE_TUYA_LAN 1
106
107#define ENABLE_LAN_ENCRYPTION 1
108
109// CONFIG_ENABLE_RTSP_SERVER is not set
110
111#define STACK_SIZE_LAN 4096
112
113
114// CONFIG_ENABLE_PRODUCT_AUTOTEST is not set
115
116#define ENABLE_LWIP 1
117
118#define LWIP_TCP_HEAD_ALLOC_REUSE_POLL 0
119
120#define LWIP_TUYA_APP_TCPIP_THREAD_SWITCH 1
121
122#define IPEF_TEST_OPTIMIZE 0
123
124#define MEM_SIZE 32768
125
126#define MEMP_NUM_UDP_PCB 6
127
128#define MEMP_NUM_TCP_PCB 10
129
130#define MEMP_NUM_TCP_PCB_LISTEN 5
131
132#define MEMP_NUM_NETCONN 21
133
134#define MEMP_NUM_PBUF 100
135
136#define MEMP_NUM_TCP_SEG 20
137
138#define IP_REASS_MAX_PBUFS 10
139
140#define PBUF_POOL_SIZE 20
141
142#define PBUF_LINK_ENCAPSULATION_HLEN 400
143
144#define TCP_SND_BUF 7300
145
146#define TCP_SND_QUEUELEN 20
147
148#define MEMP_NUM_NETBUF 8
149
150#define TCPIP_MBOX_SIZE 6
151
152#define DEFAULT_UDP_RECVMBOX_SIZE 6
153
154#define DEFAULT_TCP_RECVMBOX_SIZE 6
155
156#define DEFAULT_RAW_RECVMBOX_SIZE 6
157
158#define DEFAULT_ACCEPTMBOX_SIZE 6
159
160#define MEMP_NUM_SYS_TIMEOUT 10
161
162#define LWIP_SO_SNDTIMEO 1
163
164#define LWIP_SO_RCVTIMEO 1
165
166#define LWIP_SO_LINGER 1
167
168#define LWIP_TUYA_SO_LINGER_RST 1
169
170#define LWIP_PROVIDE_ERRNO 1
171
172#define LWIP_IPV6 0
173
174#define LWIP_NETIF_HOSTNAME 1
175
176#define LWIP_TCPIP_CORE_LOCKING 1
177
178#define LWIP_EAPOL_SUPPORT 0
179
180#define TCPIP_THREAD_STACKSIZE 2048
181
182#define TCPIP_THREAD_PRIO 9
183
184#define DHCPC_THREAD_STACKSIZE 2048
185
186#define DHCPC_THREAD_PRIO 5
187
188#define LWIP_TX_PBUF_ZERO_COPY 1
189
190#define CONFIG_TUYA_SOCK_SHIM 1
191
192#define SOCK_API_SYNC 1
193
194#define LWIP_DHCPC_STATIC_IPADDR_ENABLE 1
195
196#define LWIP_NETCONN_SEM_PER_THREAD 1
197
198#define ETHARP_SUPPORT_STATIC_ENTRIES 1
199
200#define LWIP_NETIF_STATUS_CALLBACK 1
201
202#define LWIP_COMPAT_MUTEX_ALLOWED 1
203
204#define LWIP_TIMEVAL_PRIVATE 1
205
206// CONFIG_IN_ADDR_T_DEFINED is not set
207
208#define LWIP_NETCONN_FULLDUPLEX 0
209
210#define ENABLE_BT_SERVICE 1
211
212#define ENABLE_BT_NETCFG 1
213
214#define ENABLE_BT_ACTIVE 1
215
216#define ENABLE_BT_CTRL 1
217
218#define ENABLE_BT_REMOTE_CTRL 1
219
220// CONFIG_ENABLE_BT_TIMER is not set
221
222#define ENABLE_BT_MF 1
223
224// CONFIG_ENABLE_BT_VIRTUAL is not set
225
226#define TUYA_BLE_VER 3
227
228#define ENABLE_TAL_BLUETOOTH 1
229
230#define TAL_BLUETOOTH 1
231
232#define TAL_BLE_SERVICE_VERSION 1
233
234#define ENABLE_TUYA_BLE_STACK 1
235
236#define TARGET_BT_PLATFORM 3
237
238#define TUYA_HS_BLE_HOST_TASK_PRIORITY 9
239
240#define TY_BT_MOD 1
241
242#define BT_NETCFG 1
243
244#define BT_ACTIVE 1
245
246#define BT_CTRL 1
247
248#define BT_REMOTE_CTRL 1
249
250// CONFIG_BT_TIMER is not set
251
252#define MF_BT 1
253
254// CONFIG_BT_VIRTUAL is not set
255
256#define WIFI_GW 1
257
258// CONFIG_TUYA_HOSTAPD_SUPPORT is not set
259
260#define ENABLE_WIFI_SERVICE 1
261
262// CONFIG_ENABLE_WIFI_FFS is not set
263
264// CONFIG_ENABLE_WIFI_PEGASUS is not set
265
266#define ENABLE_WIFI_PROTECT 1
267
268#define ENABLE_WIFI_FFC 1
269
270
271// CONFIG_TUYA_WIFI_FFC_MASTER is not set
272
273#define TUYA_WIFI_FFC_SLAVER 1
274
275// CONFIG_ENABLE_HOSTAPD is not set
276
277// CONFIG_QRCODE_ACTIVE_MODE is not set
278
279#define ENABLE_TUYA_CLOUD 1
280
281#define TLS_MODE 2
282
283#define TLS_SESSION 1
284
285#define ENABLE_ASTRO_TIMER 1
286
287#define ENABLE_CALENDAR_TIMER 1
288
289// CONFIG_ENABLE_HTTP_TRUNK is not set
290
291// CONFIG_ENABLE_QRCODE_ACTIVE is not set
292
293// CONFIG_ENABLE_DEVICE_DATA_COLLECT is not set
294
295#define ENABLE_LOCAL_KEY_UPDATE 1
296
297// CONFIG_ENABLE_COMMUNICATE_PRIORITY is not set
298
299#define STACK_SIZE_MQTT_CLIENT 4096
300
301#define MAX_RANDOM_DELAY_BEFORE_RECONNECT 300
302
303#define MQTT_MAX_MESSGAE_SIZE 4096
304
305
306#define STACK_SIZE_WORK_QUEUE 5120
307
308#define MAX_NODE_NUM_WORK_QUEUE 100
309
310#define STACK_SIZE_MSG_QUEUE 4096
311
312#define MAX_NODE_NUM_MSG_QUEUE 100
313
314// CONFIG_ENABLE_WEBSOCKET is not set
315// Generated by Tuya (https://www.tuya.com)
316// 基于工具链 bk7231n (0.0.100-beta.3)
317
318
319#define OPERATING_SYSTEM 98
320
321#define LITTLE_END 1
322
323// CONFIG_ENABLE_FILE_SYSTEM is not set
324
325#define ENABLE_RTC 1
326
327#define ENABLE_ADC 1
328
329#define ENABLE_UART 1
330
331// CONFIG_ENABLE_UART_INTERRUPT is not set
332
333#define ENABLE_WATCHDOG 1
334
335#define ENABLE_FLASH 1
336
337#define TUYA_FLASH_TYPE_MAX_PARTITION_NUM 10
338
339#define ENABLE_PWM 1
340
341#define ENABLE_GPIO 1
342
343// CONFIG_ENABLE_I2C is not set
344
345#define ENABLE_SPI 1
346
347// CONFIG_ENABLE_ZIGBEE is not set
348
349#define ENABLE_WIFI 1
350
351// CONFIG_ENABLE_WIRED is not set
352
353#define ENABLE_TIMER 1
354
355// CONFIG_ENABLE_BLUETOOTH is not set
356
357#define ENABLE_HCI 1
358
359// CONFIG_ENABLE_DISPLAY is not set
360
361// CONFIG_ENABLE_MEDIA is not set
362
363// CONFIG_ENABLE_PM is not set
364
365// CONFIG_GPRS_GW is not set
366
367// CONFIG_TUYA_CAT1 is not set
368
369// CONFIG_ENABLE_CELLULAR is not set
370
371// CONFIG_ENABLE_STORAGE is not set
372
373// CONFIG_ENABLE_NB is not set
374
375// CONFIG_ENABLE_REGISTER is not set
376
377// CONFIG_ENABLE_DAC is not set
378
379// CONFIG_ENABLE_I2S is not set
380
381#define ENABLE_PINMUX 1
382
383// CONFIG_ENABLE_PLATFORM_AES is not set
384
385// CONFIG_ENABLE_PLATFORM_SHA256 is not set
386
387// CONFIG_ENABLE_PLATFORM_MD5 is not set
388
389// CONFIG_ENABLE_PLATFORM_SHA1 is not set
390
391// CONFIG_ENABLE_PLATFORM_RSA is not set
392
393// CONFIG_ENABLE_PLATFORM_ECC is not set
394
395// CONFIG_ENABLE_WAKEUP is not set
396#ifndef TUYA_LAN_VERSION
397#define TUYA_LAN_VERSION TUYA_LAN_V35
398#endif
399
400#ifndef TUYA_MQ_VERSION
401#define TUYA_MQ_VERSION TUYA_MQ_V23
402#endif
403
404#ifndef ENABLE_DEVICE_DATA_COLLECT
405#define ENABLE_DEVICE_DATA_COLLECT 0
406#endif
407
408#ifndef TUYA_WEAK_ATTRIBUTE
409#define TUYA_WEAK_ATTRIBUTE __attribute__ ((weak))
410#endif
411
412/* custom settings */
413
414#ifdef __cplusplus
415}
416#endif
417
418
419#endif