From 7c87747db087e397dd01fd138721202e06999e39 Mon Sep 17 00:00:00 2001 From: Daniel Campora Date: Wed, 9 Sep 2015 13:08:32 +0200 Subject: [PATCH] cc3200: Disable some uPy features in debug mode to help code fit. --- cc3200/mpconfigport.h | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/cc3200/mpconfigport.h b/cc3200/mpconfigport.h index c6397c1f8f..f81bd1af52 100644 --- a/cc3200/mpconfigport.h +++ b/cc3200/mpconfigport.h @@ -48,7 +48,11 @@ #define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_NONE) #define MICROPY_OPT_COMPUTED_GOTO (0) #define MICROPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE (0) +#ifndef DEBUG // we need ram on the launchxl while debugging #define MICROPY_CPYTHON_COMPAT (1) +#else +#define MICROPY_CPYTHON_COMPAT (0) +#endif #define MICROPY_QSTR_BYTES_IN_HASH (1) /* Enable FatFS LFNs @@ -62,15 +66,25 @@ #define MICROPY_STREAMS_NON_BLOCK (1) #define MICROPY_MODULE_WEAK_LINKS (1) #define MICROPY_CAN_OVERRIDE_BUILTINS (1) +#define MICROPY_PY_BUILTINS_TIMEOUTERROR (1) +#ifndef DEBUG #define MICROPY_PY_BUILTINS_STR_UNICODE (1) #define MICROPY_PY_BUILTINS_STR_SPLITLINES (1) #define MICROPY_PY_BUILTINS_MEMORYVIEW (1) #define MICROPY_PY_BUILTINS_FROZENSET (1) #define MICROPY_PY_BUILTINS_EXECFILE (1) -#define MICROPY_PY_BUILTINS_TIMEOUTERROR (1) -#define MICROPY_PY_MICROPYTHON_MEM_INFO (0) #define MICROPY_PY_ARRAY_SLICE_ASSIGN (1) #define MICROPY_PY_COLLECTIONS_ORDEREDDICT (1) +#else +#define MICROPY_PY_BUILTINS_STR_UNICODE (0) +#define MICROPY_PY_BUILTINS_STR_SPLITLINES (0) +#define MICROPY_PY_BUILTINS_MEMORYVIEW (0) +#define MICROPY_PY_BUILTINS_FROZENSET (0) +#define MICROPY_PY_BUILTINS_EXECFILE (0) +#define MICROPY_PY_ARRAY_SLICE_ASSIGN (0) +#define MICROPY_PY_COLLECTIONS_ORDEREDDICT (0) +#endif +#define MICROPY_PY_MICROPYTHON_MEM_INFO (0) #define MICROPY_PY_SYS_MAXSIZE (1) #define MICROPY_PY_SYS_EXIT (1) #define MICROPY_PY_SYS_STDFILES (1)