summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/export/system.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/export/system.h b/firmware/export/system.h
index 3c161a1e24..de1672ae8e 100644
--- a/firmware/export/system.h
+++ b/firmware/export/system.h
@@ -39,8 +39,8 @@ extern unsigned int ipod_hw_rev;
39 39
40static inline void udelay(unsigned usecs) 40static inline void udelay(unsigned usecs)
41{ 41{
42 unsigned start = USEC_TIMER; 42 unsigned stop = USEC_TIMER + usecs;
43 while ((USEC_TIMER - start) < usecs); 43 while (TIME_AFTER(USEC_TIMER, stop));
44} 44}
45 45
46unsigned int current_core(void); 46unsigned int current_core(void);