ソースを参照

fix: 缩减shell线程的内存占用,不然起不来了

Wendal Chen 4 年 前
コミット
3baf29013d
1 ファイル変更2 行追加2 行削除
  1. 2 2
      app/port/luat_shell_air101.c

+ 2 - 2
app/port/luat_shell_air101.c

@@ -56,11 +56,11 @@ static void luat_shell(void *sdata){
 	}
 }
 
-#define    TASK_START_STK_SIZE         2048
+#define    TASK_START_STK_SIZE         512
 static OS_STK __attribute__((aligned(4))) 			TaskStartStk[TASK_START_STK_SIZE] = {0};
 void luat_shell_poweron(int _drv) {
     tls_uart_rx_callback_register(0, luat_shell_uart_cb, NULL);
-	tls_os_queue_create(&shell_queue, 2048);
+	tls_os_queue_create(&shell_queue, 512);
 	tls_os_task_create(NULL, NULL,
 				luat_shell,
 				NULL,