Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
micropython
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
card10
micropython
Commits
0c59c30f
Commit
0c59c30f
authored
8 years ago
by
Paul Sokolovsky
Browse files
Options
Downloads
Patches
Plain Diff
zephyr: Use core-provided keyboard exception object.
parent
724b8255
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
zephyr/main.c
+0
-1
0 additions, 1 deletion
zephyr/main.c
zephyr/mpconfigport.h
+1
-1
1 addition, 1 deletion
zephyr/mpconfigport.h
zephyr/mpconfigport_minimal.h
+0
-1
0 additions, 1 deletion
zephyr/mpconfigport_minimal.h
with
1 addition
and
3 deletions
zephyr/main.c
+
0
−
1
View file @
0c59c30f
...
...
@@ -75,7 +75,6 @@ soft_reset:
mp_obj_list_init
(
mp_sys_path
,
0
);
mp_obj_list_append
(
mp_sys_path
,
MP_OBJ_NEW_QSTR
(
MP_QSTR_
));
// current dir (or base dir of the script)
mp_obj_list_init
(
mp_sys_argv
,
0
);
MP_STATE_PORT
(
mp_kbd_exception
)
=
mp_obj_new_exception
(
&
mp_type_KeyboardInterrupt
);
#if MICROPY_MODULE_FROZEN
pyexec_frozen_module
(
"main.py"
);
...
...
This diff is collapsed.
Click to expand it.
zephyr/mpconfigport.h
+
1
−
1
View file @
0c59c30f
...
...
@@ -37,6 +37,7 @@
#define MICROPY_ENABLE_GC (1)
#define MICROPY_HELPER_REPL (1)
#define MICROPY_REPL_AUTO_INDENT (1)
#define MICROPY_KBD_EXCEPTION (1)
#define MICROPY_CPYTHON_COMPAT (0)
#define MICROPY_PY_ASYNC_AWAIT (0)
#define MICROPY_PY_ATTRTUPLE (0)
...
...
@@ -94,7 +95,6 @@ typedef long mp_off_t;
#define MP_STATE_PORT MP_STATE_VM
#define MICROPY_PORT_ROOT_POINTERS \
mp_obj_t mp_kbd_exception; \
const char *readline_hist[8];
extern
const
struct
_mp_obj_module_t
mp_module_machine
;
...
...
This diff is collapsed.
Click to expand it.
zephyr/mpconfigport_minimal.h
+
0
−
1
View file @
0c59c30f
...
...
@@ -87,5 +87,4 @@ typedef long mp_off_t;
#define MP_STATE_PORT MP_STATE_VM
#define MICROPY_PORT_ROOT_POINTERS \
mp_obj_t mp_kbd_exception; \
const char *readline_hist[8];
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