linux-mips
[Top] [All Lists]

Re: How is the au1000_gpio char driver used?

To: s c <steve.carren@gmail.com>
Subject: Re: How is the au1000_gpio char driver used?
From: Freddy Spierenburg <freddy@dusktilldawn.nl>
Date: Tue, 26 Sep 2006 17:58:32 +0200
Cc: linux-mips@linux-mips.org
In-reply-to: <2e134a330609260839l5ab33123p4e712a8fe4e0b60b@mail.gmail.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <2e134a330609260839l5ab33123p4e712a8fe4e0b60b@mail.gmail.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.13 (2006-08-11)
Hi Steve,

On Tue, Sep 26, 2006 at 11:39:41AM -0400, s c wrote:
> I would like to use the au1000_gpio char driver to blink some status
> lights. Specifically, I would like to control the hex leds on the
> dbau1500 development board. Preferably via shell script.

http://free-electrons.com/pub/mirror/devmem2.c is your friend.

On a DBAu1100 for instance I have a nice example:

        $ while true; do
        >       for i in 7 B D E D B; do
        >                       ./devmem2 0x0E000018 w 0x00000${i}03
        >                       sleep 0.01
        >               done
        > done > /dev/null
        $

Remember the days of the Night Rider? You will see LED D5, D6, D7
and D8 flash in a nice manner.

In the same way you must be able to alter the hex leds.

-- 
$ cat ~/.signature
Freddy Spierenburg <freddy@dusktilldawn.nl>  http://freddy.snarl.nl/
GnuPG: 0x7941D1E1=C948 5851 26D2 FA5C 39F1  E588 6F17 FD5D 7941 D1E1
$ # Please read http://www.ietf.org/rfc/rfc2015.txt before complain!

Attachment: signature.asc
Description: Digital signature

<Prev in Thread] Current Thread [Next in Thread>