Skip to content

Commit 5dc5370

Browse files
mcbridejcsalkinium
authored andcommitted
Include lr in delay_ns clobber list
1 parent 6b4d656 commit 5dc5370

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modm/platform/core/cortex/delay_impl.hpp.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ void delay_ns(uint32_t ns)
4343
asm volatile(
4444
"mov r0, %0 \n\t"
4545
"blx %1"
46-
:: "r" (ns), "l" (platform::delay_ns) : "r0", "r1", "r2");
46+
:: "r" (ns), "l" (platform::delay_ns) : "r0", "r1", "r2", "lr");
4747
}
4848

4949

0 commit comments

Comments
 (0)