Blame view

RIOT/cpu/kinetis_common/include/wdog.h 1.46 KB
a752c7ab   elopes   add first test an...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
  /*
   * 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.
   */
  
  /**
   * @defgroup    cpu_kinetis_common_wdog Kinetis WDOG
   * @ingroup     cpu_kinetis_common
   * @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.
   *              Also you can force the use of advanced WDOG:
   *
   *                  #define KINETIS_WDOG_ADVANCED    1
   *
   *              Or the use of COP WDOG:
   *
   *                  #define KINETIS_WDOG_ADVANCED    0
   *
   * @{
  
   * @file
   * @brief       Interface definition for the Kinetis WDOG driver.
   *
   * @author      Johann Fischer <j.fischer@phytec.de>
   * @author      Joakim Nohlgård <joakim.nohlgard@eistec.se>
   */
  
  #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 */
  /** @} */