Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src Rename 'pulse' to 'pulsate' to make clear it is a continuous...



details:   https://anonhg.NetBSD.org/src/rev/4bdfa9fe285d
branches:  trunk
changeset: 747641:4bdfa9fe285d
user:      mbalmer <mbalmer%NetBSD.org@localhost>
date:      Fri Sep 25 20:27:50 2009 +0000

description:
Rename 'pulse' to 'pulsate' to make clear it is a continuous strain of
pulses and and not a single shot pulse that is emitted by devices
supporting this kind of operation.

diffstat:

 sys/sys/gpio.h             |  4 ++--
 usr.sbin/gpioctl/gpioctl.8 |  6 +++---
 usr.sbin/gpioctl/gpioctl.c |  4 ++--
 3 files changed, 7 insertions(+), 7 deletions(-)

diffs (56 lines):

diff -r 736bbf9a39bf -r 4bdfa9fe285d sys/sys/gpio.h
--- a/sys/sys/gpio.h    Fri Sep 25 20:26:26 2009 +0000
+++ b/sys/sys/gpio.h    Fri Sep 25 20:27:50 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gpio.h,v 1.6 2009/09/25 19:37:03 mbalmer Exp $ */
+/* $NetBSD: gpio.h,v 1.7 2009/09/25 20:27:50 mbalmer Exp $ */
 /*     $OpenBSD: gpio.h,v 1.7 2008/11/26 14:51:20 mbalmer Exp $        */
 /*
  * Copyright (c) 2009 Marc Balmer <marc%msys.ch@localhost>
@@ -39,7 +39,7 @@
 #define GPIO_PIN_INVIN         0x0100  /* invert input */
 #define GPIO_PIN_INVOUT                0x0200  /* invert output */
 #define GPIO_PIN_USER          0x0400  /* user != 0 can access */
-#define GPIO_PIN_PULSE         0x0800  /* pulse in hardware */
+#define GPIO_PIN_PULSATE       0x0800  /* pulsate in hardware */
 #define GPIO_PIN_SET           0x8000  /* set for securelevel access */
 
 /* GPIO controller description */
diff -r 736bbf9a39bf -r 4bdfa9fe285d usr.sbin/gpioctl/gpioctl.8
--- a/usr.sbin/gpioctl/gpioctl.8        Fri Sep 25 20:26:26 2009 +0000
+++ b/usr.sbin/gpioctl/gpioctl.8        Fri Sep 25 20:27:50 2009 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: gpioctl.8,v 1.6 2009/09/25 19:37:03 mbalmer Exp $
+.\" $NetBSD: gpioctl.8,v 1.7 2009/09/25 20:27:50 mbalmer Exp $
 .\"
 .\" Copyright (c) 2009 Marc Balmer <marc%msys.ch@localhost>
 .\" Copyright (c) 2004 Alexander Yurchenko <grange%openbsd.org@localhost>
@@ -137,8 +137,8 @@
 invert input
 .It iout
 invert output
-.It pulse
-pulse output
+.It pulsate
+pulsate output at a hardware-defined frequency and duty cycle
 .El
 .Pp
 Note that not all the flags may be supported by the particular GPIO controller.
diff -r 736bbf9a39bf -r 4bdfa9fe285d usr.sbin/gpioctl/gpioctl.c
--- a/usr.sbin/gpioctl/gpioctl.c        Fri Sep 25 20:26:26 2009 +0000
+++ b/usr.sbin/gpioctl/gpioctl.c        Fri Sep 25 20:27:50 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gpioctl.c,v 1.7 2009/09/25 19:37:03 mbalmer Exp $ */
+/* $NetBSD: gpioctl.c,v 1.8 2009/09/25 20:27:50 mbalmer Exp $ */
 
 /*
  * Copyright (c) 2008 Marc Balmer <mbalmer%openbsd.org@localhost>
@@ -67,7 +67,7 @@
        { GPIO_PIN_PULLDOWN, "pd" },
        { GPIO_PIN_INVIN, "iin" },
        { GPIO_PIN_INVOUT, "iout" },
-       { GPIO_PIN_PULSE, "pulse" },
+       { GPIO_PIN_PULSATE, "pulsate" },
        { 0, NULL },
 };
 



Home | Main Index | Thread Index | Old Index