blob: 726658372efda5e3dc9342b51b6f3d34bc46aee1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
.TH DELAY 10.2
.SH NAME
delay, microdelay, addclock0link \- small delays, clock interrupts
.SH SYNOPSIS
.ta \w'\fLvoid 'u
.B
void delay(int n)
.PP
.B
void microdelay(int n)
.PP
.B
void addclock0link(void(*clockf)(void))
.SH DESCRIPTION
.I Delay
busy waits for
.I n
milliseconds, forced to be at least one millisecond.
.PP
.I Microdelay
is similar, but busy waits for
.IR n
microseconds.
.PP
For delays on the order of clock ticks,
.I tsleep
(see
.IR sleep (10.2))
provides a better alternative to the busy waiting of these routines.
.PP
.I Addclock0link
adds
.I clockf
to a list of functions to be executed at each clock interrupt.
.SH SEE ALSO
.IR sleep (10.2)
|