diff --git a/ports/zephyr/main.c b/ports/zephyr/main.c index 7eb9da3e12..d6ddc65cc2 100644 --- a/ports/zephyr/main.c +++ b/ports/zephyr/main.c @@ -4,7 +4,7 @@ * The MIT License (MIT) * * Copyright (c) 2013, 2014 Damien P. George - * Copyright (c) 2016 Linaro Limited + * Copyright (c) 2016-2017 Linaro Limited * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -41,6 +41,9 @@ #include "lib/utils/pyexec.h" #include "lib/mp-readline/readline.h" +static char *stack_top; +static char heap[MICROPY_HEAP_SIZE]; + void do_str(const char *src, mp_parse_input_kind_t input_kind) { nlr_buf_t nlr; if (nlr_push(&nlr) == 0) { @@ -56,9 +59,6 @@ void do_str(const char *src, mp_parse_input_kind_t input_kind) { } } -static char *stack_top; -static char heap[MICROPY_HEAP_SIZE]; - void init_zephyr(void) { // We now rely on CONFIG_NET_APP_SETTINGS to set up bootstrap // network addresses.