TuyaOS
IoT SDK 资源统计
module file text data bss total
components/base_event base_event.c 1510 0 28 1538
total 1510 0 28 1538
components/tal_system_service uni_log.c 228 0 0 228
uni_random.c 217 0 4 221
mix_method.c 812 0 1 813
tuya_base_utilities.c 203 0 4 207
tal_time_serivce.c 1682 0 80 1762
tal_workq_service.c 522 0 8 530
total 3664 0 97 3761
components/lib_mqtt libemqtt.c 2712 0 0 2712
total 2712 0 0 2712
components/tal_compatible tuya_hal_storage.c 324 0 64 388
com_mmod.c 1517 0 20 1537
uni_fs.c 486 0 0 486
tuya_hal_bt.c 1413 0 90 1503
tuya_hal_system.c 152 0 0 152
tuya_driver.c 186 0 0 186
ty_work_queue.c 92 0 4 96
uni_queue.c 642 0 0 642
total 4812 0 178 4990
components/svc_api_wired tuya_iot_base_api.c 1356 1 4 1361
total 1356 1 4 1361
components/svc_dp smart_frame.c 15894 0 93 15987
sf_mqc_cb.c 318 0 0 318
total 16212 0 93 16305
components/base_security tuya_sha256.c 318 0 0 318
aes_inf.c 1944 0 40 1984
crc32i.c 1088 0 0 1088
uni_md5.c 64 0 0 64
crc_8.c 288 0 0 288
crc_16.c 70 0 0 70
apr_sha1.c 2784 0 0 2784
uni_base64.c 80 0 0 80
total 6636 0 40 6676
components/tal_bluetooth tuya_ble_mempool.c 1075 0 40 1115
ble_att_svr.c 5525 0 846 6371
ble_hs_pvcy.c 538 0 17 555
ble_hs_stop.c 774 0 37 811
ble_hs_atomic.c 188 0 0 188
ble_hs_periodic_sync.c 0 0 0 0
ble_hs_adv.c 2157 0 129 2286
ble_hs_hci_evt.c 1431 0 0 1431
ble_gatts.c 4216 20 54 4290
ble_l2cap.c 1101 0 84 1185
ble_svc_gap.c 584 116 2 702
ble_hs_hci.c 1403 0 343 1746
ble_hs_misc.c 100 0 0 100
ble_att.c 646 0 2 648
ble_hs_hci_util.c 511 0 0 511
ble_svc_gatt.c 472 56 6 534
addr.c 120 0 0 120
ble_sm_alg.c 0 0 0 0
ble_hs_shutdown.c 125 0 12 137
ble_hs_mbuf.c 312 0 0 312
tuya_ble_mbuf.c 2862 8 0 2870
tuya_ble_peer.c 2166 0 132 2298
tuya_ble_hs_mem.c 1050 0 332 1382
ble_sm_lgcy.c 0 0 0 0
ble_monitor.c 0 0 0 0
tuya_hs_port.c 219 0 20 239
ble_hs_startup.c 876 0 0 876
ble_sm_sc.c 0 0 0 0
ble_gap.c 7029 0 108 7137
ble_gatts_lcl.c 0 0 0 0
ble_hs_id.c 528 0 12 540
ble_hs.c 2177 0 100 2277
ble_hs_mqueue.c 166 0 0 166
ble_att_clt.c 1638 0 0 1638
ble_hs_conn.c 1182 0 38 1220
ble_sm_cmd.c 80 0 0 80
ble_hs_log.c 4 0 0 4
ble_hs_cfg.c 0 40 0 40
ble_uuid.c 701 0 0 701
ble_hs_endian.c 360 0 0 360
ble_hs_hci_cmd.c 173 0 0 173
ble_hs_flow.c 8 0 0 8
ble_l2cap_sig_cmd.c 204 0 0 204
ble_l2cap_coc.c 0 0 0 0
ble_sm.c 86 0 0 86
ble_l2cap_sig.c 1238 0 57 1295
ble_gattc.c 7290 0 268 7558
ble_store_util.c 360 0 0 360
ble_store.c 618 0 0 618
tuya_ble_os_adapter.c 1338 0 8 1346
ble_att_cmd.c 650 0 0 650
tuya_bt_stack_adapter.c 0 0 0 0
ble_ibeacon.c 132 0 0 132
ble_eddystone.c 312 0 38 350
tuya_ble_cli_svc.c 212 0 0 212
tkl_bluetooth.c 5881 0 1514 7395
tal_bluetooth.c 2036 2 302 2340
total 62854 242 4501 67597
components/base_db simple_flash_protected.c 2751 0 0 2751
kv_storge.c 682 0 8 690
simple_flash_app.c 1710 0 4 1714
simple_flash.c 11094 0 4 11098
tuya_ws_db.c 2204 0 0 2204
total 18441 0 16 18457
components/lib_cJSON ty_cJSON.c 4491 0 4 4495
total 4491 0 4 4495
components/svc_tuya_cloud cloud_storage.c 3746 0 0 3746
iot_httpc.c 22954 0 4 22958
cipher_wrapper.c 909 0 0 909
com_protocol.c 2837 0 0 2837
svc_online_log_db.c 147 0 0 147
svc_online_log_mqtt.c 206 0 0 206
tuya_svc_online_log.c 2832 4 140 2976
svc_online_log_http.c 4 0 0 4
svc_netcfg_qrcode.c 1042 0 12 1054
uni_network.c 2628 0 144 2772
tuya_tls.c 6433 8 3044 9485
astro_timer.c 4297 0 4 4301
tuya_svc_timer_task.c 8945 0 48 8993
log_seq.c 4102 0 212 4314
mqtt_client.c 9935 2 4 9941
tuya_svc_mqtt_direct.c 1791 0 28 1819
mqc_app.c 7241 0 492 7733
total 80049 14 4132 84195
components/tal_media tal_audio.c 1386 0 0 1386
tal_video_in.c 704 0 0 704
tal_video_enc.c 417 0 0 417
total 2507 0 0 2507
components/svc_mf_test mf_test.c 2015 4 20 2039
basic_test.c 4902 0 20 4922
wifi_test.c 1209 0 0 1209
mf_test_suite.c 52 0 0 52
ota_download_test.c 1575 0 36 1611
gpio_test.c 714 4 0 718
wifi6_test.c 2 0 0 2
bt_test.c 1065 0 0 1065
cat1_test.c 0 0 0 0
homekit_test.c 0 0 0 0
ffs_test.c 4 0 0 4
mf_core.c 907 0 8 915
total 12445 8 84 12537
components/svc_wired base_nw_intf.c 40 0 0 40
tuya_svc_wired.c 421 0 5 426
total 461 0 5 466
components/lib_transport tcp_transporter.c 891 0 0 891
tuya_transport.c 372 0 0 372
websocket_transporter.c 0 0 0 0
tls_transporter.c 642 0 0 642
total 1905 0 0 1905
components/svc_rpc rpc_base.c 2153 0 0 2153
rpc_pipe.c 597 0 0 597
rpc_node.c 735 0 0 735
svc_rpc.c 5122 0 0 5122
json_rpc.c 2464 0 0 2464
total 11071 0 0 11071
components/svc_wifi_ffc ffc_frame.c 1153 4 4 1161
ffc_master.c 5777 0 0 5777
ffc_slave.c 9405 0 0 9405
ffc_app.c 1529 140 1 1670
ffc_slaver_fittings.c 1559 0 8 1567
ffc_slaver_scene.c 2452 0 124 2576
total 21875 144 137 22156
components/tal_wired tal_wired.c 100 0 0 100
total 100 0 0 100
components/tal_network tal_network.c 1112 0 0 1112
total 1112 0 0 1112
components/svc_bt tuya_ble_mutli_tsf_protocol.c 1654 2 1 1657
bt_netcfg.c 363 0 8 371
bt_dp.c 2859 0 12 2871
tuya_xxtea.c 494 0 0 494
tuya_bt_sdk.c 1276 0 56 1332
tuya_bt_link.c 1068 28 0 1096
tuya_ble_api.c 5331 49 196 5576
tuya_ble_data_handler.c 3510 4 59 3573
device_id_compress.c 282 0 0 282
tuya_ble_rmt_ctrl.c 11314 8 82 11404
tuya_ble_cryption_api.c 1497 0 224 1721
tuya_ble_active.c 2605 0 20 2625
tuya_ble_timer_task.c 2145 0 32 2177
total 34398 91 690 35179
components/svc_api_iot tuya_iot_dev_check.c 2359 0 0 2359
tuya_iot_com_api.c 4660 0 8 4668
tuya_iot_internal_api.c 835 0 0 835
tuya_iot_api_pre_handle.c 132 0 4 136
total 7986 0 12 7998
components/lib_websocket websocket_client.c 3280 0 0 3280
total 3280 0 0 3280
components/tal_wifi tal_wifi.c 2236 0 28 2264
tal_wifi_mgnt.c 2663 4 16 2683
total 4899 4 44 4947
components/svc_upgrade tuya_svc_upgrade.c 5033 0 44 5077
tuya_svc_schema_upgrade.c 1851 0 48 1899
tuya_svc_upgrade_http.c 1218 0 0 1218
total 8102 0 92 8194
components/svc_devos tuya_svc_devos.c 4441 0 1 4442
ws_db_gw.c 4502 0 0 4502
tuya_devos_utils.c 5413 4 3669 9086
tuya_devos.c 366 0 4 370
tuya_devos_mqc.c 899 0 0 899
tuya_svc_devos_activate.c 1540 0 28 1568
tuya_devos_data.c 0 0 0 0
tuya_devos_health.c 3279 180 4 3463
tuya_devos_reset.c 607 0 0 607
tuya_svc_devos_activate_token.c 830 0 0 830
tuya_svc_devos_daemons.c 1988 4 29 2021
tuya_svc_devos_activate_meta.c 595 0 0 595
tuya_devos_stride.c 1122 0 4 1126
tuya_devos_localkey_update.c 2284 0 40 2324
total 27866 188 3779 31833
components/tal_driver tal_flash.c 188 0 0 188
tal_rtc.c 96 0 0 96
tal_watchdog.c 60 0 0 60
tal_uart.c 800 0 0 800
total 1144 0 0 1144
components/lib_tls version.c 0 0 0 0
ecdsa.c 0 0 0 0
pk.c 0 0 0 0
ssl_ticket.c 0 0 0 0
hmac_drbg.c 0 0 0 0
aes.c 3368 0 2604 5972
x509_crl.c 0 0 0 0
ssl_cookie.c 0 0 0 0
hkdf.c 385 0 0 385
xtea.c 0 0 0 0
asn1write.c 0 0 0 0
sha256.c 2662 0 0 2662
md2.c 0 0 0 0
gcm.c 1868 0 0 1868
rsa.c 0 0 0 0
ecdh.c 798 0 0 798
sha512.c 0 0 0 0
net_sockets.c 0 0 0 0
threading.c 46 16 0 62
base64.c 752 0 0 752
platform.c 50 8 0 58
des.c 0 0 0 0
version_features.c 0 0 0 0
ecp_curves.c 1566 4 0 1570
entropy.c 930 0 0 930
havege.c 0 0 0 0
ssl_ciphersuites.c 1569 0 40 1609
entropy_poll.c 62 0 0 62
poly1305.c 0 0 0 0
md_wrap.c 415 0 0 415
x509_create.c 0 0 0 0
chachapoly.c 0 0 0 0
chacha20.c 0 0 0 0
pk_wrap.c 0 0 0 0
rsa_internal.c 0 0 0 0
certs.c 0 0 0 0
padlock.c 0 0 0 0
cipher_wrap.c 996 0 0 996
ssl_srv.c 0 0 0 0
ripemd160.c 0 0 0 0
pkwrite.c 0 0 0 0
aesni.c 0 0 0 0
x509.c 0 0 0 0
md4.c 0 0 0 0
ecjpake.c 0 0 0 0
md5.c 2204 0 0 2204
cmac.c 0 0 0 0
ccm.c 1018 0 0 1018
oid.c 0 0 0 0
pem.c 0 0 0 0
pkcs5.c 240 0 0 240
x509write_crt.c 0 0 0 0
ctr_drbg.c 1188 0 0 1188
ssl_tls.c 8369 15 0 8384
pkcs11.c 0 0 0 0
md.c 987 0 0 987
aria.c 0 0 0 0
ssl_cli.c 2654 0 0 2654
ssl_cache.c 0 0 0 0
asn1parse.c 0 0 0 0
cipher.c 2098 0 4 2102
blowfish.c 0 0 0 0
ecp.c 6804 0 6 6810
x509_csr.c 0 0 0 0
dhm.c 0 0 0 0
sha1.c 4438 0 0 4438
x509write_csr.c 0 0 0 0
arc4.c 0 0 0 0
nist_kw.c 0 0 0 0
error.c 0 0 0 0
memory_buffer_alloc.c 0 0 0 0
camellia.c 0 0 0 0
bignum.c 8079 0 0 8079
pkcs12.c 0 0 0 0
platform_util.c 16 4 0 20
pkparse.c 0 0 0 0
debug.c 0 0 0 0
timing.c 0 0 0 0
x509_crt.c 0 0 0 0
total 53562 47 2654 56263
components/svc_api_wifi tuya_iot_wifi_api.c 1885 0 0 1885
total 1885 0 0 1885
components/svc_wifi ap_netcfg.c 6318 0 20 6338
netcfg_module.c 1389 32 5 1426
wf_nw_cfg.c 3364 5 4 3373
airkiss_bc.c 3464 0 4 3468
thing_config.c 2508 0 19 2527
ez_mc.c 1516 0 4 1520
tlink_bc.c 4155 0 4 4159
user_netcfg.c 219 0 4 223
wifi_netcfg_frame_transporter.c 3174 4 4 3182
wifi_netcfg_frame_sniffer.c 1777 0 8 1785
tuya_wifi_link.c 2711 28 0 2739
tuya_wifi_connect.c 3510 0 32 3542
tuya_wifi_status.c 747 1 11 759
wf_protect.c 9244 0 4 9248
tuya_wifi_reset.c 3265 4 32 3301
tuya_wifi_netcfg.c 3308 1 16 3325
total 50669 75 171 50915
components/tal_system tal_system.c 303 0 4 307
tal_thread.c 1879 0 16 1895
tal_template.c 316 0 0 316
tal_fs.c 520 0 0 520
tal_sleep.c 713 0 16 729
tal_workqueue.c 777 0 0 777
tal_log.c 1722 0 4 1726
tal_sw_timer.c 1511 0 40 1551
total 7741 0 80 7821
components/svc_lan tuya_svc_lan.c 13594 44 68 13706
total 13594 44 68 13706
components/base_uf uf_flash_huge_file.c 1795 0 0 1795
uf_flash_file.c 4953 0 0 4953
uf_flash_file_app.c 1748 0 4 1752
uf_file.c 740 0 4 744
tuya_uf_db.c 728 0 0 728
total 9964 0 8 9972
components/svc_netmgr tuya_svc_netmgr_linkage.c 1306 0 32 1338
tuya_svc_netmgr.c 306 0 0 306
tuya_svc_netmgr_linkage_virtual.c 32 0 0 32
total 1644 0 32 1676
components/lib_http http_inf.c 1904 0 0 1904
httpc.c 9918 1 32 9951
http_manager.c 1538 0 92 1630
total 13360 1 124 13485
adapter/utilities tuya_ringbuf.c 466 0 0 466
tuya_hashmap.c 1592 0 0 1592
tuya_mem_heap.c 2151 0 80 2231
tuya_queue.c 690 0 0 690
tuya_smartpointer.c 216 0 0 216
tuya_list.c 78 0 0 78
tuya_tools.c 662 0 0 662
total 5855 0 80 5935
adapter/init tkl_init_system.c 288 0 0 288
tkl_init_wifi.c 108 0 0 108
tkl_init_common.c 352 0 0 352
tkl_init_network.c 120 0 0 120
tkl_init.c 46 0 88 134
total 914 0 88 1002
total 501076 859 17241 519176