Commit c16e7eae authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

zephyr: Implement soft reset feature.

parent 95fe7a40
......@@ -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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment