* How is the au1000_gpio char driver used?
@ 2006-09-26 15:39 s c
2006-09-26 15:58 ` Freddy Spierenburg
0 siblings, 1 reply; 3+ messages in thread
From: s c @ 2006-09-26 15:39 UTC (permalink / raw)
To: linux-mips
Hello All,
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.
Any help would be appreciated.
Thanks
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How is the au1000_gpio char driver used?
2006-09-26 15:39 How is the au1000_gpio char driver used? s c
@ 2006-09-26 15:58 ` Freddy Spierenburg
2006-09-27 13:05 ` s c
0 siblings, 1 reply; 3+ messages in thread
From: Freddy Spierenburg @ 2006-09-26 15:58 UTC (permalink / raw)
To: s c; +Cc: linux-mips
[-- Attachment #1: Type: text/plain, Size: 930 bytes --]
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 #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How is the au1000_gpio char driver used?
2006-09-26 15:58 ` Freddy Spierenburg
@ 2006-09-27 13:05 ` s c
0 siblings, 0 replies; 3+ messages in thread
From: s c @ 2006-09-27 13:05 UTC (permalink / raw)
To: Freddy Spierenburg; +Cc: linux-mips
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-09-27 13:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-26 15:39 How is the au1000_gpio char driver used? s c
2006-09-26 15:58 ` Freddy Spierenburg
2006-09-27 13:05 ` s c
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox