From owner-freebsd-arm@FreeBSD.ORG Sat Dec 13 15:12:13 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 4E31B3D9 for ; Sat, 13 Dec 2014 15:12:13 +0000 (UTC) Received: from eu1sys200aog118.obsmtp.com (eu1sys200aog118.obsmtp.com [207.126.144.145]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A4A61217 for ; Sat, 13 Dec 2014 15:12:11 +0000 (UTC) Received: from mail-wi0-f172.google.com ([209.85.212.172]) (using TLSv1) by eu1sys200aob118.postini.com ([207.126.147.11]) with SMTP ID DSNKVIxXK7b9eQ5J0Dj2edsROTwWAfD82lX0@postini.com; Sat, 13 Dec 2014 15:12:12 UTC Received: by mail-wi0-f172.google.com with SMTP id n3so5069796wiv.11 for ; Sat, 13 Dec 2014 07:11:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:message-id:to:subject:reply-to; bh=HL8nTDQ906gHaXAc9jknaYFYcUwl7cm0hl8BF/wjRg4=; b=SNULLRpxzkAwYkWDCF6QA6R5wLGZQEyJtoH3sXNxNX9BCu0c0mPgrB6SMr6PQC8/jO gpZT5zXqhGatRT2eaeeqnxKXDbOkrWutY2vvY6TIHfFbN7jq6CGth64u+V2UvlPRy8Wx w6guDXWq0YEDF2Tvh0nb753FtRPYWTF56H0MsnLa+hlHFf3+Rj+VpBZM6mx/Yu9mDh5O H5SWt1/Hi55Wtpq3+IhJwVWTYTYiHlupNHpgI99apMgtqg2da0a9QjUX8rM62CyLySHQ 7ohNNxVQH1Lsw+BA5VFZr3KqIj0akIHSvLJrk+yURudEcZAlKTz3rAvY74QbO5W6YGsU 7lvA== X-Received: by 10.180.96.33 with SMTP id dp1mr16858959wib.13.1418483107232; Sat, 13 Dec 2014 07:05:07 -0800 (PST) X-Gm-Message-State: ALoCoQmbw5Mjmqg40OQ4SaKqwnARXknM6dJwdueM7z+aEb36deVXSpg5yOOTrFYH8awab9H9sYPIfnsXilPtYJWcdy0Gn3sKW5hbEaa0ViOswM9gOaNAM71vanXUggUI/8ngoVIlSEGLPXzIyAEzbfe1k5toadDDdA== X-Received: by 10.180.96.33 with SMTP id dp1mr16858950wib.13.1418483107132; Sat, 13 Dec 2014 07:05:07 -0800 (PST) Received: from mech-as221.men.bris.ac.uk (mech-as221.men.bris.ac.uk. [137.222.187.221]) by mx.google.com with ESMTPSA id pf4sm5818593wjb.36.2014.12.13.07.05.06 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 13 Dec 2014 07:05:06 -0800 (PST) Date: Sat, 13 Dec 2014 07:05:06 -0800 (PST) X-Google-Original-Date: Sat, 13 Dec 2014 15:05:05 GMT Received: from mech-as221.men.bris.ac.uk (localhost [127.0.0.1]) by mech-as221.men.bris.ac.uk (8.14.9/8.14.9) with ESMTP id sBDF55hJ070066 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Sat, 13 Dec 2014 15:05:05 GMT (envelope-from mexas@mech-as221.men.bris.ac.uk) Received: (from mexas@localhost) by mech-as221.men.bris.ac.uk (8.14.9/8.14.9/Submit) id sBDF55IM070058 for freebsd-arm@freebsd.org; Sat, 13 Dec 2014 15:05:05 GMT (envelope-from mexas) From: Anton Shterenlikht Message-Id: <201412131505.sBDF55IM070058@mech-as221.men.bris.ac.uk> To: freebsd-arm@freebsd.org Subject: using GPIO on 10.1-release Reply-To: mexas@bris.ac.uk 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 15:12:13 -0000 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? Thanks Anton [1] https://pypi.python.org/pypi/RPi.GPIO