summaryrefslogtreecommitdiff
path: root/esp8266/main.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-12-09 17:05:51 +1100
committerDamien George <damien.p.george@gmail.com>2016-12-09 17:13:00 +1100
commit3a4ebf57685e2ea03deb61276f832108b4ab08b7 (patch)
treef2907a2239333a381712ff4927f66194fb227af2 /esp8266/main.c
parentf76b1bfa9f59fcfa03837c6934ad51d2db3ff4a3 (diff)
esp8266: Enable inline Xtensa assembler.
With this patch, @micropython.asm_xtensa can be used on the esp8266 port.
Diffstat (limited to 'esp8266/main.c')
-rw-r--r--esp8266/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/esp8266/main.c b/esp8266/main.c
index 1e988ef33..9883f9f96 100644
--- a/esp8266/main.c
+++ b/esp8266/main.c
@@ -58,7 +58,7 @@ STATIC void mp_reset(void) {
MP_STATE_PORT(mp_kbd_exception) = mp_obj_new_exception(&mp_type_KeyboardInterrupt);
MP_STATE_PORT(term_obj) = MP_OBJ_NULL;
MP_STATE_PORT(dupterm_arr_obj) = MP_OBJ_NULL;
- #if MICROPY_EMIT_XTENSA
+ #if MICROPY_EMIT_XTENSA || MICROPY_EMIT_INLINE_XTENSA
extern void esp_native_code_init(void);
esp_native_code_init();
#endif