| To: | "Freddy Spierenburg" <freddy@dusktilldawn.nl> |
|---|---|
| Subject: | Re: How is the au1000_gpio char driver used? |
| From: | "s c" <steve.carren@gmail.com> |
| Date: | Wed, 27 Sep 2006 09:05:58 -0400 |
| Cc: | linux-mips@linux-mips.org |
| Domainkey-signature: | a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=izxJzSQicSz+ljGycqR1WQAPx35ylJoj0HCKifX2dp0zDgrauhPjUgvDcdlRl8WuhTu+4Cm2B2qiz13PSEy5OpjsjtWKjNgTVlV3/p9+dxNq7E6RHicduFhL5qoO/HUkVK7PKyshDyWuy4QkAYAMTx9iLkBBrus4rQxd2Ec1NaA= |
| In-reply-to: | <20060926155832.GC17027@dusktilldawn.nl> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <2e134a330609260839l5ab33123p4e712a8fe4e0b60b@mail.gmail.com> <20060926155832.GC17027@dusktilldawn.nl> |
| Sender: | linux-mips-bounce@linux-mips.org |
On 9/26/06, Freddy Spierenburg <freddy@dusktilldawn.nl> wrote: 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. Freddy Spierenburg <freddy@dusktilldawn.nl> http://freddy.snarl.nl/ Thanks. Works as advertised. A couples notes to anyone else interested - devmem2 does not use the au1000_gpio char driver so it could potentially be used with other processors. -busybox (if you are using it) doesn't support sub-second sleep like in the example given by Freddy. |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: How to work with Linux-Mips ?, Jonathan Day |
|---|---|
| Next by Date: | Re: [MIPS] SB1: Build fix: delete initialization of flush_icache_page pointer., Atsushi Nemoto |
| Previous by Thread: | Re: How is the au1000_gpio char driver used?, Freddy Spierenburg |
| Next by Thread: | The Linux binutils 2.17.50.0.5 is released, H. J. Lu |
| Indexes: | [Date] [Thread] [Top] [All Lists] |