diff options
| author | Damien George | 2015-01-01 23:30:53 +0000 |
|---|---|---|
| committer | Damien George | 2015-01-07 20:33:00 +0000 |
| commit | b4b10fd350852e321624d74983cca286091b55a1 (patch) | |
| tree | 7ac4aa40d70be0170a61f649e9d73c42faa4ba33 /teensy | |
| parent | ad2307c92c15f0aa90dbd0741fd2538719d0b5e1 (diff) | |
py: Put all global state together in state structures.
This patch consolidates all global variables in py/ core into one place,
in a global structure. Root pointers are all located together to make
GC tracing easier and more efficient.
Diffstat (limited to 'teensy')
| -rw-r--r-- | teensy/main.c | 3 |
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(); |
