Hi Jonas --
--- In "jo_xavier18" <>
wrote:
>
> Charlie, thanks for the answers, but i forgot some details.
>
> I'm trying to implement software irqs using DIO_16, 17 and 18 of
GPIO
> (three inputs) and i'm not using irq vectors as in the books you
pass
> me (i read this chapters). I'm reading a value from a button and i
> need to generate the irq and pass them to the user. The result of
the
> request_irq is "-22" that means "invalid argument"
> (in /linux24/include/asm-arm/errno.h).
You could look at the two files tsdio.tar.gz and gps_pps.tgz (in the
Yahoo groups' file section) for examples of using request_irq with
GPIO. One may even do just what you want ...
Are you sure you need to do this in the kernel? You could look at
the TS keypad.c file for another (polling) approach.
Regards, ....... Charlie
>
> The hole is more in low! hehehhehe...
>
> Best regards!
>
> Jonas.
>
>
>
> --- In "charliem_1216" <charliem_1216@>
wrote:
> >
> > Hi Jonas --
> >
> > --- In "jo_xavier18" <jo_xavier18@>
> > wrote:
> > >
> > > Hi! Is there some body that knows how to add new IRQ number in
the
> > > /linux24/include/asm-arm/arch-ep93xx/irqs.h file? I know that
i'll
> > to
> > > compile the kernel again...
> > >
> > > I have a problem because i'm trying to implement irqs in the
> > ts7400 and
> > > when i use the function 'request_irq()' (in <asm/sched.h>) my
> > request
> > > becomes lower zero (the normal is zero if it's ok).
> >
> > The negative number is your error code, trying to tell you
> > something. -EBUSY, for example, usually means the interrupt is
> > already claimed.
> >
> > >I've tested all
> > > numbers of irqs (from 0 until 64) and that's ok, but when i
put
> > any
> > > other value i have an error.
> >
> > The chip only has 64 IRQs. The EP9301 User Guidebook has more
info
> > on this:
> > http://www.cirrus.com/en/pubs/manual/EP93xx_Users_Guide_UM1.pdf
> >
> > Also you might find LDD book by Rubini & Corbett helpful:
> > http://www.xml.com/ldd/chapter/book/ch09.html
> > (Use second edition for 2.4, third edition for 2.6 kernels).
> >
> > What type of hardware are you trying to service?
> >
> > Regards, ....... Charlie
> >
> > >
> > > Jonas Xavier.
> > >
> >
>
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|