nrf/mpconfigport: Reduce GC stack size for nrf51.

This frees 128 bytes of .bss RAM on the nRF51, at the cost of possibly
more expensive GC cycles. Leave it as-is on the nRF52 as that chip has a
lot more RAM.

This is also done in the micro:bit:
a7544718a7/inc/microbit/mpconfigport.h (L6)
This commit is contained in:
Ayke van Laethem 2018-02-06 18:45:23 +01:00 committed by Damien George
parent c1cd7e5155
commit 1b988f1e7d
1 changed files with 3 additions and 0 deletions

View File

@ -55,6 +55,9 @@
#else
#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_FLOAT)
#endif
#if NRF51
#define MICROPY_ALLOC_GC_STACK_SIZE (32)
#endif
#define MICROPY_OPT_COMPUTED_GOTO (0)
#define MICROPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE (0)