Skip to content
Snippets Groups Projects
Commit 1466c169 authored by rahix's avatar rahix
Browse files

WIP: Cleanup main.c

parent 5b803156
No related branches found
No related tags found
No related merge requests found
...@@ -26,19 +26,7 @@ int main(int argc, char **argv) { ...@@ -26,19 +26,7 @@ int main(int argc, char **argv) {
#endif #endif
mp_init(); mp_init();
#if MICROPY_REPL_EVENT_DRIVEN pyexec_friendly_repl();
pyexec_event_repl_init();
for (;;) {
int c = mp_hal_stdin_rx_chr();
if (pyexec_event_repl_process_char(c)) {
break;
}
}
#else
// pyexec_friendly_repl();
#error TODO friendly_repl
#endif
mp_deinit(); mp_deinit();
return 0; return 0;
} }
...@@ -80,7 +68,3 @@ void MP_WEAK __assert_func(const char *file, int line, const char *func, const c ...@@ -80,7 +68,3 @@ void MP_WEAK __assert_func(const char *file, int line, const char *func, const c
__fatal_error("Assertion failed"); __fatal_error("Assertion failed");
} }
#endif #endif
#if MICROPY_MIN_USE_CORTEX_CPU
// TODO
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment