Skip to contentSkip to conversation

newbie question : how to register for a new interrupt

DISCUSSION Nuguru Susheel 2 participants 2 messages Sep 7, 2005 – Sep 11, 2005

lore
Share & tools
lore
#0 lore raw

Hi all,

I have written an service routine for handling the GPIO_WAKEUP
interrupt PSC2_4 pin (MPC5200 Core), but I donno how to register this routine into the kernel.

I have connected an external circuit which generates interrupts to this PSC2_4 pin, but I believe the Core doesnt know what to do when this interrupt is generated without registering this routine ...

Help/Suggestions/Redirections please .......

--Cheers
nSr

#1 lore raw
Quoted 5 lines · Nuguru Susheel

Hi all,

I have written an service routine for handling the GPIO_WAKEUP
interrupt PSC2_4 pin (MPC5200 Core), but I donno how to register this routine into the kernel.

request_irq/free_irq() are what you're looking for. See include/linux/interrupt.h for the details.

Arthur