Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top