Module Name: src
Committed By: mbalmer
Date: Fri Sep 25 20:27:50 UTC 2009
Modified Files:
src/sys/sys: gpio.h
src/usr.sbin/gpioctl: gpioctl.8 gpioctl.c
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/sys/gpio.h
cvs rdiff -u -r1.6 -r1.7 src/usr.sbin/gpioctl/gpioctl.8
cvs rdiff -u -r1.7 -r1.8 src/usr.sbin/gpioctl/gpioctl.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/sys/gpio.h
diff -u src/sys/sys/gpio.h:1.6 src/sys/sys/gpio.h:1.7
--- src/sys/sys/gpio.h:1.6 Fri Sep 25 19:37:03 2009
+++ src/sys/sys/gpio.h Fri Sep 25 20:27:50 2009
@@ -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 <[email protected]>
@@ -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 */
Index: src/usr.sbin/gpioctl/gpioctl.8
diff -u src/usr.sbin/gpioctl/gpioctl.8:1.6 src/usr.sbin/gpioctl/gpioctl.8:1.7
--- src/usr.sbin/gpioctl/gpioctl.8:1.6 Fri Sep 25 19:37:03 2009
+++ src/usr.sbin/gpioctl/gpioctl.8 Fri Sep 25 20:27:50 2009
@@ -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 <[email protected]>
.\" Copyright (c) 2004 Alexander Yurchenko <[email protected]>
@@ -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.
Index: src/usr.sbin/gpioctl/gpioctl.c
diff -u src/usr.sbin/gpioctl/gpioctl.c:1.7 src/usr.sbin/gpioctl/gpioctl.c:1.8
--- src/usr.sbin/gpioctl/gpioctl.c:1.7 Fri Sep 25 19:37:03 2009
+++ src/usr.sbin/gpioctl/gpioctl.c Fri Sep 25 20:27:50 2009
@@ -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 <[email protected]>
@@ -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 },
};