summaryrefslogtreecommitdiff
path: root/stmhal/mpconfigport.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-07-12 12:51:37 +1000
committerDamien George <damien.p.george@gmail.com>2017-07-12 12:51:37 +1000
commitf1d260d878105bfbf25c0bb68da6190e35fc106a (patch)
treeed97dade2987af46d9114be53cafc0f8092e7cec /stmhal/mpconfigport.h
parent12d4fa9b37408ed682e52c3d78ecd6c269a4904a (diff)
stmhal: Reduce size of ESPRUINO_PICO build so it fits in flash.
The default frozen modules are no longer included (but users can still specify their own via FROZEN_MPY_DIR), complex numbers are disabled and so are the native, viper and asm_thumb emitters. Users needing these features can tune the build to disable other things.
Diffstat (limited to 'stmhal/mpconfigport.h')
-rw-r--r--stmhal/mpconfigport.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/stmhal/mpconfigport.h b/stmhal/mpconfigport.h
index 96a330d13..d3ce11e02 100644
--- a/stmhal/mpconfigport.h
+++ b/stmhal/mpconfigport.h
@@ -39,8 +39,12 @@
// emitters
#define MICROPY_PERSISTENT_CODE_LOAD (1)
+#ifndef MICROPY_EMIT_THUMB
#define MICROPY_EMIT_THUMB (1)
+#endif
+#ifndef MICROPY_EMIT_INLINE_THUMB
#define MICROPY_EMIT_INLINE_THUMB (1)
+#endif
// compiler configuration
#define MICROPY_COMP_MODULE_CONST (1)