From owner-freebsd-arm@freebsd.org Sun Nov 22 19:30:09 2015 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 606A3A35AE4 for ; Sun, 22 Nov 2015 19:30:09 +0000 (UTC) (envelope-from rpaulo@me.com) Received: from mr11p00im-asmtp002.me.com (mr11p00im-asmtp002.me.com [17.110.69.253]) (using TLSv1.2 with cipher DHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48FF81B93 for ; Sun, 22 Nov 2015 19:30:09 +0000 (UTC) (envelope-from rpaulo@me.com) Received: from akita.hsd1.ca.comcast.net (c-73-162-13-215.hsd1.ca.comcast.net [73.162.13.215]) by mr11p00im-asmtp002.me.com (Oracle Communications Messaging Server 7.0.5.35.0 64bit (built Mar 31 2015)) with ESMTPSA id <0NY8004WBE62FT10@mr11p00im-asmtp002.me.com> for freebsd-arm@freebsd.org; Sun, 22 Nov 2015 19:30:03 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2015-11-22_10:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 kscore.is_bulkscore=0 kscore.compositescore=1 compositescore=0.9 suspectscore=0 phishscore=0 bulkscore=0 kscore.is_spamscore=0 rbsscore=0 spamscore=0 urlsuspectscore=0.9 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1510090000 definitions=main-1511220357 Message-id: <1448220602.4088.1.camel@me.com> Subject: Re: PiFace Real Time Clock utility available From: Rui Paulo To: John Howie , "freebsd-arm@freebsd.org" Date: Sun, 22 Nov 2015 11:30:02 -0800 In-reply-to: References: Content-type: text/plain; charset=UTF-8 X-Mailer: Evolution 3.18.2-1 MIME-version: 1.0 Content-transfer-encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Nov 2015 19:30:09 -0000 On Wed, 2015-11-18 at 02:49 +0000, John Howie wrote: > Hi everyone, > > I just released on GitHub source for a utility that manipulates the > PiFace Real Time Clock, available for the Raspberry Pi. I have tested > it on FreeBSD 11.0-CURRENT, running on a Raspberry Pi Model B 2. It > should work on a Raspberry Pi B (original), and it might even work on > 10.2-RELEASE (it requires I2C bus support). > > I will be doing some more testing and refining it in the coming days, > but I invite anyone who wants to play around with it to do so. The > repository is https://github.com/jhowie/FreeBSDPiFaceRTC. Cool! > > Even if you do not have a PiFace RTC you might want to pull the code, > and in particular the I2CRoutines.[ch] files, as they contain a > simplified means of interacting with I2C devices. The code currently > supports devices with only 256 bytes of addressable memory. I will > correct that in a future release. Maybe this would've helped: https://bitbucket.org/rpaulo/libiic -- Rui Paulo