--- In [email protected], "Ernst Mayerhofer"
<[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> finally i got some piece of code, which actually works ( i don't
know why,
> but it's fine. )
> 
> My question is actually, why it doesn't work if I compile the kernel
with
> the right configuration?
> 
> greets,
> ernst
> 
> 
> 2006/12/19, blogic79 <[EMAIL PROTECTED]>:
> >
> >   didi you set all of them as outputs ? as in all 8 bit need to
have the
> > same direction
> >
> > --- In [email protected] <foxboard%40yahoogroups.com>, "Ernst
> > Mayerhofer"
> >
> > <ernst.mayerhofer@> wrote:
> > >
> > > Hi,
> > >
> > > did anyone of you ever try to use G8-15 and G16-23 as ouputs? I
> > > compiled the kernel configuring them as outputs, but they're still
> > > inputs.
> > >
> > > greets and thanks,
> > >
> > > Ernst Mayerhofer
> > >
> >
> >  
> >
> 
> 
> 
> -- 
> MfG
> Ernst Mayerhofer
>
Hi,

I've see a piece of code on the site "www.capefox.com" to set the
direction of the GPIO (Inpout or Output)

ioctl(pid, _IO(ETRAXGPIO_IOCTYPE, IO_SETGET_OUTPUT), &mask) to set the
I/O port as Output.

You can see the source code here :
http://www.capefox.com/sourcecode/gio/gio.c

Regards
Eric

Reply via email to