stm32f10x_wwdg.c File Reference

This file provides all the WWDG firmware functions. More...

#include "stm32f10x_wwdg.h"
#include "stm32f10x_rcc.h"

Go to the source code of this file.

Defines

#define BIT_Mask   ((uint8_t)0x7F)
#define CFR_EWI_BB   (PERIPH_BB_BASE + (CFR_OFFSET * 32) + (EWI_BitNumber * 4))
#define CFR_OFFSET   (WWDG_OFFSET + 0x04)
#define CFR_W_Mask   ((uint32_t)0xFFFFFF80)
#define CFR_WDGTB_Mask   ((uint32_t)0xFFFFFE7F)
#define CR_WDGA_Set   ((uint32_t)0x00000080)
#define EWI_BitNumber   0x09
#define WWDG_OFFSET   (WWDG_BASE - PERIPH_BASE)

Functions

void WWDG_ClearFlag (void)
 Clears Early Wakeup interrupt flag.
void WWDG_DeInit (void)
 Deinitializes the WWDG peripheral registers to their default reset values.
void WWDG_Enable (uint8_t Counter)
 Enables WWDG and load the counter value.
void WWDG_EnableIT (void)
 Enables the WWDG Early Wakeup interrupt(EWI).
FlagStatus WWDG_GetFlagStatus (void)
 Checks whether the Early Wakeup interrupt flag is set or not.
void WWDG_SetCounter (uint8_t Counter)
 Sets the WWDG counter value.
void WWDG_SetPrescaler (uint32_t WWDG_Prescaler)
 Sets the WWDG Prescaler.
void WWDG_SetWindowValue (uint8_t WindowValue)
 Sets the WWDG window value.

Detailed Description

This file provides all the WWDG firmware functions.

Author:
MCD Application Team
Version:
V3.4.0
Date:
10/15/2010

THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.

© COPYRIGHT 2010 STMicroelectronics

Definition in file stm32f10x_wwdg.c.

STM32F10x Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM32(CORTEX M3) 32-bit Microcontrollers platform visit  www.st.com/STM32