ts-7000
[Top] [All Lists]

[ts-7000] Re: IRQs

To:
Subject: [ts-7000] Re: IRQs
From: "charliem_1216" <>
Date: Thu, 27 Mar 2008 00:42:26 -0000
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/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU