Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
c16e7eae
Commit
c16e7eae
authored
Dec 15, 2016
by
Paul Sokolovsky
Browse files
zephyr: Implement soft reset feature.
parent
95fe7a40
Changes
1
Hide whitespace changes
Inline
Side-by-side
zephyr/main.c
View file @
c16e7eae
...
...
@@ -67,6 +67,7 @@ int real_main(void) {
// Should be set to stack size in prj.mdef minus fuzz factor
mp_stack_set_limit
(
3584
);
soft_reset:
#if MICROPY_ENABLE_GC
gc_init
(
heap
,
heap
+
sizeof
(
heap
));
#endif
...
...
@@ -89,7 +90,9 @@ int real_main(void) {
}
}
mp_deinit
();
printf
(
"soft reboot
\n
"
);
goto
soft_reset
;
return
0
;
}
...
...
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