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