Skip to content

Commit f1f2a3c

Browse files
committed
zephyr: Remove deprecated .mdef file.
1 parent 5872210 commit f1f2a3c

4 files changed

Lines changed: 3 additions & 8 deletions

File tree

zephyr/Makefile.zephyr

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ KERNEL_TYPE = micro
1818
# BOARD must be passed on command line from main Makefile
1919
#BOARD =
2020
CONF_FILE = prj.conf
21-
MDEF_FILE = prj.mdef
2221

2322
#export SOURCE_DIR = $(ZEPHYR_BASE)/samples/static_lib/hello_world
2423
export LDFLAGS_zephyr += -L$(CURDIR)

zephyr/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ int real_main(void) {
6464
int stack_dummy;
6565
stack_top = (char*)&stack_dummy;
6666
mp_stack_set_top(stack_top);
67-
// Should be set to stack size in prj.mdef minus fuzz factor
68-
mp_stack_set_limit(3584);
67+
// Make MicroPython's stack limit somewhat smaller than full stack available
68+
mp_stack_set_limit(CONFIG_MAIN_STACK_SIZE - 512);
6969

7070
soft_reset:
7171
#if MICROPY_ENABLE_GC

zephyr/prj.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ CONFIG_CONSOLE_HANDLER=y
33
CONFIG_UART_CONSOLE_DEBUG_SERVER_HOOKS=y
44
CONFIG_NEWLIB_LIBC=y
55
CONFIG_FLOAT=y
6+
CONFIG_MAIN_STACK_SIZE=4096

zephyr/prj.mdef

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)