D.2 wdt with dos/linux, Wdt with dos/linux – ADLINK MXC-6000 Series User Manual

Page 92

Advertising
background image

80

Watchdog Timer (WDT) Function Library

@ Parameters

None

@ Return codes

TRUE

if watchdog timer is successfully reset.

FALSE

if watchdog timer fails to reset.

StopWDT

@ Description

Stop the watchdog timer.

@ Supported controllers

MXC-6000

@ Syntax

C/C++

BOOL StopWDT()

@ Parameters

None

@ Return codes

TRUE

if watchdog timer is successfully stopped.

FALSE

if watchdog timer fails to stop.

D.2 WDT with DOS/Linux

Under Linux, please program WDT function using the same LPC
IO registers according to the sample program as follows.

#include <dos.h>

#include <stddef.h>

#include <stdio.h>

/* Config LPC IO to enter config mode */

EnterConfig(void)

{

Advertising