Re: [Soekris] GPIO net4501

2009-11-02 Thread ralph
Take a look at my reply from April of this year at
. 
I haven't tested it on Linux, but it should be general enough to work.

Ralph

> Hi again,
>
> My apologies for my shot query. I am looking for at code example of
> reading the 4501 pio ports - on a linux.
>
> (I can't figure out how to port the freebsd to my needs ie. linux...)
>
> Thanks in advance.
>
> Anders
>
> On 01/11/09 17.46, Poul-Henning Kamp wrote:
>> In message<4aedba99@lisehoej.dk>, Anders Christensen writes:
>>> Hi,
>>>
>>> Can anyone supply me with some code that shows how to get the GPIO set
>>> at input and read them?
>>
>> They are input by default.
>>
>> Here is some code that twiddles a LCD display:
>>
>>  http://phk.freebsd.dk/soekris/lcd/
>>
> ___
> Soekris-tech mailing list
> Soekris-tech@lists.soekris.com
> http://lists.soekris.com/mailman/listinfo/soekris-tech
>

___
Soekris-tech mailing list
Soekris-tech@lists.soekris.com
http://lists.soekris.com/mailman/listinfo/soekris-tech


Re: [Soekris] GPIO net4501

2009-11-02 Thread Anders Christensen
Hi again,

My apologies for my shot query. I am looking for at code example of 
reading the 4501 pio ports - on a linux.

(I can't figure out how to port the freebsd to my needs ie. linux...)

Thanks in advance.

Anders

On 01/11/09 17.46, Poul-Henning Kamp wrote:
> In message<4aedba99@lisehoej.dk>, Anders Christensen writes:
>> Hi,
>>
>> Can anyone supply me with some code that shows how to get the GPIO set
>> at input and read them?
>
> They are input by default.
>
> Here is some code that twiddles a LCD display:
>
>   http://phk.freebsd.dk/soekris/lcd/
>
___
Soekris-tech mailing list
Soekris-tech@lists.soekris.com
http://lists.soekris.com/mailman/listinfo/soekris-tech


Re: [Soekris] GPIO net4501

2009-11-01 Thread Poul-Henning Kamp
In message <4aedba99@lisehoej.dk>, Anders Christensen writes:
>Hi,
>
>Can anyone supply me with some code that shows how to get the GPIO set 
>at input and read them?

They are input by default.

Here is some code that twiddles a LCD display:

http://phk.freebsd.dk/soekris/lcd/

-- 
Poul-Henning Kamp   | UNIX since Zilog Zeus 3.20
p...@freebsd.org | TCP/IP since RFC 956
FreeBSD committer   | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
___
Soekris-tech mailing list
Soekris-tech@lists.soekris.com
http://lists.soekris.com/mailman/listinfo/soekris-tech