diff options
| author | Damien George | 2014-03-17 14:04:19 +0000 |
|---|---|---|
| committer | Damien George | 2014-03-17 14:04:19 +0000 |
| commit | b92d3e1fded0ad335f7a2c8c0f5dea91d258bae0 (patch) | |
| tree | ada1f189c3fefe4f4fe3150cdb4b0d62b6162aa1 /stmhal/mpconfigport.h | |
| parent | 9e5ea4d768da3273b6d060cceffcc858e1c4827d (diff) | |
stmhal: Add fatfs support, working with flash and SD card.
Diffstat (limited to 'stmhal/mpconfigport.h')
| -rw-r--r-- | stmhal/mpconfigport.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/stmhal/mpconfigport.h b/stmhal/mpconfigport.h index 3dba81a35..8ff801335 100644 --- a/stmhal/mpconfigport.h +++ b/stmhal/mpconfigport.h @@ -15,8 +15,13 @@ 2: Enable LFN with dynamic working buffer on the STACK. 3: Enable LFN with dynamic working buffer on the HEAP. */ -#define MICROPY_ENABLE_LFN (0) -#define MICROPY_LFN_CODE_PAGE (1) /* 1=SFN/ANSI 437=LFN/U.S.(OEM) */ +#define MICROPY_ENABLE_LFN (1) +#define MICROPY_LFN_CODE_PAGE (437) /* 1=SFN/ANSI 437=LFN/U.S.(OEM) */ + +// extra built in names to add to the global namespace +extern const struct _mp_obj_fun_native_t mp_builtin_open_obj; +#define MICROPY_EXTRA_BUILTINS \ + { MP_QSTR_open, (mp_obj_t)&mp_builtin_open_obj }, // type definitions for the specific machine |
