diff options
| author | Damien George | 2017-11-26 23:40:42 +1100 |
|---|---|---|
| committer | Damien George | 2017-12-11 13:49:09 +1100 |
| commit | 971699abe7c9ac07c3059cbbc452043e35eb6200 (patch) | |
| tree | 25ef3ffca1b2ad823c1e84679af88aa0b466a78c | |
| parent | 357486d9b455a8ac0c7066a997ebd4ee8e22b38f (diff) | |
stm32: Add support for using the Python stack.
| -rw-r--r-- | ports/stm32/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ports/stm32/main.c b/ports/stm32/main.c index 16279d073..9a83f9f36 100644 --- a/ports/stm32/main.c +++ b/ports/stm32/main.c @@ -511,6 +511,11 @@ soft_reset: // GC init gc_init(&_heap_start, &_heap_end); + #if MICROPY_ENABLE_PYSTACK + static mp_obj_t pystack[384]; + mp_pystack_init(pystack, &pystack[384]); + #endif + // MicroPython init mp_init(); mp_obj_list_init(mp_sys_path, 0); |
