Wendal Chen 2 лет назад
Родитель
Сommit
97c29fee4f

+ 7 - 0
cloudbuild/esp32c2-idf5.meta.json

@@ -297,6 +297,13 @@
                  "rsize":12608,
                  "fsize":557984,
                  "dft":false
+              },
+              {
+                  "name": "ymodem",
+                  "content": "Ymodem传输协议",
+                  "rsize": 3008,
+                  "fsize": 274360,
+                  "dft": false
               }
            ],
            "fsize":365376,

+ 7 - 0
cloudbuild/esp32c3-idf5.meta.json

@@ -355,6 +355,13 @@
                   "rsize": 10008,
                   "fsize": 274360,
                   "dft": false
+              },
+              {
+                  "name": "ymodem",
+                  "content": "Ymodem传输协议",
+                  "rsize": 3008,
+                  "fsize": 274360,
+                  "dft": false
               }
            ],
            "fsize":365376,

+ 7 - 0
cloudbuild/esp32s3-idf5.meta.json

@@ -333,6 +333,13 @@
                   "rsize": 10008,
                   "fsize": 274360,
                   "dft": false
+              },
+              {
+                  "name": "ymodem",
+                  "content": "Ymodem传输协议",
+                  "rsize": 3008,
+                  "fsize": 274360,
+                  "dft": false
               }
            ],
            "fsize":365376,

+ 2 - 0
luatos/components/luat/CMakeLists.txt

@@ -87,6 +87,7 @@ idf_component_register(SRC_DIRS ${LUATOS_ROOT}/luat/modules
                                 ${LUATOS_ROOT}/components/gmssl/src
                                 ${LUATOS_ROOT}/components/gmssl/bind
                                 ${LUATOS_ROOT}/components/repl
+                                ${LUATOS_ROOT}/components/ymodem
                                 INCLUDE_DIRS ../../include
                                 ${LUATOS_ROOT}/components/max30102
                                 ${LUATOS_ROOT}/lua/include
@@ -148,6 +149,7 @@ idf_component_register(SRC_DIRS ${LUATOS_ROOT}/luat/modules
                                 ${LUATOS_ROOT}/components/iconv
                                 ${LUATOS_ROOT}/components/gmssl/include
                                 ${LUATOS_ROOT}/components/repl
+                                ${LUATOS_ROOT}/components/ymodem
                     REQUIRES esp-tls lwip esp_http_client mbedtls spiffs driver heap esp_netif esp_event
                              esp_wifi esp_rom http_parser mqtt esp_adc bt console spi_flash esp_psram 
                     )

+ 1 - 1
luatos/include/luat_conf_bsp.h

@@ -91,7 +91,7 @@
 // #define LUAT_USE_MAX30102 1
 // #define LUAT_USE_MLX90640 1
 // zlib压缩,更快更小的实现
-#define LUAT_USE_MINIZ 1
+// #define LUAT_USE_YMODEM
 
 // #define LUAT_USE_FATFS
 // #define LUAT_USE_FATFS_CHINESE 3