summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/export/system.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/export/system.h b/firmware/export/system.h
index de1672ae8e..32a26a9bf5 100644
--- a/firmware/export/system.h
+++ b/firmware/export/system.h
@@ -22,6 +22,7 @@
22 22
23#include "cpu.h" 23#include "cpu.h"
24#include "stdbool.h" 24#include "stdbool.h"
25#include "kernel.h"
25 26
26extern void system_reboot (void); 27extern void system_reboot (void);
27extern void system_init(void); 28extern void system_init(void);
@@ -40,7 +41,7 @@ extern unsigned int ipod_hw_rev;
40static inline void udelay(unsigned usecs) 41static inline void udelay(unsigned usecs)
41{ 42{
42 unsigned stop = USEC_TIMER + usecs; 43 unsigned stop = USEC_TIMER + usecs;
43 while (TIME_AFTER(USEC_TIMER, stop)); 44 while (TIME_BEFORE(USEC_TIMER, stop));
44} 45}
45 46
46unsigned int current_core(void); 47unsigned int current_core(void);