Skip to content

Commit 7c87747

Browse files
author
Daniel Campora
committed
cc3200: Disable some uPy features in debug mode to help code fit.
1 parent 425958b commit 7c87747

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

cc3200/mpconfigport.h

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@
4848
#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_NONE)
4949
#define MICROPY_OPT_COMPUTED_GOTO (0)
5050
#define MICROPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE (0)
51+
#ifndef DEBUG // we need ram on the launchxl while debugging
5152
#define MICROPY_CPYTHON_COMPAT (1)
53+
#else
54+
#define MICROPY_CPYTHON_COMPAT (0)
55+
#endif
5256
#define MICROPY_QSTR_BYTES_IN_HASH (1)
5357

5458
/* Enable FatFS LFNs
@@ -62,15 +66,25 @@
6266
#define MICROPY_STREAMS_NON_BLOCK (1)
6367
#define MICROPY_MODULE_WEAK_LINKS (1)
6468
#define MICROPY_CAN_OVERRIDE_BUILTINS (1)
69+
#define MICROPY_PY_BUILTINS_TIMEOUTERROR (1)
70+
#ifndef DEBUG
6571
#define MICROPY_PY_BUILTINS_STR_UNICODE (1)
6672
#define MICROPY_PY_BUILTINS_STR_SPLITLINES (1)
6773
#define MICROPY_PY_BUILTINS_MEMORYVIEW (1)
6874
#define MICROPY_PY_BUILTINS_FROZENSET (1)
6975
#define MICROPY_PY_BUILTINS_EXECFILE (1)
70-
#define MICROPY_PY_BUILTINS_TIMEOUTERROR (1)
71-
#define MICROPY_PY_MICROPYTHON_MEM_INFO (0)
7276
#define MICROPY_PY_ARRAY_SLICE_ASSIGN (1)
7377
#define MICROPY_PY_COLLECTIONS_ORDEREDDICT (1)
78+
#else
79+
#define MICROPY_PY_BUILTINS_STR_UNICODE (0)
80+
#define MICROPY_PY_BUILTINS_STR_SPLITLINES (0)
81+
#define MICROPY_PY_BUILTINS_MEMORYVIEW (0)
82+
#define MICROPY_PY_BUILTINS_FROZENSET (0)
83+
#define MICROPY_PY_BUILTINS_EXECFILE (0)
84+
#define MICROPY_PY_ARRAY_SLICE_ASSIGN (0)
85+
#define MICROPY_PY_COLLECTIONS_ORDEREDDICT (0)
86+
#endif
87+
#define MICROPY_PY_MICROPYTHON_MEM_INFO (0)
7488
#define MICROPY_PY_SYS_MAXSIZE (1)
7589
#define MICROPY_PY_SYS_EXIT (1)
7690
#define MICROPY_PY_SYS_STDFILES (1)

0 commit comments

Comments
 (0)