diff options
| author | Charles.Forsyth <devnull@localhost> | 2006-12-22 20:52:35 +0000 |
|---|---|---|
| committer | Charles.Forsyth <devnull@localhost> | 2006-12-22 20:52:35 +0000 |
| commit | 46439007cf417cbd9ac8049bb4122c890097a0fa (patch) | |
| tree | 6fdb25e5f3a2b6d5657eb23b35774b631d4d97e4 /man/3/switch | |
| parent | 37da2899f40661e3e9631e497da8dc59b971cbd0 (diff) | |
20060303-partial
Diffstat (limited to 'man/3/switch')
| -rw-r--r-- | man/3/switch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/man/3/switch b/man/3/switch new file mode 100644 index 00000000..4c74db66 --- /dev/null +++ b/man/3/switch @@ -0,0 +1,28 @@ +.TH SWITCH 3 MPC8xx +.SH NAME +switch \- hardware option switch +.SH SYNOPSYS +.nf +.B bind -a '#r' /dev + +.B /dev/switch +.fi +.SH DESCRIPTION +.PP +The switch device serves a one-level directory, +giving access to one read-only file, +.BR switch . +A read returns the value of the development board's +option switch (DS1), represented as a decimal number +from 0 to 15, representing four bits, +each corresponding to one of the four toggles. +Each toggle produces the value 0 when it +is set `ON' and 1 when it is off. +Toggle 1 corresponds to bit +.B 1<<3 +in the number, +toggle 2 corresponds to bit +.BR 1<<2 , +and so on +.SH SOURCE +.B /os/mpc/devrtc.c |
