mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-10 00:46:09 +01:00
53 lines
1.4 KiB
C
53 lines
1.4 KiB
C
/*
|
|
Copyright (c) 2014 Arduino. All right reserved.
|
|
|
|
This library is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU Lesser General Public
|
|
License as published by the Free Software Foundation; either
|
|
version 2.1 of the License, or (at your option) any later version.
|
|
|
|
This library 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 Lesser General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Lesser General Public
|
|
License along with this library; if not, write to the Free Software
|
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*/
|
|
|
|
#ifndef _WATCHDOG_
|
|
#define _WATCHDOG_
|
|
|
|
#include <stdint.h>
|
|
|
|
// Watchdog functions
|
|
|
|
/*
|
|
* \brief Enable the watchdog with the specified timeout. Should only be called once.
|
|
*
|
|
* \param timeount in milliseconds.
|
|
*/
|
|
void watchdogEnable (uint32_t timeout);
|
|
|
|
/*
|
|
* \brief Disable the watchdog timer. Should only be called once.
|
|
*
|
|
*/
|
|
void watchdogDisable (void);
|
|
|
|
/*
|
|
* \brief Reset the watchdog counter.
|
|
*
|
|
*/
|
|
void watchdogReset (void);
|
|
|
|
/*
|
|
* \brief Watchdog initialize hook. This function is called from init(). If the user does not provide
|
|
* this function, then the default action is to disable watchdog.
|
|
*/
|
|
void watchdogSetup (void);
|
|
|
|
#endif /* _WATCHDOG_ */
|
|
|