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 2929#include "py/gc.h"
3030#include "py/mperrno.h"
3131#include "py/mphal.h"
32- #include "py/stackctrl.h"
3332#include "extmod/modmachine.h"
3433#include "shared/readline/readline.h"
3534#include "shared/runtime/gchelper.h"
@@ -45,8 +44,7 @@ extern void pwm_deinit_all(void);
4544extern void sercom_deinit_all (void );
4645
4746void samd_main (void ) {
48- mp_stack_set_top (& _estack );
49- mp_stack_set_limit (& _estack - & _sstack - 1024 );
47+ mp_cstack_init_with_top (& _estack , & _estack - & _sstack );
5048 mp_hal_time_ns_set_from_rtc ();
5149
5250 for (;;) {
Original file line number Diff line number Diff line change 4141
4242// Python internal features
4343#define MICROPY_ENABLE_GC (1)
44+ #define MICROPY_STACK_CHECK_MARGIN (1024)
4445#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_MPZ)
4546#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_FLOAT)
4647#ifndef MICROPY_PY_BUILTINS_COMPLEX
You can’t perform that action at this time.
0 commit comments