2 * $Id: ORTEMisc.c,v 0.0.0.1 2004/01/27
4 * DEBUG: section 34 miscellaneous functions
5 * AUTHOR: Petr Smolik petr.smolik@wo.cz
7 * ORTE - OCERA Real-Time Ethernet http://www.ocera.org/
8 * --------------------------------------------------------------------
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
25 ORTESleepMs(unsigned int ms) {
26 #if defined(CONFIG_ORTE_UNIX) && defined (HAVE_UNISTD_H)
29 #ifdef CONFIG_ORTE_RTL
32 #if defined CONFIG_ORTE_WIN
35 #ifdef CONFIG_ORTE_RTAI
36 rt_sleep(nano2count(ms*1000000));