libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
iwdg_common_v2.h
Go to the documentation of this file.
1
/** @addtogroup iwdg_defines
2
3
@author @htmlonly © @endhtmlonly 2018 Guillame Revaillot <revaillot@archos.com>
4
5
*/
6
/*
7
* This file is part of the libopencm3 project.
8
*
9
* Copyright (C) 2018 Guillaume Revaillot <revaillot@archos.com>
10
* Copyright (C) 2010 Thomas Otto <tommi@viadmin.org>
11
*
12
* This library is free software: you can redistribute it and/or modify
13
* it under the terms of the GNU Lesser General Public License as published by
14
* the Free Software Foundation, either version 3 of the License, or
15
* (at your option) any later version.
16
*
17
* This library is distributed in the hope that it will be useful,
18
* but WITHOUT ANY WARRANTY; without even the implied warranty of
19
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
* GNU Lesser General Public License for more details.
21
*
22
* You should have received a copy of the GNU Lesser General Public License
23
* along with this library. If not, see <http://www.gnu.org/licenses/>.
24
*/
25
26
/* THIS FILE SHOULD NOT BE INCLUDED DIRECTLY, BUT ONLY VIA IWDG.H
27
The order of header inclusion is important. iwdg.h includes the device
28
specific memorymap.h header before including this header file.*/
29
30
/** @cond */
31
#ifdef LIBOPENCM3_IWDG_H
32
/** @endcond */
33
#pragma once
34
35
/**@{*/
36
37
#include <
libopencm3/stm32/common/iwdg_common_all.h
>
38
39
/*****************************************************************************/
40
/* Module definitions */
41
/*****************************************************************************/
42
43
/*****************************************************************************/
44
/* Register definitions */
45
/*****************************************************************************/
46
47
/** Window Register (IWDG_WINR) */
48
#define IWDG_WINR MMIO32(IWDG_BASE + 0x10)
49
50
/*****************************************************************************/
51
/* Register values */
52
/*****************************************************************************/
53
54
/** @addtogroup iwdg_sr_values
55
@{*/
56
/** WVU: Watchdog counter window value update */
57
#define IWDG_SR_WVU (1 << 2)
58
/**@}*/
59
60
/*****************************************************************************/
61
/* API definitions */
62
/*****************************************************************************/
63
64
/*****************************************************************************/
65
/* API Functions */
66
/*****************************************************************************/
67
68
69
BEGIN_DECLS
70
71
END_DECLS
72
73
/**@}*/
74
75
/** @cond */
76
#else
77
#warning "iwdg_common_v2.h should not be included explicitly, only via iwdg.h"
78
#endif
79
/** @endcond */
80
END_DECLS
#define END_DECLS
Definition:
common.h:34
BEGIN_DECLS
#define BEGIN_DECLS
Definition:
common.h:33
iwdg_common_all.h
include
libopencm3
stm32
common
iwdg_common_v2.h
Generated on Tue Mar 7 2023 16:12:11 for libopencm3 by
1.9.4