RSA BSAFE Micro Edition Suite

Streamlined security for mobile and embedded devices

Search  Print

r_sleep.h

Go to the documentation of this file.
00001 /* $Id: r_sleep.h,v 1.5 2005/06/30 05:25:42 jmckee Exp $ */
00002 /*
00003  * Copyright (C) 1998-2003 RSA Security Inc. All rights reserved.
00004  *
00005  * This work contains proprietary information of RSA Security.
00006  * Distribution is limited to authorized licensees of RSA
00007  * Security. Any unauthorized reproduction, distribution or
00008  * modification of this work is strictly prohibited.
00009  */
00015 #ifndef HEADER_COMMON_R_SLEEP_H
00016 #define HEADER_COMMON_R_SLEEP_H
00017 
00018 #ifdef  __cplusplus
00019 extern "C" {
00020 #endif
00021 
00022 #if defined(WINDOWS) || defined(WIN32)
00023 
00024 #define R_sleep(sec)               Sleep(sec * 1000L)
00025 
00026 #elif defined(ChorusOS)
00027 
00028 #include <arpa/ftpd/systemSleep.h>
00029 #define R_sleep(sec)               systemSleep(sec)
00030 
00031 #elif defined(VXWORKS)
00032 
00033 #include <sysLib.h>
00034 #define R_sleep(sec)               taskDelay(sec * sysClkRateGet());
00035 
00036 #else
00037 
00038 #define R_sleep(sec)               sleep(sec)
00039 
00040 #endif
00041 
00042 #ifdef  __cplusplus
00043 }
00044 #endif
00045 
00046 #endif /* HEADER_COMMON_R_SLEEP_H */
00047 
00048 

Copyright (c) 1999-2005 RSA Security Inc. All rights reserved. 072-001001-2100-001-000 - 2.1