2003-04-22 21:02:15 +02:00
|
|
|
#include <delay.h>
|
2017-03-09 01:34:12 +01:00
|
|
|
void mdelay(unsigned int msecs)
|
2003-04-22 21:02:15 +02:00
|
|
|
{
|
2017-03-09 01:34:12 +01:00
|
|
|
unsigned int i;
|
2017-03-09 02:37:06 +01:00
|
|
|
for(i = 0; i < msecs; i++)
|
2003-04-22 21:02:15 +02:00
|
|
|
udelay(1000);
|
|
|
|
}
|
2017-03-09 01:34:12 +01:00
|
|
|
void delay(unsigned int secs)
|
2003-04-22 21:02:15 +02:00
|
|
|
{
|
2017-03-09 01:34:12 +01:00
|
|
|
unsigned int i;
|
2017-03-09 02:37:06 +01:00
|
|
|
for(i = 0; i < secs; i++)
|
2003-04-22 21:02:15 +02:00
|
|
|
mdelay(1000);
|
|
|
|
}
|