static int eint_open(struct inode *inode, struct file *filp)
{
// unsigned long flag;
// if (usage == 0)
// {
request_irq(IRQ_EXT3, eint_irq_handle, SA_INTERRUPT, "my" DEVICE_NAME, NULL);
// local_irq_save(flag);
// PinSel0Save = inl(PINSEL0) & 0xa00cc0cc;
// PinSel1Save = inl(PINSEL1) & 0x26400301;
outl(1<<3,EXTINT);
outl(0x00,EXTMODE);
// local_irq_restore(flag);
// }
// usage++;
MOD_INC_USE_COUNT;
return 0; /* success */
}
这是我照着周立功给的PWM的驱动写的外部中断驱动,为什么那些被我注销的语句一旦解注应用程序就跑不出来呢?? |