File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 3131#include "py/builtin.h"
3232#include "py/compile.h"
3333#include "py/runtime.h"
34- #include "py/stackctrl.h"
3534#include "py/mperrno.h"
3635#include "py/mphal.h"
3736#include "py/gc.h"
@@ -108,8 +107,7 @@ static void print_reset_info(void) {
108107#endif
109108
110109static void mp_reset (void ) {
111- mp_stack_set_top ((void * )0x40000000 );
112- mp_stack_set_limit (8192 );
110+ mp_cstack_init_with_top ((void * )0x40000000 , 8192 );
113111 mp_hal_init ();
114112 gc_init (heap , heap + sizeof (heap ));
115113 mp_init ();
Original file line number Diff line number Diff line change 5252#define MICROPY_ALLOC_PARSE_CHUNK_INIT (64)
5353#define MICROPY_DEBUG_PRINTER (&mp_debug_print)
5454#define MICROPY_ENABLE_GC (1)
55+ #define MICROPY_STACK_CHECK_MARGIN (64)
5556#define MICROPY_ENABLE_EMERGENCY_EXCEPTION_BUF (1)
5657#define MICROPY_REPL_EVENT_DRIVEN (0)
5758#define MICROPY_USE_INTERNAL_ERRNO (1)
You can’t perform that action at this time.
0 commit comments