From owner-freebsd-arm@FreeBSD.ORG Tue Sep 30 00:43:20 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 7E0E67EB for ; Tue, 30 Sep 2014 00:43:20 +0000 (UTC) Received: from mail-ie0-f174.google.com (mail-ie0-f174.google.com [209.85.223.174]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4A792FDC for ; Tue, 30 Sep 2014 00:43:19 +0000 (UTC) Received: by mail-ie0-f174.google.com with SMTP id tr6so2598289ieb.5 for ; Mon, 29 Sep 2014 17:43:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=MGYBBFh/ED3avoGO+FbYbToKz4dzrz9eusALoWnF6O8=; b=fdxP/L1QRkeFss13hJzbW9AeRnuZ9n2DPDQSQbTAKLA58h0Ter+0cdany40OtIXKBX ZBwBPDDThGe/o8f+Et2RaZLC/oLA5eKa9IJcz5ivFd+C8hJ9domXpPZzy7F4byDZsWFb gSGWegJO0IboRBAPPKuMiEOll+Z8d5IRvdyqjBAmgnsv9qi20Wgg0nGfA8/fZeG36ziS ORYl5+WECd1sDon7jPeUTEQ588Ok/E9VSQRDt026XbzNV+oAZeK3rBZVONpWENk6Am6P J2ewmRWhzV5NLoSVfxRHqLqzirPmh0SXrCwUEjYYobt9bRZr0K4lkWtq/l+z+nnxmR7J dZQQ== X-Gm-Message-State: ALoCoQlFluRGFaGCxft9V+p2k5Q1jysrUolPmULSBwHRvrbjYK2zKIYoAicYAUbkYcXT9Hc/p6MU MIME-Version: 1.0 X-Received: by 10.42.90.80 with SMTP id j16mr45572337icm.27.1412037473969; Mon, 29 Sep 2014 17:37:53 -0700 (PDT) Received: by 10.64.13.33 with HTTP; Mon, 29 Sep 2014 17:37:53 -0700 (PDT) In-Reply-To: <20140930081618.122a0c79@X220.alogt.com> References: <20140929080337.46bbb5a3@X220.alogt.com> <20140930081618.122a0c79@X220.alogt.com> Date: Mon, 29 Sep 2014 18:37:53 -0600 Message-ID: Subject: Re: Documentation for using GPIO From: Tom Everett To: Erich Dollansky Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 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 00:43:20 -0000 I published a simple example here. https://github.com/teverett/gpioexample 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" > -- A better world shall emerge based on faith and understanding - Douglas MacArthur