aboutsummaryrefslogtreecommitdiff
path: root/cc3200/main.c
diff options
context:
space:
mode:
authorDamien George2017-01-27 23:14:11 +1100
committerDamien George2017-01-27 23:22:15 +1100
commitbfa948c0a50c8f543c9b0751eb42cffac09656ec (patch)
tree5fab4cf456a42e5b6c011f99b4f4d81915d066a5 /cc3200/main.c
parent84c614e7290804e8b8d7ebff03ca35a4a4c5fcf1 (diff)
cc3200: Add implementations of mp_import_stat and builtin_open.
They disappeared when stmhal changed to use new MICROPY_VFS code.
Diffstat (limited to 'cc3200/main.c')
-rw-r--r--cc3200/main.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/cc3200/main.c b/cc3200/main.c
index 06b3604b6..fd263442c 100644
--- a/cc3200/main.c
+++ b/cc3200/main.c
@@ -113,3 +113,14 @@ void vApplicationGetIdleTaskMemory( StaticTask_t **ppxIdleTaskTCBBuffer,
*ppxIdleTaskStackBuffer = uxIdleTaskStack;
*pulIdleTaskStackSize = configMINIMAL_STACK_SIZE;
}
+
+// the following is temporay, until cc3200 converts to oofatfs
+
+#include "py/lexer.h"
+#include "extmod/vfs_fat.h"
+
+mp_import_stat_t mp_import_stat(const char *path) {
+ return fat_vfs_import_stat(NULL, path);
+}
+
+MP_DEFINE_CONST_FUN_OBJ_KW(mp_builtin_open_obj, 1, fatfs_builtin_open);