From owner-freebsd-arm@FreeBSD.ORG Sat Dec 13 16:17:59 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 69BD5BA0 for ; Sat, 13 Dec 2014 16:17:59 +0000 (UTC) Received: from mail-ob0-x22c.google.com (mail-ob0-x22c.google.com [IPv6:2607:f8b0:4003:c01::22c]) (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 28BCD95A for ; Sat, 13 Dec 2014 16:17:59 +0000 (UTC) Received: by mail-ob0-f172.google.com with SMTP id va8so12451389obc.3 for ; Sat, 13 Dec 2014 08:17:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=dDYT86wEX43hm4Yk5+gVcM13hbHKZNlSYof/Jub11SM=; b=C+1hfeJ1+qm9Sui5WiDpy8Di1mTbZ10ImjVGWK1hzx+gnhMaE3mJmtbtJnVmfm9RFQ lj5TzdPB5ByArP11BQU1te7QKZQLKtOa5YPt2vuRtSMAxGQ0N/N++e/5Cc9RycaOUyEX NduEq2Ra++ZmBoKT0JbO5jmpiivoaodp1po99l/X3XJQ2wkzCrD+T0T6BEzLpzRlcrYn Lvasw0igB7D+f6Uu05Ci8h05r8VVv+n00HStKqj2/JrvuUxK3rxsCqxEoFbnRRwEmEIO 5usl4Frx6lsl49Qszf0xuRk1MCGEL/xjHNBnClOKknaq2YFOYJ4uUpBhK7Fja3UImNDS wz0w== MIME-Version: 1.0 X-Received: by 10.182.213.2 with SMTP id no2mr13710951obc.76.1418487478550; Sat, 13 Dec 2014 08:17:58 -0800 (PST) Received: by 10.182.255.136 with HTTP; Sat, 13 Dec 2014 08:17:58 -0800 (PST) Received: by 10.182.255.136 with HTTP; Sat, 13 Dec 2014 08:17:58 -0800 (PST) In-Reply-To: <1772909.5HItWhHBl0@quad> References: <201412131505.sBDF55IM070058@mech-as221.men.bris.ac.uk> <1772909.5HItWhHBl0@quad> Date: Sat, 13 Dec 2014 17:17:58 +0100 Message-ID: Subject: Re: using GPIO on 10.1-release From: =?UTF-8?Q?Ren=C3=A9_Ladan?= To: Maxim V FIlimonov Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: freebsd-arm 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: Sat, 13 Dec 2014 16:17:59 -0000 Op 13 dec. 2014 16:23 schreef "Maxim V FIlimonov" : > > On Saturday 13 December 2014 07:05:06 Anton Shterenlikht wrote: > > Hi > > > > My son is bugging me to teach him something 'cool' on RPi. > > I've got 10.1-release working on RPi-B. > > > > I've seen some tutorials on using LEDs via > > GPIO, but those are implemented in python > > using RPi-GPIO module [1], which doesn't seem to > > exist on ports. (Or am I looking in the wrong place?) > > > > Anyway, what is the easiest way to start on > > GPIO programming on RPi-B 10.1-release, > > preferably using what is available via ports > > already? > > > > Use gpioctl, it's already in the base system. Or look at comms/dcf77pi for some examples in C (in the input.c file) Regards Ren=C3=A9 > -- > wbr, Maxim Filimonov > che@bein.link > _______________________________________________ > 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"