Add mpy stack option to mpconfig.

This commit is contained in:
iabdalkader 2021-02-23 19:27:33 +02:00
parent 35ff974264
commit ff19149f59
2 changed files with 6 additions and 1 deletions

@ -1 +1 @@
Subproject commit 4f0bfd6f7a8551b1fef462f88b51dbc202958d99
Subproject commit a227879d2411f157122bd4bed0cce1357114c53f

View File

@ -482,6 +482,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
// Micro Python init
mp_init();
mp_obj_list_init(mp_sys_path, 0);