我的计数器驱动程序加载后,应用程序一用open打开设备,系统就完全被占用了,请各位给帮忙看看
static int key_open(struct inode *inode,struct file *file)
{
//GPBCON |= GPB5_out|GPB6_out|GPB7_out|GPB8_out;
n=0;
n1=0;
n2=0;
s3c2410_gpio_cfgpin(S3C2410_GPG11,S3C2410_GPG11_TCLK1);
request_irq(IRQ_TIMER3,buttons_interrupt,NULL,"key",(void *)&n3);
outl(0x4000,__IO_TCFG1);
outl(0,__IO_TCMPB3);
outl(0xa,__IO_TCNTB3);
outl(0x20000,__IO_TCON);
outl(0x90000,__IO_TCON);
return 0;
}