[Buildroot] [PATCH] New package: gpio9260
J.C. Woltz
jwoltz at gmail.com
Mon Feb 6 21:43:03 UTC 2012
J> From: "J.C. Woltz" <jwoltz at gmail.com>
> J> gpio9260 is an utility used to read and set gpio states on
> J> the at91sam9260 and at91sam9g20 CPUs
>
> What's the advantage of using this compared to normal /sys/class/gpio
> sysfs access?
>
> I did not write this program. Its header states:
/*
* (C) Copyright 2004 Roman Avramenko <roman at imsystems.ru>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*/
Calao and Synapse Wireless ship the gpio9260 to allow script and users easy
access to (primarily) push buttons. It is used like:
/usr/bin/gpio9260 ?PB10
Then the return code lets you know the state of the input. Or it can be
used to set outputs, but in that case the /sys/class/led or other makes
sense.
> It's just a program (no headers/libraries), so why install into staging?
>
>
That is my mistake. I will fix that.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildroot.org/pipermail/buildroot/attachments/20120206/37bae65c/attachment-0001.html>
More information about the buildroot
mailing list