micropython 273 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. commit 17d8f8f7f5c1cabdb2712cdc03da2e262a6d74b8
  2. Author: Oliver Fabel <28701799+ofabel@users.noreply.github.com>
  3. Date: Fri Sep 27 07:46:27 2024 +0200
  4. library update
  5. diff --git a/mp_flipper_halport.c b/mp_flipper_halport.c
  6. index 50ba441c5..e1f883a11 100644
  7. --- a/mp_flipper_halport.c
  8. +++ b/mp_flipper_halport.c
  9. @@ -32,3 +32,7 @@ mp_import_stat_t mp_import_stat(const char* path) {
  10. return MP_IMPORT_STAT_NO_EXIST;
  11. }
  12. +
  13. +size_t gc_get_max_new_split(void) {
  14. + return mp_flipper_gc_get_max_new_split();
  15. +}
  16. \ No newline at end of file
  17. diff --git a/mp_flipper_halport.h b/mp_flipper_halport.h
  18. index cecd8fe76..161d7a43f 100644
  19. --- a/mp_flipper_halport.h
  20. +++ b/mp_flipper_halport.h
  21. @@ -15,3 +15,5 @@ void mp_flipper_stdout_tx_str(const char* str);
  22. void mp_flipper_stdout_tx_strn_cooked(const char* str, size_t len);
  23. mp_flipper_import_stat_t mp_flipper_import_stat(const char* path);
  24. +
  25. +size_t mp_flipper_gc_get_max_new_split();
  26. diff --git a/mpconfigport.h b/mpconfigport.h
  27. index 9ab3e3119..b87e68c34 100644
  28. --- a/mpconfigport.h
  29. +++ b/mpconfigport.h
  30. @@ -12,8 +12,8 @@ typedef int32_t mp_int_t; // must be pointer size
  31. typedef uint32_t mp_uint_t; // must be pointer size
  32. typedef long mp_off_t;
  33. -#define MICROPY_GC_SPLIT_HEAP (0)
  34. -#define MICROPY_GC_SPLIT_HEAP_AUTO (0)
  35. +#define MICROPY_GC_SPLIT_HEAP (1)
  36. +#define MICROPY_GC_SPLIT_HEAP_AUTO (1)
  37. #define MICROPY_MPHALPORT_H "mp_flipper_halport.h"