diff options
Diffstat (limited to 'drivers/staging/wilc1000/wilc_sleep.c')
-rw-r--r-- | drivers/staging/wilc1000/wilc_sleep.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/staging/wilc1000/wilc_sleep.c b/drivers/staging/wilc1000/wilc_sleep.c new file mode 100644 index 0000000..adab3ca --- /dev/null +++ b/drivers/staging/wilc1000/wilc_sleep.c @@ -0,0 +1,18 @@ + +#include "wilc_sleep.h" + +/* + * @author mdaftedar + * @date 10 Aug 2010 + * @version 1.0 + */ +void WILC_Sleep(u32 u32TimeMilliSec) +{ + if (u32TimeMilliSec <= 4000000) { + u32 u32Temp = u32TimeMilliSec * 1000; + usleep_range(u32Temp, u32Temp); + } else { + msleep(u32TimeMilliSec); + } + +} |