From: ppisa Date: Mon, 25 Aug 2003 03:56:03 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: CLT_COMM_CAN_pre_canmsg_change~27 X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lincan.git/commitdiff_plain/9dc9a6da64e783bbac5a87c5086c4dfc3ea25226 *** empty log message *** --- diff --git a/lincan/src/temp.c b/lincan/src/temp.c deleted file mode 100644 index dceec0c..0000000 --- a/lincan/src/temp.c +++ /dev/null @@ -1,28 +0,0 @@ -{ - int i=0; - - DEBUGMSG("Resetting smartcan hardware ...\n"); - outb(0x00,candevices_p[card]->res_addr); - while (i < 1000000) { - i++; - outb(0x01,candevices_p[card]->res_addr); - } - outb(0x00,candevices_p[card]->res_addr); - - /* Check hardware reset status */ - i=0; - outb(candevices_p[card]->io_addr+iCPU,candevices_p[card]->io_addr); - while ( (inb(candevices_p[card]->io_addr+1)&0x80) && (i<=15) ) { - udelay(20000); - i++; - } - if (i>=15) { - CANMSG("Reset status timeout!\n"); - CANMSG("Please check your hardware.\n"); - return -ENODEV; - } - else - DEBUGMSG("Chip0 reset status ok.\n"); - - return 0; -}