diff options
author | Damien George <damien.p.george@gmail.com> | 2016-12-09 13:17:49 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-12-09 17:06:21 +1100 |
commit | ad297a1950c74c35c90dd655ae9a69d33ed28dc0 (patch) | |
tree | 91deea064af391e5dcfadf76e584a48e57da09d2 /py/objfun.c | |
parent | 45a6156dfd327f14f58c30ebf9159a92a5567ed5 (diff) | |
download | micropython-ad297a1950c74c35c90dd655ae9a69d33ed28dc0.tar.gz micropython-ad297a1950c74c35c90dd655ae9a69d33ed28dc0.zip |
py: Allow inline-assembler emitter to be generic.
This patch refactors some code so that it is easier to integrate new
inline assemblers for different architectures other than ARM Thumb.
Diffstat (limited to 'py/objfun.c')
-rw-r--r-- | py/objfun.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/py/objfun.c b/py/objfun.c index 6b8fe6d382..207e68a771 100644 --- a/py/objfun.c +++ b/py/objfun.c @@ -471,7 +471,7 @@ mp_obj_t mp_obj_new_fun_viper(mp_uint_t n_args, void *fun_data, mp_uint_t type_s /******************************************************************************/ /* inline assembler functions */ -#if MICROPY_EMIT_INLINE_THUMB +#if MICROPY_EMIT_INLINE_ASM typedef struct _mp_obj_fun_asm_t { mp_obj_base_t base; @@ -582,4 +582,4 @@ mp_obj_t mp_obj_new_fun_asm(mp_uint_t n_args, void *fun_data, mp_uint_t type_sig return o; } -#endif // MICROPY_EMIT_INLINE_THUMB +#endif // MICROPY_EMIT_INLINE_ASM |