summaryrefslogtreecommitdiffstats
path: root/share/man/man4/led.4
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-11-03 17:55:02 +0000
committerphk <phk@FreeBSD.org>2003-11-03 17:55:02 +0000
commitc5a32d4605626f00a1623a1a79c0c7a26fbbf910 (patch)
treea0845fce9982c5d93f3942743ca1c0221a364f19 /share/man/man4/led.4
parentd75892856f5eb960dbc5923ab1a75057721cdab2 (diff)
downloadFreeBSD-src-c5a32d4605626f00a1623a1a79c0c7a26fbbf910.zip
FreeBSD-src-c5a32d4605626f00a1623a1a79c0c7a26fbbf910.tar.gz
More mdocery from Sergey (osa@)
Diffstat (limited to 'share/man/man4/led.4')
-rw-r--r--share/man/man4/led.418
1 files changed, 10 insertions, 8 deletions
diff --git a/share/man/man4/led.4 b/share/man/man4/led.4
index 494450e..acf8ab0 100644
--- a/share/man/man4/led.4
+++ b/share/man/man4/led.4
@@ -36,10 +36,15 @@
typedef void led_t(void *priv, int onoff);
.Ed
.Ft dev_t
-.Fn led_create "led_t *func" "void *priv" "char const *name"
-.Pp
+.Fo led_create
+.Fa "led_t *func"
+.Fa "void *priv"
+.Fa "char const *name"
+.Fc
.Ft void
-.Fn led_destroy "dev_t dev"
+.Fo led_destroy
+.Fa "dev_t dev"
+.Fc
.Sh DESCRIPTION
The
.Nm
@@ -56,7 +61,7 @@ argument is passed back to this on/off function and can be used however
the hardware driver sees fit.
.Pp
The lamp can be controlled by opening and writing ascii strings to the
- "/dev/led/bla" device.
+"/dev/led/bla" device.
.Pp
In the following we will use this special notation to indicate the resulting
output of the announciator:
@@ -72,7 +77,6 @@ it is possible to flash the announciator with very short periods and
synchronize it with program events.
It should be noted that there is a non-trivial overhead, so this may
not be usable for benchmarking or measuring short intervals.
-.Pp
.Bl -tag -width Ds -offset indent -compact
.It Ic 0
Turn the announciator off immediately.
@@ -81,7 +85,6 @@ Turn the announciator on immediately.
.El
.Pp
Flashing can be set with a given period. The pattern continues endlessly.
-.Pp
.Bl -tag -width Ds -offset indent -compact
.It Ic f
_*
@@ -97,7 +100,6 @@ _________*********
.El
.Pp
Three high-level commands are available:
-.Pp
.Bl -tag -width Ds -offset indent -compact
.It Ic d%d
numbers. Each digit is blinked out at 1/10th second, zero as
@@ -123,8 +125,8 @@ becomes __
becomes ____
.El
.Pp
-The sequence is repeated after a one second pause.
.El
+The sequence is repeated after a one second pause.
.Sh EXAMPLES
A 'd12' flashes the lamp
.Bd -literal -offset indent
OpenPOWER on IntegriCloud