Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 1 | |
Dean Lee | c3ea8a7 | 2015-06-16 15:28:21 +0900 | [diff] [blame^] | 2 | #include "wilc_sleep.h" |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 3 | |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 4 | /* |
5 | * @author mdaftedar | ||||
6 | * @date 10 Aug 2010 | ||||
7 | * @version 1.0 | ||||
8 | */ | ||||
Chaehyun Lim | 4e4467f | 2015-06-11 14:35:55 +0900 | [diff] [blame] | 9 | void WILC_Sleep(u32 u32TimeMilliSec) |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 10 | { |
11 | if (u32TimeMilliSec <= 4000000) { | ||||
Chaehyun Lim | 4e4467f | 2015-06-11 14:35:55 +0900 | [diff] [blame] | 12 | u32 u32Temp = u32TimeMilliSec * 1000; |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 13 | usleep_range(u32Temp, u32Temp); |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 14 | } else { |
15 | msleep(u32TimeMilliSec); | ||||
16 | } | ||||
17 | |||||
18 | } |