···11-/****************************************************************************22- ******* *******33- ******* T I M E44- ******* *******55- ****************************************************************************66-77- Author : Jeremy Rolls88- Date :99-1010- *1111- * (C) 1990 - 2000 Specialix International Ltd., Byfleet, Surrey, UK.1212- *1313-1414- * This program is free software; you can redistribute it and/or modify1515- * it under the terms of the GNU General Public License as published by1616- * the Free Software Foundation; either version 2 of the License, or1717- * (at your option) any later version.1818- *1919- * This program is distributed in the hope that it will be useful,2020- * but WITHOUT ANY WARRANTY; without even the implied warranty of2121- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the2222- * GNU General Public License for more details.2323- *2424- * You should have received a copy of the GNU General Public License2525- * along with this program; if not, write to the Free Software2626- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.2727-2828- Version : 0.012929-3030-3131- Mods3232- ----------------------------------------------------------------------------3333- Date By Description3434- ----------------------------------------------------------------------------3535-3636- ***************************************************************************/3737-3838-#ifndef _riotime_h3939-#define _riotime_h 14040-4141-#ifndef lint4242-#ifdef SCCS4343-static char *_rio_riotime_h_sccs = "@(#)riotime.h 1.1";4444-#endif4545-#endif4646-4747-#define TWO_POWER_FIFTEEN (ushort)327684848-#define RioTime() riotime4949-#define RioTimeAfter(time1,time2) ((ushort)time1 - (ushort)time2) < TWO_POWER_FIFTEEN5050-#define RioTimePlus(time1,time2) ((ushort)time1 + (ushort)time2)5151-5252-/**************************************5353- * Convert a RIO tick (1/10th second)5454- * into transputer low priority ticks5555- *************************************/5656-#define RioTimeToLow(time) (time*(100000 / 64))5757-#define RioLowToTime(time) ((time*64)/100000)5858-5959-#define RIOTENTHSECOND (ushort)16060-#define RIOSECOND (ushort)(RIOTENTHSECOND * 10)6161-#endif6262-6363-/*********** end of file ***********/