diff options
| author | Scott Shawcroft <scott@adafruit.com> | 2020-07-21 13:38:52 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-21 13:38:52 -0700 |
| commit | cb7df2e1ed7c9866b43994e4013497702d8da727 (patch) | |
| tree | a93156e392cf1edcf738c48d6b429e6088aebb4a /py | |
| parent | e047ea287f6658f1a1fd10ab31f45f25bce846c1 (diff) | |
| parent | 5e3a853db4ad735e3ae1c115cab3ef213a338f0d (diff) | |
Merge pull request #3160 from tannewt/enable_pystack
Enable PYSTACK to keep function state out of the heap
Diffstat (limited to 'py')
| -rw-r--r-- | py/circuitpy_mpconfig.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/py/circuitpy_mpconfig.h b/py/circuitpy_mpconfig.h index d05a246fc..a7853fabd 100644 --- a/py/circuitpy_mpconfig.h +++ b/py/circuitpy_mpconfig.h @@ -119,6 +119,7 @@ #define MICROPY_QSTR_BYTES_IN_HASH (1) #define MICROPY_REPL_AUTO_INDENT (1) #define MICROPY_REPL_EVENT_DRIVEN (0) +#define MICROPY_ENABLE_PYSTACK (1) #define MICROPY_STACK_CHECK (1) #define MICROPY_STREAMS_NON_BLOCK (1) #ifndef MICROPY_USE_INTERNAL_PRINTF @@ -785,6 +786,10 @@ void supervisor_run_background_tasks_if_tick(void); #define CIRCUITPY_FILESYSTEM_FLUSH_INTERVAL_MS 1000 #endif +#ifndef CIRCUITPY_PYSTACK_SIZE +#define CIRCUITPY_PYSTACK_SIZE 1024 +#endif + #define CIRCUITPY_BOOT_OUTPUT_FILE "/boot_out.txt" #define CIRCUITPY_VERBOSE_BLE 0 |
