diff options
author | David Lechner <david@pybricks.com> | 2019-06-27 16:43:05 -0500 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-07-03 01:24:22 +1000 |
commit | f3a5b313e55e8853928702eec16c932481f370fc (patch) | |
tree | f9d01fea7cd4e68d3420f86405d05c9e64add7d9 /py/lexer.h | |
parent | 62b00dd5d8cd6207147d37222e1c249ef6381841 (diff) |
py/nlrthumb: Check __thumb2__ instead of __ARM_ARCH_6M__.
This fixes compiling for older architectures (e.g. armv5tej).
According to [1], the limit of R0-R7 for the STR and LDR instructions is
tied to the Thumb instruction set and not any specific processor
architectures.
[1]: http://www.keil.com/support/man/docs/armasm/armasm_dom1361289906890.htm
Diffstat (limited to 'py/lexer.h')
0 files changed, 0 insertions, 0 deletions