Files
discoverpixy/stm32f4xx__wwdg_8c.html
2015-05-12 11:12:43 +02:00

229 lines
23 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>discoverpixy: discovery/libs/StmCoreNPheriph/src/stm32f4xx_wwdg.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">discoverpixy
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
<li><a href="globals.html"><span>File&#160;Members</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_84db96586f7d962b526d6d9627d831c2.html">discovery</a></li><li class="navelem"><a class="el" href="dir_07523c13f04fd35d8848cb17a371cb5b.html">libs</a></li><li class="navelem"><a class="el" href="dir_1d60ba7d807ff336a2be2f2de640bf2b.html">StmCoreNPheriph</a></li><li class="navelem"><a class="el" href="dir_12f7a99b9d2a0e5955a2ac990af20021.html">src</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">stm32f4xx_wwdg.c File Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>This file provides firmware functions to manage the following functionalities of the Window watchdog (WWDG) peripheral:
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &quot;<a class="el" href="stm32f4xx__wwdg_8h_source.html">stm32f4xx_wwdg.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="stm32f4xx__rcc_8h_source.html">stm32f4xx_rcc.h</a>&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for stm32f4xx_wwdg.c:</div>
<div class="dyncontent">
<div class="center"><img src="stm32f4xx__wwdg_8c__incl.png" border="0" usemap="#discovery_2libs_2_stm_core_n_pheriph_2src_2stm32f4xx__wwdg_8c" alt=""/></div>
<map name="discovery_2libs_2_stm_core_n_pheriph_2src_2stm32f4xx__wwdg_8c" id="discovery_2libs_2_stm_core_n_pheriph_2src_2stm32f4xx__wwdg_8c">
<area shape="rect" id="node2" href="stm32f4xx__wwdg_8h.html" title="This file contains all the functions prototypes for the WWDG firmware library. " alt="" coords="2283,95,2415,121"/><area shape="rect" id="node21" href="stm32f4xx__rcc_8h.html" title="This file contains all the functions prototypes for the RCC firmware library. " alt="" coords="4015,319,4133,345"/><area shape="rect" id="node3" href="stm32f4xx_8h.html" title="CMSIS Cortex&#45;M4 Device Peripheral Access Layer Header File. This file contains all the peripheral reg..." alt="" coords="2177,169,2270,196"/><area shape="rect" id="node4" href="core__cm4_8h.html" title="CMSIS Cortex&#45;M4 Core Peripheral Access Layer Header File. " alt="" coords="350,244,441,271"/><area shape="rect" id="node9" href="system__stm32f4xx_8h.html" title="CMSIS Cortex&#45;M4 Device System Source File for STM32F4xx devices. " alt="" coords="183,244,325,271"/><area shape="rect" id="node10" href="stm32f4xx__conf_8h_source.html" title="stm32f4xx_conf.h" alt="" coords="2287,244,2411,271"/><area shape="rect" id="node6" href="core__cm_instr_8h.html" title="CMSIS Cortex&#45;M Core Instruction Access Header File. " alt="" coords="245,319,351,345"/><area shape="rect" id="node7" href="core__cm_func_8h.html" title="CMSIS Cortex&#45;M Core Function Access Header File. " alt="" coords="375,319,487,345"/><area shape="rect" id="node8" href="core__cm4__simd_8h.html" title="CMSIS Cortex&#45;M4 SIMD Header File. " alt="" coords="95,319,221,345"/><area shape="rect" id="node11" href="stm32f4xx__adc_8h.html" title="This file contains all the functions prototypes for the ADC firmware library. " alt="" coords="512,319,633,345"/><area shape="rect" id="node12" href="stm32f4xx__crc_8h.html" title="This file contains all the functions prototypes for the CRC firmware library. " alt="" coords="657,319,776,345"/><area shape="rect" id="node13" href="stm32f4xx__dbgmcu_8h.html" title="This file contains all the functions prototypes for the DBGMCU firmware library. " alt="" coords="801,319,947,345"/><area shape="rect" id="node14" href="stm32f4xx__dma_8h.html" title="This file contains all the functions prototypes for the DMA firmware library. " alt="" coords="971,319,1097,345"/><area shape="rect" id="node15" href="stm32f4xx__exti_8h.html" title="This file contains all the functions prototypes for the EXTI firmware library. " alt="" coords="1121,319,1243,345"/><area shape="rect" id="node16" href="stm32f4xx__flash_8h.html" title="This file contains all the functions prototypes for the FLASH firmware library. " alt="" coords="1267,319,1393,345"/><area shape="rect" id="node17" href="stm32f4xx__gpio_8h.html" title="This file contains all the functions prototypes for the GPIO firmware library. " alt="" coords="1417,319,1541,345"/><area shape="rect" id="node18" href="stm32f4xx__i2c_8h.html" title="This file contains all the functions prototypes for the I2C firmware library. " alt="" coords="1565,319,1682,345"/><area shape="rect" id="node19" href="stm32f4xx__iwdg_8h.html" title="This file contains all the functions prototypes for the IWDG firmware library. " alt="" coords="1707,319,1833,345"/><area shape="rect" id="node20" href="stm32f4xx__pwr_8h.html" title="This file contains all the functions prototypes for the PWR firmware library. " alt="" coords="1857,319,1976,345"/><area shape="rect" id="node22" href="stm32f4xx__rtc_8h.html" title="This file contains all the functions prototypes for the RTC firmware library. " alt="" coords="2001,319,2115,345"/><area shape="rect" id="node23" href="stm32f4xx__sdio_8h.html" title="This file contains all the functions prototypes for the SDIO firmware library. " alt="" coords="2140,319,2264,345"/><area shape="rect" id="node24" href="stm32f4xx__spi_8h.html" title="This file contains all the functions prototypes for the SPI firmware library. " alt="" coords="2287,319,2405,345"/><area shape="rect" id="node25" href="stm32f4xx__syscfg_8h.html" title="This file contains all the functions prototypes for the SYSCFG firmware library. " alt="" coords="2429,319,2567,345"/><area shape="rect" id="node26" href="stm32f4xx__tim_8h.html" title="This file contains all the functions prototypes for the TIM firmware library. " alt="" coords="2592,319,2711,345"/><area shape="rect" id="node27" href="stm32f4xx__usart_8h.html" title="This file contains all the functions prototypes for the USART firmware library. " alt="" coords="2735,319,2864,345"/><area shape="rect" id="node28" href="misc_8h.html" title="This file contains all the functions prototypes for the miscellaneous firmware library functions (add..." alt="" coords="2889,319,2950,345"/><area shape="rect" id="node29" href="stm32f4xx__cryp_8h.html" title="This file contains all the functions prototypes for the Cryptographic processor(CRYP) firmware librar..." alt="" coords="2974,319,3099,345"/><area shape="rect" id="node30" href="stm32f4xx__hash_8h.html" title="This file contains all the functions prototypes for the HASH firmware library. " alt="" coords="3123,319,3251,345"/><area shape="rect" id="node31" href="stm32f4xx__rng_8h.html" title="This file contains all the functions prototypes for the Random Number Generator(RNG) firmware library..." alt="" coords="3276,319,3395,345"/><area shape="rect" id="node32" href="stm32f4xx__can_8h.html" title="This file contains all the functions prototypes for the CAN firmware library. " alt="" coords="3419,319,3540,345"/><area shape="rect" id="node33" href="stm32f4xx__dac_8h.html" title="This file contains all the functions prototypes for the DAC firmware library. " alt="" coords="3564,319,3685,345"/><area shape="rect" id="node34" href="stm32f4xx__dcmi_8h.html" title="This file contains all the functions prototypes for the DCMI firmware library. " alt="" coords="3710,319,3838,345"/><area shape="rect" id="node35" href="stm32f4xx__fsmc_8h.html" title="This file contains all the functions prototypes for the FSMC firmware library. " alt="" coords="3862,319,3990,345"/></map>
</div>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:gab6dcdf2385dd7317ec775e146cff40ca"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gab6dcdf2385dd7317ec775e146cff40ca"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>WWDG_OFFSET</b>&#160;&#160;&#160;(WWDG_BASE - <a class="el" href="group___peripheral__memory__map.html#ga9171f49478fa86d932f89e78e73b88b0">PERIPH_BASE</a>)</td></tr>
<tr class="separator:gab6dcdf2385dd7317ec775e146cff40ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3e0f9d9f7f69a6d133bba721e25aca4a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga3e0f9d9f7f69a6d133bba721e25aca4a"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>CFR_OFFSET</b>&#160;&#160;&#160;(WWDG_OFFSET + 0x04)</td></tr>
<tr class="separator:ga3e0f9d9f7f69a6d133bba721e25aca4a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga97c9005823520f5aaefe211923b48215"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga97c9005823520f5aaefe211923b48215"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>EWI_BitNumber</b>&#160;&#160;&#160;0x09</td></tr>
<tr class="separator:ga97c9005823520f5aaefe211923b48215"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa48804210cea547f0e0f4ca49c44fc94"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaa48804210cea547f0e0f4ca49c44fc94"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>CFR_EWI_BB</b>&#160;&#160;&#160;(<a class="el" href="group___peripheral__memory__map.html#gaed7efc100877000845c236ccdc9e144a">PERIPH_BB_BASE</a> + (CFR_OFFSET * 32) + (EWI_BitNumber * 4))</td></tr>
<tr class="separator:gaa48804210cea547f0e0f4ca49c44fc94"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab500f6978b5964c1de28e59e7ac98012"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gab500f6978b5964c1de28e59e7ac98012"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>CFR_WDGTB_MASK</b>&#160;&#160;&#160;((uint32_t)0xFFFFFE7F)</td></tr>
<tr class="separator:gab500f6978b5964c1de28e59e7ac98012"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab99b48f5d1720c22c2ef8d8a5f934a11"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gab99b48f5d1720c22c2ef8d8a5f934a11"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>CFR_W_MASK</b>&#160;&#160;&#160;((uint32_t)0xFFFFFF80)</td></tr>
<tr class="separator:gab99b48f5d1720c22c2ef8d8a5f934a11"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7d4a1875576135ebdd354a816679d45c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga7d4a1875576135ebdd354a816679d45c"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>BIT_MASK</b>&#160;&#160;&#160;((uint8_t)0x7F)</td></tr>
<tr class="separator:ga7d4a1875576135ebdd354a816679d45c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga7130f4dc861b9234b62e73f9f57f89a1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___w_w_d_g___group1.html#ga7130f4dc861b9234b62e73f9f57f89a1">WWDG_DeInit</a> (void)</td></tr>
<tr class="memdesc:ga7130f4dc861b9234b62e73f9f57f89a1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Deinitializes the WWDG peripheral registers to their default reset values. <a href="group___w_w_d_g___group1.html#ga7130f4dc861b9234b62e73f9f57f89a1">More...</a><br /></td></tr>
<tr class="separator:ga7130f4dc861b9234b62e73f9f57f89a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gafeaa2b52c31ba7baca7eb61d2d42e07b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___w_w_d_g___group1.html#gafeaa2b52c31ba7baca7eb61d2d42e07b">WWDG_SetPrescaler</a> (uint32_t WWDG_Prescaler)</td></tr>
<tr class="memdesc:gafeaa2b52c31ba7baca7eb61d2d42e07b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the WWDG Prescaler. <a href="group___w_w_d_g___group1.html#gafeaa2b52c31ba7baca7eb61d2d42e07b">More...</a><br /></td></tr>
<tr class="separator:gafeaa2b52c31ba7baca7eb61d2d42e07b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf44a7bf8bf6b11b41cd89ff521fdd5a5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___w_w_d_g___group1.html#gaf44a7bf8bf6b11b41cd89ff521fdd5a5">WWDG_SetWindowValue</a> (uint8_t WindowValue)</td></tr>
<tr class="memdesc:gaf44a7bf8bf6b11b41cd89ff521fdd5a5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the WWDG window value. <a href="group___w_w_d_g___group1.html#gaf44a7bf8bf6b11b41cd89ff521fdd5a5">More...</a><br /></td></tr>
<tr class="separator:gaf44a7bf8bf6b11b41cd89ff521fdd5a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac8af66ea5254d3d78b60b9b7c7f29521"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___w_w_d_g___group1.html#gac8af66ea5254d3d78b60b9b7c7f29521">WWDG_EnableIT</a> (void)</td></tr>
<tr class="memdesc:gac8af66ea5254d3d78b60b9b7c7f29521"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables the WWDG Early Wakeup interrupt(EWI). <a href="group___w_w_d_g___group1.html#gac8af66ea5254d3d78b60b9b7c7f29521">More...</a><br /></td></tr>
<tr class="separator:gac8af66ea5254d3d78b60b9b7c7f29521"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6e44cc35f133b28b9ad861f459bf8d76"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___w_w_d_g___group1.html#ga6e44cc35f133b28b9ad861f459bf8d76">WWDG_SetCounter</a> (uint8_t Counter)</td></tr>
<tr class="memdesc:ga6e44cc35f133b28b9ad861f459bf8d76"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the WWDG counter value. <a href="group___w_w_d_g___group1.html#ga6e44cc35f133b28b9ad861f459bf8d76">More...</a><br /></td></tr>
<tr class="separator:ga6e44cc35f133b28b9ad861f459bf8d76"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga10dc2554d0b504b5472e3ecf0f02a9e6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___w_w_d_g___group2.html#ga10dc2554d0b504b5472e3ecf0f02a9e6">WWDG_Enable</a> (uint8_t Counter)</td></tr>
<tr class="memdesc:ga10dc2554d0b504b5472e3ecf0f02a9e6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables WWDG and load the counter value. <a href="group___w_w_d_g___group2.html#ga10dc2554d0b504b5472e3ecf0f02a9e6">More...</a><br /></td></tr>
<tr class="separator:ga10dc2554d0b504b5472e3ecf0f02a9e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7df4882d45918b9b8249dfca1e44fabc"><td class="memItemLeft" align="right" valign="top">FlagStatus&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___w_w_d_g___group3.html#ga7df4882d45918b9b8249dfca1e44fabc">WWDG_GetFlagStatus</a> (void)</td></tr>
<tr class="memdesc:ga7df4882d45918b9b8249dfca1e44fabc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks whether the Early Wakeup interrupt flag is set or not. <a href="group___w_w_d_g___group3.html#ga7df4882d45918b9b8249dfca1e44fabc">More...</a><br /></td></tr>
<tr class="separator:ga7df4882d45918b9b8249dfca1e44fabc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabd2b5a6317c2e1a3ab0795838ce59dd2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___w_w_d_g___group3.html#gabd2b5a6317c2e1a3ab0795838ce59dd2">WWDG_ClearFlag</a> (void)</td></tr>
<tr class="memdesc:gabd2b5a6317c2e1a3ab0795838ce59dd2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears Early Wakeup interrupt flag. <a href="group___w_w_d_g___group3.html#gabd2b5a6317c2e1a3ab0795838ce59dd2">More...</a><br /></td></tr>
<tr class="separator:gabd2b5a6317c2e1a3ab0795838ce59dd2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>This file provides firmware functions to manage the following functionalities of the Window watchdog (WWDG) peripheral: </p>
<dl class="section author"><dt>Author</dt><dd>MCD Application Team </dd></dl>
<dl class="section version"><dt>Version</dt><dd>V1.4.0 </dd></dl>
<dl class="section date"><dt>Date</dt><dd>04-August-2014<ul>
<li>Prescaler, Refresh window and Counter configuration</li>
<li>WWDG activation</li>
<li>Interrupts and flags management</li>
</ul>
</dd></dl>
<pre class="fragment">===============================================================================
##### WWDG features #####
===============================================================================
[..]
Once enabled the WWDG generates a system reset on expiry of a programmed
time period, unless the program refreshes the counter (downcounter)
before to reach 0x3F value (i.e. a reset is generated when the counter
value rolls over from 0x40 to 0x3F).
An MCU reset is also generated if the counter value is refreshed
before the counter has reached the refresh window value. This
implies that the counter must be refreshed in a limited window.
Once enabled the WWDG cannot be disabled except by a system reset.
WWDGRST flag in RCC_CSR register can be used to inform when a WWDG
reset occurs.
The WWDG counter input clock is derived from the APB clock divided
by a programmable prescaler.
WWDG counter clock = PCLK1 / Prescaler
WWDG timeout = (WWDG counter clock) * (counter value)
Min-max timeout value @42 MHz(PCLK1): ~97.5 us / ~49.9 ms
##### How to use this driver #####
===============================================================================
[..]
(#) Enable WWDG clock using RCC_APB1PeriphClockCmd(RCC_APB1Periph_WWDG, ENABLE) function
(#) Configure the WWDG prescaler using WWDG_SetPrescaler() function
(#) Configure the WWDG refresh window using WWDG_SetWindowValue() function
(#) Set the WWDG counter value and start it using WWDG_Enable() function.
When the WWDG is enabled the counter value should be configured to
a value greater than 0x40 to prevent generating an immediate reset.
(#) Optionally you can enable the Early wakeup interrupt which is
generated when the counter reach 0x40.
Once enabled this interrupt cannot be disabled except by a system reset.
(#) Then the application program must refresh the WWDG counter at regular
intervals during normal operation to prevent an MCU reset, using
WWDG_SetCounter() function. This operation must occur only when
the counter value is lower than the refresh window value,
programmed using WWDG_SetWindowValue(). </pre><dl class="section attention"><dt>Attention</dt><dd></dd></dl>
<h2><center>&copy; COPYRIGHT 2014 STMicroelectronics</center></h2>
<p>Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at: </p><pre class="fragment"> http://www.st.com/software_license_agreement_liberty_v2
</pre><p>Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. </p>
</div></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun May 10 2015 15:15:19 for discoverpixy by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>