summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2025-09-26 00:57:30 +1000
committerDamien George <damien@micropython.org>2025-10-10 14:49:09 +1100
commitddd6ca75be81711b0c44e076867989dd18d62bdb (patch)
treee029c2cee9b87a769cf44351a3a09720f4c9a415
parent6ab3c3cb173bc28d39b8342cb7b66afeb29fae09 (diff)
docs/develop/porting: Use mp_cstack_init_with_sp_here in docs.
Signed-off-by: Damien George <damien@micropython.org>
-rw-r--r--docs/develop/porting.rst3
1 files changed, 1 insertions, 2 deletions
diff --git a/docs/develop/porting.rst b/docs/develop/porting.rst
index 99725e100..c0cf130e0 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();