summaryrefslogtreecommitdiff
path: root/teensy/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'teensy/main.c')
-rw-r--r--teensy/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/teensy/main.c b/teensy/main.c
index f3b0079bb..082f6f1ca 100644
--- a/teensy/main.c
+++ b/teensy/main.c
@@ -7,6 +7,7 @@
#include "py/parse.h"
#include "py/lexer.h"
#include "py/runtime.h"
+#include "py/stackctrl.h"
#include "py/gc.h"
#include "gccollect.h"
#include "pyexec.h"
@@ -255,6 +256,8 @@ int main(void) {
#define SCB_CCR_STKALIGN (1 << 9)
SCB_CCR |= SCB_CCR_STKALIGN;
+ mp_stack_set_limit(10240);
+
pinMode(LED_BUILTIN, OUTPUT);
led_init();