mp_flipper_halport.c 815 B

123456789101112131415161718192021222324252627282930313233343536
  1. #include "py/mperrno.h"
  2. #include "py/obj.h"
  3. #include "py/runtime.h"
  4. #include <stdio.h>
  5. #include "py/mphal.h"
  6. #include "py/builtin.h"
  7. #include "mp_flipper_halport.h"
  8. #include "mp_flipper_fileio.h"
  9. void mp_hal_stdout_tx_str(const char* str) {
  10. mp_flipper_stdout_tx_str(str);
  11. }
  12. void mp_hal_stdout_tx_strn_cooked(const char* str, size_t len) {
  13. mp_flipper_stdout_tx_strn_cooked(str, len);
  14. }
  15. mp_import_stat_t mp_import_stat(const char* path) {
  16. mp_flipper_import_stat_t stat = mp_flipper_import_stat(path);
  17. if(stat == MP_FLIPPER_IMPORT_STAT_FILE) {
  18. return MP_IMPORT_STAT_FILE;
  19. }
  20. if(stat == MP_FLIPPER_IMPORT_STAT_DIR) {
  21. return MP_IMPORT_STAT_DIR;
  22. }
  23. return MP_IMPORT_STAT_NO_EXIST;
  24. }
  25. size_t gc_get_max_new_split(void) {
  26. return mp_flipper_gc_get_max_new_split();
  27. }