30
•
Bypass and WDT
ex. If you have 2 PCI-8214 cards, and install the PCI-8214
package in
/usr/local/8213_wdt.
install the cards with the command
:
wdt_inst.pl 2 /usr/local/8213_wdt
4.
INSTALL LIBRARY
The library is provided as a shared library. To install the library,
type the following command:
Cp <InstallDir>/8213_wdt/lib/libLanWDT.so /usr/lib
In addition,
wdt_inst.pl
also involves the installation for the library.
More detailed information about Linux Module of WDT is listed in
readme.dat .(
X:\NuPRO\PCI8214\WDTutility\Linux
)
5.5.2 WDT with C Language
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "LanWDT.h"
#include "conio.h"
int main( void )
{
int err;
int timer_interval = 200; // 200 mini-second
int card_number = 0; /* for the first pci8213 */
setbuf( stdout, NULL );
if((err = LanWDT(card_number, timer_interval))<0)
{ //enable Watchdog timer
printf("Enable WDTimer Error: %d\n", err);
exit(-1);
}
printf(" Enable WDTimer with interval %d sec. \n",
timer_interval );
printf("
\n\n Press any key to Disable
WDTimer :" );
getch();
LanWDT(card_number, 0);//disable Watchdog timer
putchar('\n');
return 0;
}
Содержание PCI-8213
Страница 1: ...PCI 8213 8214 4 Port 2 Port PCI Ethernet Controller User s Guide Recycled Paper...
Страница 2: ......
Страница 8: ......