![Portwell NAR-7070 Скачать руководство пользователя страница 53](http://html1.mh-extra.com/html/portwell/nar-7070/nar-7070_user-manual_1581805053.webp)
NAR-7070 User’s Manual
52
Chapter 5 Appendix
5.1 Watch Dog Timer Sample Code
Watch Dog Timer is a special function; the user can monitor and control the system via software
or hardware implementation. If the implementation does not respond in seconds, the system will
be rebooted automatically. With this mechanism, the lost or damage can be minimized, when
there is not monitoring personnel onsite.
Following list are
PPAP-3720
Watch Dog Timer sample Code, this is for reference only
:
/DG
* PPAP-3720 Watch Dog Sample:
*
* Copyright (C) 2001 Portwell Inc.
* Copyright (C) 1998,2000,2001,2002,2003. Chris Chiu
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>