From owner-freebsd-arm@FreeBSD.ORG Tue Sep 30 01:37:25 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 100B2115 for ; Tue, 30 Sep 2014 01:37:25 +0000 (UTC) Received: from alogt.com (alogt.com [69.36.191.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DCE83303 for ; Tue, 30 Sep 2014 01:37:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=alogt.com; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date; bh=F7PyTJHC9BUE0G5ULxEWuC2XxmpSDg3lPhd6BJERYQM=; b=MbWk/CUaNs3rKrVZq82Sy/1VgcyFON1bCSgZv37ZplWSQXsXd3qnYEuGpvO0puCYGpB7WvSN75rCl3nNp2KCt2aDviwtAHxpqaoYsv0i/0HBR9ayiL1bx8l7M+yvIyq+6Mwr5FMiKHz4pKis8D2O66n9zeTk7eKPHaQbRiyMTDo=; Received: from [182.5.218.90] (port=29362 helo=X220.alogt.com) by sl-508-2.slc.westdc.net with esmtpsa (SSLv3:AES128-SHA:128) (Exim 4.82) (envelope-from ) id 1XYmNX-003A8v-2W; Mon, 29 Sep 2014 19:37:23 -0600 Date: Tue, 30 Sep 2014 09:37:13 +0800 From: Erich Dollansky To: Tom Everett Subject: Re: Documentation for using GPIO Message-ID: <20140930093713.438c9016@X220.alogt.com> In-Reply-To: References: <20140929080337.46bbb5a3@X220.alogt.com> <20140930081618.122a0c79@X220.alogt.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - sl-508-2.slc.westdc.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - alogt.com X-Get-Message-Sender-Via: sl-508-2.slc.westdc.net: authenticated_id: erichsfreebsdlist@alogt.com X-Source: X-Source-Args: X-Source-Dir: Cc: "freebsd-arm@freebsd.org" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Sep 2014 01:37:25 -0000 Hi, On Mon, 29 Sep 2014 18:37:53 -0600 Tom Everett wrote: > I published a simple example here. > > https://github.com/teverett/gpioexample > thanks. I already have it on my machine. Your own site has many other useful information too. One general note. At least for me, it is very often very difficult when things are very simple but the simplicity is not stated in documentation. Erich > On Mon, Sep 29, 2014 at 6:16 PM, Erich Dollansky < > erichsfreebsdlist@alogt.com> wrote: > > > Hi Luiz, > > > > On Mon, 29 Sep 2014 16:27:26 -0300 > > Luiz Otavio O Souza wrote: > > > > > > is there some documentation available of how to use GPIO on a > > > > Raspberry Pi B+ than man gpio, man gpioctl etc? > > > > > > > Unfortunately not, there is the Wiki page > > > (https://wiki.freebsd.org/FreeBSD/GPIO) but it doesn't add much. > > > > > I ave read this. > > > > > But we can try to help you whenever possible, just post your > > > questions and we'll try to address them. > > > > I am currently working on a C program which should use GPIO to > > switch relais and read the state of switches via GPIO. I would like > > to make this program as simple as possible by creating first a > > layer which provides then functions like set (Pin), reset (Pin) > > and read (Pin) only. Of course plus the things needed to open, > > close and configure the interface. > > > > The best I have found until now are the sources of gpioctl. I am > > currently looking at the source. > > > > Is this the best start? > > > > Erich > > _______________________________________________ > > freebsd-arm@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > > To unsubscribe, send any mail to > > "freebsd-arm-unsubscribe@freebsd.org" > > > > >