Watchdog Timer Sample Code - Advantech ARS-P2800 Series User Manual

Passenger information system computer for railway applications
Table of Contents

Advertisement

B.1

Watchdog Timer sample code

#include <cstdlib>
#include <cstdio>
#include <sys/io.h>
#include <unistd.h>
using namespace std;
const unsigned int baseAddress = 0xA00;
void setWDT(unsigned char);
int main(int argc, char** argv)
{
unsigned char inputData;
printf("Please enter a number(1 ~ 255):");
scanf("%d", &inputData);
setWDT(inputData);
return 0;
}
ARS-P2800 User Manual
40

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ars-p2800 f series

Table of Contents