From d0a32d6cf359a7ef2c8567ec595ca7f8a2523914 Mon Sep 17 00:00:00 2001 From: Felipe Huici Date: Tue, 8 Oct 2019 09:53:30 +0200 Subject: [PATCH] Add optional main() We add an optional main, selectable from the menu, that forwards parameters to Micropython's main function. Signed-off-by: Felipe Huici --- glue.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 glue.c diff --git a/glue.c b/glue.c new file mode 100644 index 0000000..2848e90 --- /dev/null +++ b/glue.c @@ -0,0 +1,10 @@ +#include + +/* Import user configuration: */ +#include + +int main(int argc, char *argv[]) +{ + micropython_main(argc, argv); + return 0; +} -- 2.39.5