Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ln
firmware
Commits
acb9e8d4
Commit
acb9e8d4
authored
5 years ago
by
ch3
Browse files
Options
Downloads
Patches
Plain Diff
chore(pycardium): Make (defunct) open() available
parent
e1bc946a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pycardium/mpconfigport.h
+4
-0
4 additions, 0 deletions
pycardium/mpconfigport.h
pycardium/mphalport.c
+1
-0
1 addition, 0 deletions
pycardium/mphalport.c
with
5 additions
and
0 deletions
pycardium/mpconfigport.h
+
4
−
0
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.)
...
...
This diff is collapsed.
Click to expand it.
pycardium/mphalport.c
+
1
−
0
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
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment