|
@@ -75,12 +75,13 @@ int32_t random(void)
|
75
|
75
|
/**************************************************************************
|
76
|
76
|
SLEEP
|
77
|
77
|
**************************************************************************/
|
78
|
|
-void sleep(int secs)
|
|
78
|
+unsigned int sleep(unsigned int secs)
|
79
|
79
|
{
|
80
|
80
|
unsigned long tmo;
|
81
|
81
|
|
82
|
82
|
for (tmo = currticks()+secs*TICKS_PER_SEC; currticks() < tmo; ) {
|
83
|
83
|
}
|
|
84
|
+ return 0;
|
84
|
85
|
}
|
85
|
86
|
|
86
|
87
|
/**************************************************************************
|
|
@@ -89,7 +90,7 @@ INTERRUPTIBLE SLEEP
|
89
|
90
|
void interruptible_sleep(int secs)
|
90
|
91
|
{
|
91
|
92
|
printf("<sleep>\n");
|
92
|
|
- return sleep(secs);
|
|
93
|
+ sleep(secs);
|
93
|
94
|
}
|
94
|
95
|
|
95
|
96
|
/**************************************************************************
|