summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266/mpconfigport_512k.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-12-09 16:47:47 +1100
committerDamien George <damien.p.george@gmail.com>2016-12-09 16:51:49 +1100
commit45a6156dfd327f14f58c30ebf9159a92a5567ed5 (patch)
tree0e4d06d0be20ecaa7e610e4292580d71f4e97814 /esp8266/mpconfigport_512k.h
parent8e5aced1fd4845b23b203d8d15f9b34b6b022ceb (diff)
downloadmicropython-45a6156dfd327f14f58c30ebf9159a92a5567ed5.tar.gz
micropython-45a6156dfd327f14f58c30ebf9159a92a5567ed5.zip
esp8266: Enable native emitter for Xtensa arch.
This patch allows esp8266 to use @micropython.native and @micropython.viper function decorators. By default the executable machine code is written to the space at the end of the iram1 region. The user can call esp.set_native_code_location() to make the code go to flash instead.
Diffstat (limited to 'esp8266/mpconfigport_512k.h')
-rw-r--r--esp8266/mpconfigport_512k.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/esp8266/mpconfigport_512k.h b/esp8266/mpconfigport_512k.h
index ffdc95dbd4..1bb4524054 100644
--- a/esp8266/mpconfigport_512k.h
+++ b/esp8266/mpconfigport_512k.h
@@ -1,5 +1,8 @@
#include <mpconfigport.h>
+#undef MICROPY_EMIT_XTENSA
+#define MICROPY_EMIT_XTENSA (0)
+
#undef MICROPY_FSUSERMOUNT
#define MICROPY_FSUSERMOUNT (0)
#undef MICROPY_VFS_FAT