blob: adab3cac64f9f1fff71e561feb4af5a24822f2c7 [file] [log] [blame]
Johnny Kimc5c77ba2015-05-11 14:30:56 +09001
Dean Leec3ea8a72015-06-16 15:28:21 +09002#include "wilc_sleep.h"
Johnny Kimc5c77ba2015-05-11 14:30:56 +09003
Johnny Kimc5c77ba2015-05-11 14:30:56 +09004/*
5 * @author mdaftedar
6 * @date 10 Aug 2010
7 * @version 1.0
8 */
Chaehyun Lim4e4467f2015-06-11 14:35:55 +09009void WILC_Sleep(u32 u32TimeMilliSec)
Johnny Kimc5c77ba2015-05-11 14:30:56 +090010{
11 if (u32TimeMilliSec <= 4000000) {
Chaehyun Lim4e4467f2015-06-11 14:35:55 +090012 u32 u32Temp = u32TimeMilliSec * 1000;
Johnny Kimc5c77ba2015-05-11 14:30:56 +090013 usleep_range(u32Temp, u32Temp);
Johnny Kimc5c77ba2015-05-11 14:30:56 +090014 } else {
15 msleep(u32TimeMilliSec);
16 }
17
18}