how to use fiq (at91rm9200 linux2.4 )

Status
Not open for further replies.

ourlinux

Newbie level 1
Joined
Sep 16, 2006
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,290
I write a dirver for mine keyboard .
At the begining ,I use the irq for the keyboard driver.
I write like

#define KEYBD_IRQ 3
AT91_SYS->AIC_SMR[3] = 0x04;
if(request_irq(KEYBD_IRQ, keybd_Interrupt, 0, "keybd_Interrupt", (void *) 0))
{
printk("\n Can not request %d irq! \n", KEYBD_IRQ);
return -EBUSY;
}

when I press a key.
systerm can call my interrupt fuction keybd_Interrupt();


But now ,I want to use fiq for my keyboard .
I changed like this:

#define KEYBD_IRQ 0
AT91_SYS->AIC_SMR[0] = 0x20;
if(request_irq(KEYBD_IRQ, keybd_Interrupt, 0, "keybd_Interrupt", (void *) 0))
{
printk("\n Can not request %d irq! \n", KEYBD_IRQ);
return -EBUSY;
}

But it does work very well.
When i press a key the systerm doesn't call my interrupte fuction keybd_Interrupt.

how can i do?


ourlinux
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…