[ion] Ensure ion_sleep is not optimized out

Change-Id: Ifb468a8bc163acade32225b39aa261d552bdb4c9
This commit is contained in:
Romain Goyet
2016-08-18 17:16:10 +02:00
parent 827ec2fc20
commit fb4a67ae41

View File

@@ -26,7 +26,7 @@ void init_platform() {
}
void ion_sleep(long ms) {
for (long i=0; i<1040*ms; i++) {
for (volatile long i=0; i<1040*ms; i++) {
__asm volatile("nop");
}
}