Skip to content
Snippets Groups Projects
Commit c16e7eae authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

zephyr: Implement soft reset feature.

parent 95fe7a40
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment