From owner-freebsd-embedded@FreeBSD.ORG Sun Feb 20 01:34:55 2011 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7EACF106564A for ; Sun, 20 Feb 2011 01:34:55 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 1682A8FC13 for ; Sun, 20 Feb 2011 01:34:54 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.4/8.14.4) with ESMTP id p1K16g1s053912 for ; Sat, 19 Feb 2011 18:06:42 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.4/8.14.4/Submit) with ESMTP id p1K16gT3053909 for ; Sat, 19 Feb 2011 18:06:42 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Sat, 19 Feb 2011 18:06:42 -0700 (MST) From: Warren Block To: freebsd-embedded@freebsd.org Message-ID: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.6 (wonkity.com [127.0.0.1]); Sat, 19 Feb 2011 18:06:42 -0700 (MST) Subject: CFT: Arduino-0022 port X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Feb 2011 01:34:55 -0000 A new version of the Arduino port is available for testing. The port files are available on github.com: https://github.com/wblock/Arduino-port-for-FreeBSD Click on Downloads to get a tar.gz. Or if you have git installed, % git clone git://github.com/wblock/Arduino-port-for-FreeBSD.git Thanks! From owner-freebsd-embedded@FreeBSD.ORG Mon Feb 21 11:06:57 2011 Return-Path: Delivered-To: freebsd-embedded@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 54C001065675 for ; Mon, 21 Feb 2011 11:06:57 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 4209D8FC0A for ; Mon, 21 Feb 2011 11:06:57 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p1LB6vpv075671 for ; Mon, 21 Feb 2011 11:06:57 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p1LB6uVP075669 for freebsd-embedded@FreeBSD.org; Mon, 21 Feb 2011 11:06:56 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 21 Feb 2011 11:06:56 GMT Message-Id: <201102211106.p1LB6uVP075669@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-embedded@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-embedded@FreeBSD.org X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Feb 2011 11:06:57 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- p misc/151696 embedded [nanobsd] [patch] nanobsd.sh doesn't run "make_conf_bu o misc/151695 embedded [nanobsd] [patch] Enhance tools/nanobsd/fill_pkg.sh o misc/136889 embedded [nanobsd] [patch] nanobsd error reporting and other re o misc/52256 embedded [picobsd] picobsd build script does not read in user/s o kern/42728 embedded [picobsd] many problems in src/usr.sbin/ppp/* after c 5 problems total. From owner-freebsd-embedded@FreeBSD.ORG Sat Feb 26 13:16:21 2011 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EBFB4106566C for ; Sat, 26 Feb 2011 13:16:21 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id A76B28FC0C for ; Sat, 26 Feb 2011 13:16:21 +0000 (UTC) Received: by yxl31 with SMTP id 31so1213440yxl.13 for ; Sat, 26 Feb 2011 05:16:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:content-type:content-transfer-encoding :subject:date:message-id:to:mime-version:x-mailer; bh=Nx5a2e+eg4ItDs9QkJhVQWiuNDEGqT747yjOjzj++94=; b=hPQGxoTScTA4kWmxmlCnSjZmu5g2ToVzKm84e3tchP9v6CzbvMfGN7GQ9Q+cYXbhiP c0ra9SIwLUqHvN915fB3V/4sir6+oJ+al28O4xuZZWExWfyrKrSy293YH9lzvrSUUQK3 Rp6EqE5G58UEdhxNnpNara1ENdUkE3NnATqMg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version:x-mailer; b=HFjuqZv7kZI++W7CeuDwznUDbSk8EUB0qoQOVfqW1SeOJkus15w7byAI3gMuhiy2oG BjRzsINndSYWG8fSN2GsCubBR+Z1jhgsrLVVgHHxFbANiky2Y7mzoWQS45ZHwUlbBCCr 6v1pnBKe35P25WlpyQCJsGTkEWlqVQP6Hk+8E= Received: by 10.236.95.17 with SMTP id o17mr6090911yhf.56.1298724710473; Sat, 26 Feb 2011 04:51:50 -0800 (PST) Received: from [192.168.0.84] ([187.39.27.246]) by mx.google.com with ESMTPS id x16sm1025373yhe.24.2011.02.26.04.51.48 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 26 Feb 2011 04:51:49 -0800 (PST) From: Luiz Otavio O Souza Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Sat, 26 Feb 2011 09:51:46 -0300 Message-Id: <8F63A8D0-4317-4A8C-A2E7-533CF33855E2@gmail.com> To: freebsd-embedded@freebsd.org Mime-Version: 1.0 (Apple Message framework v1082) X-Mailer: Apple Mail (2.1082) Subject: Expanding GPIO outputs with a shift-register X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Feb 2011 13:16:22 -0000 Hello folks, I've been playing around with GPIO on a variety of devices (RS, RSPRO, = TP-Link routers, ubiquiti devices, etc.) and some of them have a limited = number of available gpio pins. I've put together some information about using simple and cheap CMOS = shift-and-store bus register (4094) to expand the GPIO outputs: = http://loos.no-ip.org/routerstation/gpio-sr.html You only need 3 available gpio pins (yes, it is not _that_ cheap ;)) and = you can make up to 32 outputs (8 outputs per chip, up to 4 cascaded = chips). The same could be done for inputs, using a similar 4021 (but then you = probably want something better, like a PCF8574 i2c gpio expander, which = uses only two gpio pins... but we're talking about a cheap and = straightforward solution this time...). CAUTION: I've been using this schematic also as a level shifter (3.3v -> = 5v), but the GPIO pins for RS/RSPRO are 3.3v _ONLY_, you have to avoid = any 5v outputs to be connected on GPIO pins ! If you want to be on the safe side, please use the NXP bi-directional = level shifter: = http://www.nxp.com/news/backgrounders/bg_esc9727/index.html Once you have everything in place, you should see something like this on = your dmesg: gpio0: on apb0 gpio0: [GIANT-LOCKED] gpioc0: on gpio0 gpiobus0: on gpio0 gpioled0: at pin(s) 2 on gpiobus0 gpioshiftreg0: at pin(s) 5-7 on gpiobus0 gpioc1: on gpioshiftreg0 gpiobus1: on gpioshiftreg0 And then the output of gpioctl for the default pins and the = shift-register outputs pins: rspro-01# gpioctl -f /dev/gpioc0 -lv pin 00: 1 GPIOpin1, caps: pin 01: 1 GPIOpin2, caps: pin 02: 0 RFled, caps: pin 03: 1 GPIOpin3, caps: pin 04: 1 GPIOpin4, caps: pin 05: 0 GPIOpin5, caps: pin 06: 1 GPIOpin6, caps: pin 07: 0 GPIOpin7, caps: pin 08: 1 SW4, caps: rspro-01# gpioctl -f /dev/gpioc1 -lv pin 00: 0 Output0, caps: pin 01: 1 Output1, caps: pin 02: 1 Output2, caps: pin 03: 0 Output3, caps: pin 04: 1 Output4, caps: pin 05: 1 Output5, caps: pin 06: 1 Output6, caps: pin 07: 1 Output7, caps: As an example, i've built a simple circuit to drive a HD44780 20X4 LCD = display (using LCDProc from ports - the driver will be available soon): http://loos.no-ip.org/routerstation/gpio.html http://loos.no-ip.org/routerstation/images/16.html http://loos.no-ip.org/routerstation/images/17.html http://loos.no-ip.org/routerstation/images/18.html I hope this could be useful for those who are starting with gpio. Cheers, Luiz=