Oliver Fabel 1 год назад
Родитель
Сommit
17d8f8f7f5
3 измененных файлов с 8 добавлено и 2 удалено
  1. 4 0
      mp_flipper_halport.c
  2. 2 0
      mp_flipper_halport.h
  3. 2 2
      mpconfigport.h

+ 4 - 0
mp_flipper_halport.c

@@ -32,3 +32,7 @@ mp_import_stat_t mp_import_stat(const char* path) {
 
     return MP_IMPORT_STAT_NO_EXIST;
 }
+
+size_t gc_get_max_new_split(void) {
+    return mp_flipper_gc_get_max_new_split();
+}

+ 2 - 0
mp_flipper_halport.h

@@ -15,3 +15,5 @@ void mp_flipper_stdout_tx_str(const char* str);
 void mp_flipper_stdout_tx_strn_cooked(const char* str, size_t len);
 
 mp_flipper_import_stat_t mp_flipper_import_stat(const char* path);
+
+size_t mp_flipper_gc_get_max_new_split();

+ 2 - 2
mpconfigport.h

@@ -12,8 +12,8 @@ typedef int32_t mp_int_t; // must be pointer size
 typedef uint32_t mp_uint_t; // must be pointer size
 typedef long mp_off_t;
 
-#define MICROPY_GC_SPLIT_HEAP (0)
-#define MICROPY_GC_SPLIT_HEAP_AUTO (0)
+#define MICROPY_GC_SPLIT_HEAP (1)
+#define MICROPY_GC_SPLIT_HEAP_AUTO (1)
 
 #define MICROPY_MPHALPORT_H "mp_flipper_halport.h"