2015-02-09 13:50:37 +01:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2015 PHYTEC Messtechnik GmbH
|
|
|
|
* Copyright (C) 2015 Eistec AB
|
|
|
|
*
|
|
|
|
* This file is subject to the terms and conditions of the GNU Lesser General
|
|
|
|
* Public License v2.1. See the file LICENSE in the top level directory for more
|
|
|
|
* details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2017-10-27 01:26:26 +02:00
|
|
|
* @defgroup cpu_kinetis_wdog Kinetis WDOG
|
|
|
|
* @ingroup cpu_kinetis
|
2015-02-09 13:50:37 +01:00
|
|
|
* @brief Driver for Freescale WDOG device.
|
|
|
|
* There are different implementations of the Watchdog devices.
|
|
|
|
* Currently, it is only possible to turn the Watchdog off.
|
|
|
|
* It supports two types: an advanced Watchdog, mostly found
|
|
|
|
* on Kinetis MCUs with Cortex-M4 inside and a simpler
|
|
|
|
* COP Watchdog.
|
|
|
|
*
|
|
|
|
* ### WDOG Configuration Example (for periph_conf.h) ###
|
|
|
|
* The driver attempts to determine the type of the WDOG.
|
2015-02-18 10:59:37 +01:00
|
|
|
* Also you can force the use of advanced WDOG:
|
2015-02-09 13:50:37 +01:00
|
|
|
*
|
|
|
|
* #define KINETIS_WDOG_ADVANCED 1
|
|
|
|
*
|
2015-02-18 10:59:37 +01:00
|
|
|
* Or the use of COP WDOG:
|
2015-02-09 13:50:37 +01:00
|
|
|
*
|
|
|
|
* #define KINETIS_WDOG_ADVANCED 0
|
|
|
|
*
|
|
|
|
* @{
|
|
|
|
|
|
|
|
* @file
|
|
|
|
* @brief Interface definition for the Kinetis WDOG driver.
|
|
|
|
*
|
|
|
|
* @author Johann Fischer <j.fischer@phytec.de>
|
2015-09-20 13:47:39 +02:00
|
|
|
* @author Joakim Nohlgård <joakim.nohlgard@eistec.se>
|
2015-02-09 13:50:37 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef WDOG_H
|
|
|
|
#define WDOG_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Disable hardware watchdog.
|
|
|
|
*/
|
|
|
|
void wdog_disable(void);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* WDOG_H */
|
|
|
|
/** @} */
|