ASURO Library
2.80
Hauptseite
Dateien
Auflistung der Dateien
Datei-Elemente
lib
time.c
gehe zur Dokumentation dieser Datei
1
/****************************************************************************/
33
/*****************************************************************************
34
* *
35
* This program is free software; you can redistribute it and/or modify *
36
* it under the terms of the GNU General Public License as published by *
37
* the Free Software Foundation; either version 2 of the License, or *
38
* any later version. *
39
* *
40
*****************************************************************************/
41
#include "
asuro.h
"
42
43
44
45
/****************************************************************************/
78
unsigned
long
Gettime
(
void
)
79
{
80
return
((
timebase
* 256) +
count36kHz
) / 36;
81
}
82
83
84
85
/****************************************************************************/
108
void
Sleep
(
109
unsigned
char
time36kHz)
110
{
111
unsigned
char
ziel = (time36kHz +
count36kHz
) & 0x00FF;
112
113
while
(
count36kHz
!= ziel)
114
;
115
}
116
117
118
119
/****************************************************************************/
137
void
Msleep
(
138
unsigned
int
ms)
139
{
140
unsigned
int
z;
141
for
(z = 0; z < ms; z++)
142
Sleep
(36);
143
}
Erzeugt am Mit Nov 27 2013 22:55:08 für ASURO Library von
1.8.2