From f14b92b9e13c9cb9f54a1d740dbea1eeedeccb5b Mon Sep 17 00:00:00 2001 From: Dave Hylands Date: Wed, 12 Mar 2014 18:06:26 -0700 Subject: REPl working on UART6 with STMHAL --- stmhal/import.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 stmhal/import.c (limited to 'stmhal/import.c') diff --git a/stmhal/import.c b/stmhal/import.c new file mode 100644 index 000000000..f2fd3b3de --- /dev/null +++ b/stmhal/import.c @@ -0,0 +1,24 @@ +#include + +#include "misc.h" +#include "mpconfig.h" +#include "qstr.h" +#include "lexer.h" +#if 0 +#include "ff.h" +#endif + +mp_import_stat_t mp_import_stat(const char *path) { +#if 0 + FILINFO fno; + FRESULT res = f_stat(path, &fno); + if (res == FR_OK) { + if ((fno.fattrib & AM_DIR) != 0) { + return MP_IMPORT_STAT_DIR; + } else { + return MP_IMPORT_STAT_FILE; + } + } +#endif + return MP_IMPORT_STAT_NO_EXIST; +} -- cgit v1.2.3