svn commit: r343826 - head/usr.sbin/pwm

Yuri Pankov yuripv at
Wed Feb 6 04:00:38 UTC 2019

Author: yuripv
Date: Wed Feb  6 04:00:37 2019
New Revision: 343826

  pwm.8: fix markup in synopsis, add -f description
  Reviewed by:	bcr, manu
  Differential revision:


Modified: head/usr.sbin/pwm/pwm.8
--- head/usr.sbin/pwm/pwm.8	Wed Feb  6 03:57:51 2019	(r343825)
+++ head/usr.sbin/pwm/pwm.8	Wed Feb  6 04:00:37 2019	(r343826)
@@ -22,7 +22,7 @@
 .\" $FreeBSD$
-.Dd November 12, 2018
+.Dd January 12, 2019
 .Dt PWM 8
@@ -44,20 +44,25 @@
 .Op Fl f Ar device
 .Fl c Ar channel
-.Fl p period
+.Fl p Ar period
 .Op Fl f Ar device
 .Fl c Ar channel
-.Fl d duty
+.Fl d Ar duty
 utility can be used to configure pwm controllers.
 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 @@ Configure the duty (in nanoseconds or percentage) of t
 .Bl -bullet
 Show the configuration of the pwm channel:
+.Bd -literal
 pwm -f /dev/pwmc0 -C
 Configure a 50000 ns period and a 25000 duty cycle:
+.Bd -literal
 pwm -f /dev/pwmc0 -p 50000 -d 25000
 Configure a 50% duty cycle:
+.Bd -literal
 pwm -f /dev/pwmc0 -d 50%
 .Xr pwm 9 ,

More information about the svn-src-all mailing list