Преглед изворни кода

update: 调整wifi的buff区大小, lua内存扩展到92k

Wendal Chen пре 2 година
родитељ
комит
0e81922e83
2 измењених фајлова са 3 додато и 2 уклоњено
  1. 2 1
      app/port/luat_malloc_air101.c
  2. 1 1
      platform/sys/wm_main.c

+ 2 - 1
app/port/luat_malloc_air101.c

@@ -21,8 +21,9 @@ void* __wrap_realloc(void*ptr, size_t len);
 #ifdef LUAT_USE_WLAN
 // 与tls_wifi_mem_cfg正相关, 假设tx是7, rx是3
 // (7+3)*2*1638+4096 = 36k , 然后lua可用 128 - 36 = 92
+// (6+4)*2*1638+4096 = 36k , 然后lua可用 128 - 36 = 92
 // (7+7)*2*1638+4096 = 49k , 然后lua可用 128 - 49 = 79
-#define LUAT_HEAP_MIN_SIZE (78*1024)
+#define LUAT_HEAP_MIN_SIZE (92*1024)
 #undef LUAT_HEAP_SIZE
 #define LUAT_HEAP_SIZE LUAT_HEAP_MIN_SIZE
 #else

+ 1 - 1
platform/sys/wm_main.c

@@ -401,7 +401,7 @@ void task_start (void *data)
     tls_get_tx_gain(&tx_gain_group[0]);
     TLS_DBGPRT_INFO("tx gain ");
     TLS_DBGPRT_DUMP((char *)(&tx_gain_group[0]), 27);
-    if (tls_wifi_mem_cfg(WIFI_MEM_START_ADDR, 7, 7)) /*wifi tx&rx mem customized interface*/
+    if (tls_wifi_mem_cfg(WIFI_MEM_START_ADDR, 6, 4)) /*wifi tx&rx mem customized interface*/
     {
         TLS_DBGPRT_INFO("wl mem initial failured\n");
     }