LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices



Reply
 
Search this Thread
Old 07-29-2008, 09:38 AM   #1
raedbenz
Member
 
Registered: Dec 2007
Posts: 93

Rep: Reputation: 15
timer driver error!


HI .
i am tying to build this module that generates periodic interrupts from a ARM's timer 2.
i defined interrupt like that:
Code:
request_irq(IRQ_EP93XX_TIMER2, interrupt_tick_update, 0,"t2int",NULL);
http://lxr.linux.no/linux/include/as...-ep93xx/irqs.h. the "device name "t2int" i selected it randomly.
here is what i get:
Code:
error: implicit declaration of function 'request_irq'
and
Code:
 error: implicit declaration of function 'free_irq'
any hints?
thanks

Last edited by raedbenz; 07-29-2008 at 03:30 PM.
 
Old 07-29-2008, 03:37 PM   #2
ra2008
LQ Newbie
 
Registered: Jul 2008
Posts: 23

Rep: Reputation: 15
try to check if u had added the correct header file
<linux/interrupt.h>

cheers
 
Old 07-29-2008, 05:31 PM   #3
raedbenz
Member
 
Registered: Dec 2007
Posts: 93

Original Poster
Rep: Reputation: 15
yea thats worked.
but now, i defined interrupt like that:
Code:
request_irq( IRQ_EP93XX_TIMER2, interrupt_tick_update, 0,"t2int",NULL);
and the handler is :
Quote:
irqreturn_t interrupt_tick_update(int irq, void *dev_id, struct pt_regs *regs)
{
Tick_count_G++;
printk(<1>"Tick count %d" Tick_count_G++);
return IRQ_HANDLED ;
}
and i get this when i compile:
Quote:
warning: passing argument 2 of 'request_irq' from incompatible pointer type
any hints?
thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
apic timer error while installing ubuntu tusharwalaskar Linux - Newbie 1 12-05-2007 08:55 AM
How can I get LAPIC timer to run instead of the PIT timer? sixerjman Linux - Kernel 1 10-16-2007 10:59 PM
Multimedia timer (SMP friendly timer) bigqueso Linux - Kernel 0 03-15-2007 04:49 PM
Linux install error for ASUS M2N32 SLI : Kernal Panic: 10 APIC = Timer Doesn't Work kajensen Linux - Hardware 1 12-03-2006 10:45 PM
Linux installtion error APIC timer reg.. krb2k5 Linux - Hardware 1 01-15-2006 07:43 AM


All times are GMT -5. The time now is 05:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration