stm32/machine_bitstream: Include all clobbered regs in Cortex-M0 impl.
These additional registers are used by the assembly code. Thanks to Jim Mussared for the fix. Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
parent
43d50f006d
commit
66b5c4c770
@ -146,7 +146,7 @@ void machine_bitstream_high_low(mp_hal_pin_obj_t pin, uint32_t *timing_ns, const
|
||||
".done:\n"
|
||||
:
|
||||
: "m" (len), "m" (buf), "m" (timing_ns), "m" (bsrr), "m" (high_mask), "m" (low_mask)
|
||||
: "r0", "r1", "r2", "r3", "r7", "r8"
|
||||
: "r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7", "r8"
|
||||
);
|
||||
|
||||
MICROPY_END_ATOMIC_SECTION(atomic_state);
|
||||
|
Loading…
x
Reference in New Issue
Block a user