Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
François Revol
firmware
Commits
acb9e8d4
Commit
acb9e8d4
authored
Jul 08, 2019
by
ch3
Browse files
chore(pycardium): Make (defunct) open() available
parent
e1bc946a
Changes
2
Hide whitespace changes
Inline
Side-by-side
pycardium/mpconfigport.h
View file @
acb9e8d4
...
...
@@ -39,6 +39,10 @@ typedef unsigned mp_uint_t; /* must be pointer size */
typedef
long
mp_off_t
;
/* extra built in names to add to the global namespace */
#define MICROPY_PORT_BUILTINS \
{ MP_ROM_QSTR(MP_QSTR_open), MP_ROM_PTR(&mp_builtin_open_obj) },
/*
* Make a pointer to RAM callable (eg set lower bit for Thumb code)
* (This scheme won't work if we want to mix Thumb and normal ARM code.)
...
...
pycardium/mphalport.c
View file @
acb9e8d4
...
...
@@ -116,6 +116,7 @@ mp_import_stat_t mp_import_stat(const char *path)
mp_obj_t
mp_builtin_open
(
size_t
n_args
,
const
mp_obj_t
*
args
,
mp_map_t
*
kwargs
)
{
/* TODO: Once fs is implemented, get this working as well */
mp_raise_NotImplementedError
(
"FS is not yet implemented"
);
return
mp_const_none
;
}
MP_DEFINE_CONST_FUN_OBJ_KW
(
mp_builtin_open_obj
,
1
,
mp_builtin_open
);
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment