summaryrefslogtreecommitdiff
path: root/esp8266/modesp.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/modesp.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/modesp.c')
-rw-r--r--esp8266/modesp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/esp8266/modesp.c b/esp8266/modesp.c
index 302bc01ed..a20769abc 100644
--- a/esp8266/modesp.c
+++ b/esp8266/modesp.c
@@ -699,7 +699,7 @@ STATIC mp_obj_t esp_esf_free_bufs(mp_obj_t idx_in) {
}
STATIC MP_DEFINE_CONST_FUN_OBJ_1(esp_esf_free_bufs_obj, esp_esf_free_bufs);
-#if MICROPY_EMIT_XTENSA
+#if MICROPY_EMIT_XTENSA || MICROPY_EMIT_INLINE_XTENSA
// We provide here a way of committing executable data to a region from
// which it can be executed by the CPU. There are 2 such writable regions:
@@ -822,7 +822,7 @@ STATIC const mp_map_elem_t esp_module_globals_table[] = {
{ MP_OBJ_NEW_QSTR(MP_QSTR_malloc), (mp_obj_t)&esp_malloc_obj },
{ MP_OBJ_NEW_QSTR(MP_QSTR_free), (mp_obj_t)&esp_free_obj },
{ MP_OBJ_NEW_QSTR(MP_QSTR_esf_free_bufs), (mp_obj_t)&esp_esf_free_bufs_obj },
- #if MICROPY_EMIT_XTENSA
+ #if MICROPY_EMIT_XTENSA || MICROPY_EMIT_INLINE_XTENSA
{ MP_OBJ_NEW_QSTR(MP_QSTR_set_native_code_location), (mp_obj_t)&esp_set_native_code_location_obj },
#endif