[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Timer Interrupt.
I tried to use Timer Interrupt by calling request_irq(...) copied from
ircontrol.c , but
it always failed, anything i should do before calling request_irq(...)??
>From: Eric Tang [mailto:firstname.lastname@example.org]
>Sent: den 5 mars 2002 09:43
>Subject: Re: Timer Interrupt.
>Sorry, i can't find the drivers/char/ircontrol.c in
>where is should get this file?
>i have downloaded the latatest linux-2-4-10.tar.gz as well..
>>Look in the drivers/char/ircontrol.c in the elinux tree
>>where timer1 is used to sample a IR receiver at 4kHz
>>for remote control.
>>----- Original Message -----
>>From: "Eric Tang" <email@example.com>
>>Sent: Saturday, March 02, 2002 04:21
>>Subject: Timer Interrupt.
>>>I am going to use the timer1 interrupt of etrax in my device driver,
>>>I can't find any good example of using interrupts in the source tree.
>>>Can i follow the linux device driver prototype functions(like
>>>int request_irq(unsigned int irq,
>>> void (*handler)(int, void *, struct pt_regs *),
>>> unsigned long flags,
>>> const char *dev_name,
>>> void *dev_id);
>>> void free_irq(unsigned int irq, void *dev_id);
>>>The IRQ of timer1 is 3? as i found that the timer0 is 2