2003-04-22 21:02:15 +02:00
|
|
|
#include <delay.h>
|
2003-07-19 06:28:22 +02:00
|
|
|
void mdelay(unsigned msecs)
|
2003-04-22 21:02:15 +02:00
|
|
|
{
|
2003-07-19 06:28:22 +02:00
|
|
|
unsigned i;
|
2003-04-22 21:02:15 +02:00
|
|
|
for(i = 0; i < msecs; i++) {
|
|
|
|
udelay(1000);
|
|
|
|
}
|
|
|
|
}
|
2003-07-19 06:28:22 +02:00
|
|
|
void delay(unsigned secs)
|
2003-04-22 21:02:15 +02:00
|
|
|
{
|
2003-07-19 06:28:22 +02:00
|
|
|
unsigned i;
|
2003-04-22 21:02:15 +02:00
|
|
|
for(i = 0; i < secs; i++) {
|
|
|
|
mdelay(1000);
|
|
|
|
}
|
|
|
|
}
|