Do uncached reads inside ioDelay to improve delay reliability

This commit is contained in:
Yuri Kunde Schlesner 2015-05-15 19:26:14 -03:00
parent ce0eec34e7
commit 7e785433d6

View File

@ -8,6 +8,10 @@
@ioDelay ( u32 us ) @ioDelay ( u32 us )
ioDelay: ioDelay:
ldr r1, =0x18000000 @ VRAM
1:
@ Loop doing uncached reads from VRAM to make loop timing more reliable
ldr r2, [r1]
subs r0, #1 subs r0, #1
bgt ioDelay bgt 1b
bx lr bx lr