IBASE FWA8206 User Manual
Page 29

FWA8206 Series User’s Manual
17
sleep(1);
}
#define TIMEOUT
10
void enable_wdt (void) {
unsigned int i=0;
outb(0x87,0x4e);//Enter extended function mode
outb(0x87,0x4e);
outb(0x2b,0x4e);
i = inb(0x4f);
i &= 0xef;//Configure bit 4 as 0 to be watchdog function.
outb(0x2b,0x4e);
outb(i,0x4f);
outb(0x7,0x4e);
outb(0x8,0x4f);//watchdog in logic device 8
outb(0x30,0x4e);//Active wdt
outb(0x1,0x4f);
outb(0xf5,0x4e);
i = inb(0x4f);
/*Select watchdog count mode */
//i = i | 0x8; //Select minute
i = i & 0xf7; //Select second
outb(0xf5,0x4e);
outb(i,0x4f);
outb(0xf6,0x4e);
outb(TIMEOUT,0x4f);
outb(0xf7,0x4e);
outb(0x0,0x4f);
}
void retrigger ( void ) {
outb(0xf6,0x4e);
outb(TIMEOUT,0x4f);
}
/* Disable WDT function */
void dis_wdt ( void ) {
outb(0xf6,0x4e);
outb(0x00,0x4f);
}
int main(int argc, char **argv)
{
int
c;
setuid(0); /* if we're setuid, force it on */
- IPPC08A7 (70 pages)
- IB898 (58 pages)
- IB908 (76 pages)
- IB906 (56 pages)
- IB520 (56 pages)
- IB550 (58 pages)
- IB893 (68 pages)
- IB892 (56 pages)
- IB905 (62 pages)
- IB882 (56 pages)
- IB903 (58 pages)
- IB886 (60 pages)
- IB889 (56 pages)
- IB897 (64 pages)
- IB885 (58 pages)
- IB530 (56 pages)
- IB950 (63 pages)
- IB825 (68 pages)
- IB815 (63 pages)
- IB704 (51 pages)
- AMS100-807 (12 pages)
- AMI400 (27 pages)
- CSB200-888 (13 pages)
- SI-06 (44 pages)
- SI-22 (51 pages)
- SI-18 (51 pages)
- IOPS-76 (36 pages)
- SI-28 (44 pages)
- SI-606 (103 pages)
- SI-12 (48 pages)
- SI-304 (62 pages)
- SI-32-N (50 pages)
- SI-62 (73 pages)
- SI-38 (49 pages)
- SI-64 (80 pages)
- SE-92 (63 pages)
- SI-83 (78 pages)
- SI-38N (53 pages)
- IOPS-18 (46 pages)
- SI-58 (73 pages)
- IPPCXXA7-RE (59 pages)
- INOSP Series (74 pages)
- IPPC15B7-RE (55 pages)
- MRS-801-RE (94 pages)
- SSPA-24 (7 pages)