Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F146298509
D18829.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D18829.diff
View Options
Index: head/usr.sbin/pwm/pwm.8
===================================================================
--- head/usr.sbin/pwm/pwm.8
+++ head/usr.sbin/pwm/pwm.8
@@ -22,7 +22,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd November 12, 2018
+.Dd January 12, 2019
.Dt PWM 8
.Os
.Sh NAME
@@ -44,20 +44,25 @@
.Nm
.Op Fl f Ar device
.Fl c Ar channel
-.Fl p period
+.Fl p Ar period
.Nm
.Op Fl f Ar device
.Fl c Ar channel
-.Fl d duty
+.Fl d Ar duty
.Sh DESCRIPTION
The
.Nm
utility can be used to configure pwm controllers.
.Pp
The options are as follow:
-.Bl -tag -width ".Fl f Ar device"
+.Bl -tag -width "-c channel"
.It Fl c Ar channel
Channel number to operate on
+.It Fl f Ar device
+Device to operate on.
+If not specified,
+.Pa /dev/pwmc0
+is used.
.It Fl E
Enable the pwm channel
.It Fl D
@@ -73,16 +78,19 @@
.Bl -bullet
.It
Show the configuration of the pwm channel:
-.Pp
+.Bd -literal
pwm -f /dev/pwmc0 -C
+.Ed
.It
Configure a 50000 ns period and a 25000 duty cycle:
-.Pp
+.Bd -literal
pwm -f /dev/pwmc0 -p 50000 -d 25000
+.Ed
.It
Configure a 50% duty cycle:
-.Pp
+.Bd -literal
pwm -f /dev/pwmc0 -d 50%
+.Ed
.El
.Sh SEE ALSO
.Xr pwm 9 ,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 2, 12:56 PM (9 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29158204
Default Alt Text
D18829.diff (1 KB)
Attached To
Mode
D18829: pwm.8: fix markup in synopsis, add -f description
Attached
Detach File
Event Timeline
Log In to Comment