From ddd6ca75be81711b0c44e076867989dd18d62bdb Mon Sep 17 00:00:00 2001 From: Damien George Date: Fri, 26 Sep 2025 00:57:30 +1000 Subject: [PATCH] docs/develop/porting: Use mp_cstack_init_with_sp_here in docs. Signed-off-by: Damien George --- docs/develop/porting.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/develop/porting.rst b/docs/develop/porting.rst index 99725e1000..c0cf130e09 100644 --- a/docs/develop/porting.rst +++ b/docs/develop/porting.rst @@ -42,7 +42,6 @@ The basic MicroPython firmware is implemented in the main port file, e.g ``main. #include "py/compile.h" #include "py/gc.h" #include "py/mperrno.h" - #include "py/stackctrl.h" #include "shared/runtime/gchelper.h" #include "shared/runtime/pyexec.h" @@ -51,7 +50,7 @@ The basic MicroPython firmware is implemented in the main port file, e.g ``main. int main(int argc, char **argv) { // Initialise the MicroPython runtime. - mp_stack_ctrl_init(); + mp_cstack_init_with_sp_here(2048); gc_init(heap, heap + sizeof(heap)); mp_init();