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_06_09"
60#define BUILD_TIME "15_34_28"
61#define GIT_USER "ci_manage"
62#define IOT_SDK_VER "3.3.1"
63#define SDK_BETA_VER ""
64#define TARGET_PLATFORM "rtl8720cf_ameba"
65#define PROJECT_NAME "tuyaos-iot"
66#define SDK_ID "tuyaos-iot_3.3.1_rtl8720cf_ameba_rtl8720cm_wifi-ble-com_2.3.11"
67#define KERNEL_VER "0.0.1"
68// Generated by Tuya (https://www.tuya.com)
69// 基于项目 tuyaos-iot (3.3.1-beta.55)
70// 基于工具链 rtl8720cf_ameba (2.3.11-beta.2)
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 0
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// CONFIG_ENABLE_LWIP is not set
113
114#define ENABLE_BT_SERVICE 1
115
116#define ENABLE_BT_NETCFG 1
117
118#define ENABLE_BT_ACTIVE 1
119
120#define ENABLE_BT_CTRL 1
121
122#define ENABLE_BT_REMOTE_CTRL 1
123
124#define ENABLE_BT_TIMER 1
125
126#define ENABLE_BT_MF 1
127
128// CONFIG_ENABLE_BT_VIRTUAL is not set
129
130#define TUYA_BLE_VER 3
131
132#define ENABLE_TAL_BLUETOOTH 1
133
134#define TAL_BLUETOOTH 1
135
136#define TAL_BLE_SERVICE_VERSION 1
137
138#define ENABLE_TUYA_BLE_STACK 1
139
140#define TARGET_BT_PLATFORM 1
141
142#define TY_BT_MOD 1
143
144#define BT_NETCFG 1
145
146#define BT_ACTIVE 1
147
148#define BT_CTRL 1
149
150#define BT_REMOTE_CTRL 1
151
152#define BT_TIMER 1
153
154#define MF_BT 1
155
156// CONFIG_BT_VIRTUAL is not set
157
158#define WIFI_GW 1
159
160// CONFIG_TUYA_HOSTAPD_SUPPORT is not set
161
162#define ENABLE_WIFI_SERVICE 1
163
164// CONFIG_ENABLE_WIFI_FFS is not set
165
166// CONFIG_ENABLE_WIFI_PEGASUS is not set
167
168#define ENABLE_WIFI_PROTECT 1
169
170// CONFIG_ENABLE_WIFI_FFC is not set
171
172// CONFIG_ENABLE_HOSTAPD is not set
173
174// CONFIG_QRCODE_ACTIVE_MODE is not set
175
176#define ENABLE_TUYA_CLOUD 1
177
178#define TLS_MODE 2
179
180#define TLS_SESSION 1
181
182#define ENABLE_ASTRO_TIMER 1
183
184#define ENABLE_CALENDAR_TIMER 1
185
186// CONFIG_ENABLE_HTTP_TRUNK is not set
187
188// CONFIG_ENABLE_QRCODE_ACTIVE is not set
189
190// CONFIG_ENABLE_DEVICE_DATA_COLLECT is not set
191
192// CONFIG_ENABLE_LOCAL_KEY_UPDATE is not set
193
194#define ENABLE_COMMUNICATE_PRIORITY 1
195
196#define STACK_SIZE_MQTT_CLIENT 4096
197
198
199#define STACK_SIZE_WORK_QUEUE 5120
200
201#define MAX_NODE_NUM_WORK_QUEUE 100
202
203#define STACK_SIZE_MSG_QUEUE 4096
204
205#define MAX_NODE_NUM_MSG_QUEUE 100
206
207// CONFIG_ENABLE_WEBSOCKET is not set
208
209
210#define OPERATING_SYSTEM 98
211
212#define LITTLE_END 1
213
214// CONFIG_ENABLE_FILE_SYSTEM is not set
215
216#define ENABLE_RTC 1
217
218// CONFIG_ENABLE_ADC is not set
219
220#define ENABLE_UART 1
221
222// CONFIG_ENABLE_UART_INTERRUPT is not set
223
224#define ENABLE_WATCHDOG 1
225
226#define ENABLE_FLASH 1
227
228#define TUYA_FLASH_TYPE_MAX_PARTITION_NUM 10
229
230#define ENABLE_PWM 1
231
232#define ENABLE_GPIO 1
233
234// CONFIG_ENABLE_I2C is not set
235
236// CONFIG_ENABLE_SPI is not set
237
238// CONFIG_ENABLE_ZIGBEE is not set
239
240#define ENABLE_WIFI 1
241
242// CONFIG_ENABLE_WIRED is not set
243
244#define ENABLE_TIMER 1
245
246// CONFIG_ENABLE_BLUETOOTH is not set
247
248#define ENABLE_HCI 1
249
250// CONFIG_ENABLE_DISPLAY is not set
251
252// CONFIG_ENABLE_MEDIA is not set
253
254// CONFIG_ENABLE_PM is not set
255
256// CONFIG_GPRS_GW is not set
257
258// CONFIG_TUYA_CAT1 is not set
259
260// CONFIG_ENABLE_CELLULAR is not set
261
262// CONFIG_ENABLE_STORAGE is not set
263
264// CONFIG_ENABLE_NB is not set
265
266// CONFIG_ENABLE_REGISTER is not set
267
268// CONFIG_ENABLE_DAC is not set
269
270// CONFIG_ENABLE_I2S is not set
271
272
273// CONFIG_ENABLE_PLATFORM_AES is not set
274
275// CONFIG_ENABLE_PLATFORM_SHA256 is not set
276
277// CONFIG_ENABLE_PLATFORM_MD5 is not set
278
279// CONFIG_ENABLE_PLATFORM_SHA1 is not set
280
281// CONFIG_ENABLE_PLATFORM_RSA is not set
282
283// CONFIG_ENABLE_PLATFORM_ECC is not set
284
285
286//
287// VENDOR
288//
289
290#define ENABLE_RTL8720CF_PLATFORM_CONFIG 1
291
292#define ENABLE_WIFI_WPA3 1
293
294#define ENABLE_PLATFORM_CLT_TEST 0
295
296#define FLASH_SIZE 4
297
298#define OTA_MODE 0
299
300// end of VENDOR
301#ifndef TUYA_LAN_VERSION
302#define TUYA_LAN_VERSION TUYA_LAN_V35
303#endif
304
305#ifndef TUYA_MQ_VERSION
306#define TUYA_MQ_VERSION TUYA_MQ_V23
307#endif
308
309#ifndef ENABLE_DEVICE_DATA_COLLECT
310#define ENABLE_DEVICE_DATA_COLLECT 0
311#endif
312
313#ifndef TUYA_WEAK_ATTRIBUTE
314#define TUYA_WEAK_ATTRIBUTE __attribute__ ((weak))
315#endif
316
317/* custom settings */
318
319#ifdef __cplusplus
320}
321#endif
322
323
324#endif