Skip to content

Commit ddd6ca7

Browse files
committed
docs/develop/porting: Use mp_cstack_init_with_sp_here in docs.
Signed-off-by: Damien George <[email protected]>
1 parent 6ab3c3c commit ddd6ca7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docs/develop/porting.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ The basic MicroPython firmware is implemented in the main port file, e.g ``main.
4242
#include "py/compile.h"
4343
#include "py/gc.h"
4444
#include "py/mperrno.h"
45-
#include "py/stackctrl.h"
4645
#include "shared/runtime/gchelper.h"
4746
#include "shared/runtime/pyexec.h"
4847
@@ -51,7 +50,7 @@ The basic MicroPython firmware is implemented in the main port file, e.g ``main.
5150
5251
int main(int argc, char **argv) {
5352
// Initialise the MicroPython runtime.
54-
mp_stack_ctrl_init();
53+
mp_cstack_init_with_sp_here(2048);
5554
gc_init(heap, heap + sizeof(heap));
5655
mp_init();
5756

0 commit comments

Comments
 (0)