time.c

gehe zur Dokumentation dieser Datei
00001 /****************************************************************************/
00030 /*****************************************************************************
00031 *                                                                            *
00032 *   This program is free software; you can redistribute it and/or modify     *
00033 *   it under the terms of the GNU General Public License as published by     *
00034 *   the Free Software Foundation; either version 2 of the License, or        *
00035 *   any later version.                                                       *
00036 *                                                                            *
00037 *****************************************************************************/
00038 #include "asuro.h"
00039 
00040 
00041 
00042 /****************************************************************************/
00078 unsigned long Gettime (void)
00079 {
00080   return ((timebase * 256) + count36kHz) / 36;
00081 }
00082 
00083 
00084 
00085 /****************************************************************************/
00111 void Sleep (
00112   unsigned char time36kHz)
00113 {
00114   unsigned char ziel = (time36kHz + count36kHz) & 0x00FF;
00115 
00116   while (count36kHz != ziel)
00117     ;
00118 }
00119 
00120 
00121 
00122 /****************************************************************************/
00143 void Msleep (
00144   int dauer)
00145 {
00146   int z;
00147   for (z = 0; z < dauer; z++)
00148     Sleep (36);
00149 }

Erzeugt am Sun Nov 18 18:24:52 2007 für ASURO Library von  doxygen 1.5.1-p1