[ previous ] [ next ] [ threads ]
 
 From:  Paul Faure <paul at certainkey dot com>
 To:  m0n0wall dash dev at lists dot m0n0 dot ch, "Andrew Thrift at Home" < at >, Pascal Dornier <pdornier at pcengines dot ch>
 Subject:  Re: [m0n0wall-dev] LEDs on the WRAP boards
 Date:  Wed, 4 Aug 2004 15:42:09 -0400
I have written a successful Linux module for the WRAP boards to control
the LEDs. I will add a Thermal sensor function later on. As for FreeBSD
support for mOnOwall, it should be rather easy to modify it. I have
tested it with 2.6.6 only.

Thanks to Pascal for leading me in the right direction.

Attached is the module, its GPL.

Enjoy.

Paul Faure (paul at certainkey dot com) wrote:
> Hi, I am looking for some help on how to get the LEDs on the WRAP boards
> working correctly. This was posted before, but no solution was found, I
> was hopping that a solution is available now.
> 
> The wrap1c documentation has this:
>  Front panel LEDs and switch
>  LED1 (D3) GPIO2 write I/O port [GPIOBASE] bit 2 0 = light
>  LED2 (D2) GPIO3 write I/O port [GPIOBASE] bit 3 0 = light
>  LED3 (D1) GPIO18 write I/O port [GPIOBASE] bit 18 0 = light
>  Switch (S1) GPIO40 read I/O port [GPIOBASE+20] bit 8 0 = pressed
>  With tinyBIOS, GPIOBASE is 0F400h. If you would like to write a more generic driver, use the
>  SC1100 I/O base registers to determine GPIOBASE.
> 
> Any help on writing the code to support such a feature in a module
> would be great. My efforts have failed to change any of the LEDs at all.
> 
> Thanks in advance.
> Paul
> 
> -- 
> Paul N. Faure, B.Eng                      613.266.3286
> Computer Systems Engineering              paul-at-faure-dot-ca
> Chief Technical Officer, CertainKey Inc.  paul-at-certainkey-dot-com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: m0n0wall dash dev dash unsubscribe at lists dot m0n0 dot ch
> For additional commands, e-mail: m0n0wall dash dev dash help at lists dot m0n0 dot ch


-- 
Paul N. Faure, B.Eng                      613.266.3286
Computer Systems Engineering              paul-at-faure-dot-ca
Chief Technical Officer, CertainKey Inc.  paul-at-certainkey-dot-com