Browse Source

update: 默认启用repl

Wendal Chen 2 years ago
parent
commit
4057abe2c2
2 changed files with 5 additions and 4 deletions
  1. 4 3
      app/port/luat_conf_bsp.h
  2. 1 1
      app/port/luat_malloc_air101.c

+ 4 - 3
app/port/luat_conf_bsp.h

@@ -121,15 +121,16 @@
 // #define LUAT_USE_GTFONT_UTF8
 
 //----------------------------
-// 高级功能, 其中shell是推荐启用, 除非你打算uart0也读数据
-#define LUAT_USE_SHELL 1
-#define LUAT_USE_DBG
+// 高级功能, 推荐使用REPL, 因为SHELL已废弃
+// #define LUAT_USE_SHELL 1
+// #define LUAT_USE_DBG
 // NIMBLE 是蓝牙功能, 名为BLE, 但绝非低功耗.
 // #define LUAT_USE_NIMBLE 1
 // 多虚拟机支持,实验性,一般不启用
 // #define LUAT_USE_VMX 1
 // #define LUAT_USE_NES
 #define LUAT_USE_PROTOBUF 1
+#define LUAT_USE_REPL 1
 
 //---------------------
 // UI

+ 1 - 1
app/port/luat_malloc_air101.c

@@ -28,7 +28,7 @@ void* __wrap_realloc(void*ptr, size_t len);
 
 #ifndef LUAT_HEAP_SIZE
 #ifdef LUAT_USE_NIMBLE
-#define LUAT_HEAP_SIZE (128+16)*1024
+#define LUAT_HEAP_SIZE (128)*1024
 #else
 #define LUAT_HEAP_SIZE (128+48)*1024
 #endif