Skip to content

Commit bfa948c

Browse files
committed
cc3200: Add implementations of mp_import_stat and builtin_open.
They disappeared when stmhal changed to use new MICROPY_VFS code.
1 parent 84c614e commit bfa948c

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

cc3200/application.mk

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,6 @@ APP_LIB_SRC_C = $(addprefix lib/,\
157157

158158
APP_STM_SRC_C = $(addprefix stmhal/,\
159159
bufhelper.c \
160-
builtin_open.c \
161-
import.c \
162160
input.c \
163161
irq.c \
164162
pybstdio.c \

cc3200/main.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,14 @@ void vApplicationGetIdleTaskMemory( StaticTask_t **ppxIdleTaskTCBBuffer,
113113
*ppxIdleTaskStackBuffer = uxIdleTaskStack;
114114
*pulIdleTaskStackSize = configMINIMAL_STACK_SIZE;
115115
}
116+
117+
// the following is temporay, until cc3200 converts to oofatfs
118+
119+
#include "py/lexer.h"
120+
#include "extmod/vfs_fat.h"
121+
122+
mp_import_stat_t mp_import_stat(const char *path) {
123+
return fat_vfs_import_stat(NULL, path);
124+
}
125+
126+
MP_DEFINE_CONST_FUN_OBJ_KW(mp_builtin_open_obj, 1, fatfs_builtin_open);

0 commit comments

Comments
 (0)