diff options
| author | graham sanderson <graham.sanderson@raspberrypi.org> | 2020-12-12 13:04:10 -0600 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2021-01-29 23:57:10 +1100 |
| commit | 40d2010882409e71080f519312488f5bb951238b (patch) | |
| tree | ead21159f6f8e73e4bd956131cb0eb220d9b8c0b /py/mpconfig.h | |
| parent | fe16e785fe76ca2c84b82512c427c7fa57176abe (diff) | |
py/asmthumb: Add support for ARMv6M in native emitter.
Adds a new compile-time option MICROPY_EMIT_THUMB_ARMV7M which is enabled
by default (to get existing behaviour) and which should be disabled (set to
0) when building native emitter support (@micropython.native) on ARMv6M
targets.
Diffstat (limited to 'py/mpconfig.h')
| -rw-r--r-- | py/mpconfig.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h index 854188b66..1df2e8fe9 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -304,6 +304,11 @@ #define MICROPY_EMIT_THUMB (0) #endif +// Whether to emit ARMv7-M instruction support in thumb native code +#ifndef MICROPY_EMIT_THUMB_ARMV7M +#define MICROPY_EMIT_THUMB_ARMV7M (1) +#endif + // Whether to enable the thumb inline assembler #ifndef MICROPY_EMIT_INLINE_THUMB #define MICROPY_EMIT_INLINE_THUMB (0) |
