diff options
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 |
