WWDG
[STM32F4xx_StdPeriph_Driver]

WWDG driver modules. More...

Modules

 WWDG_Exported_Constants
 WWDG_Private_Functions

Defines

#define WWDG_OFFSET   (WWDG_BASE - PERIPH_BASE)
#define CFR_OFFSET   (WWDG_OFFSET + 0x04)
#define EWI_BitNumber   0x09
#define CFR_EWI_BB   (PERIPH_BB_BASE + (CFR_OFFSET * 32) + (EWI_BitNumber * 4))
#define CFR_WDGTB_MASK   ((uint32_t)0xFFFFFE7F)
#define CFR_W_MASK   ((uint32_t)0xFFFFFF80)
#define BIT_MASK   ((uint8_t)0x7F)

Functions

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

Detailed Description

WWDG driver modules.


Function Documentation

void WWDG_ClearFlag ( void   ) 

Clears Early Wakeup interrupt flag.

Parameters:
None 
Return values:
None 
void WWDG_DeInit ( void   ) 

Deinitializes the WWDG peripheral registers to their default reset values.

Parameters:
None 
Return values:
None 
void WWDG_Enable ( uint8_t  Counter  ) 

Enables WWDG and load the counter value.

Parameters:
Counter,: specifies the watchdog counter value. This parameter must be a number between 0x40 and 0x7F (to prevent generating an immediate reset)
Return values:
None 
void WWDG_EnableIT ( void   ) 

Enables the WWDG Early Wakeup interrupt(EWI).

Note:
Once enabled this interrupt cannot be disabled except by a system reset.
Parameters:
None 
Return values:
None 
FlagStatus WWDG_GetFlagStatus ( void   ) 

Checks whether the Early Wakeup interrupt flag is set or not.

Parameters:
None 
Return values:
The new state of the Early Wakeup interrupt flag (SET or RESET)
void WWDG_SetCounter ( uint8_t  Counter  ) 

Sets the WWDG counter value.

Parameters:
Counter,: specifies the watchdog counter value. This parameter must be a number between 0x40 and 0x7F (to prevent generating an immediate reset)
Return values:
None 
void WWDG_SetPrescaler ( uint32_t  WWDG_Prescaler  ) 

Sets the WWDG Prescaler.

Parameters:
WWDG_Prescaler,: specifies the WWDG Prescaler. This parameter can be one of the following values:

  • WWDG_Prescaler_1: WWDG counter clock = (PCLK1/4096)/1
  • WWDG_Prescaler_2: WWDG counter clock = (PCLK1/4096)/2
  • WWDG_Prescaler_4: WWDG counter clock = (PCLK1/4096)/4
  • WWDG_Prescaler_8: WWDG counter clock = (PCLK1/4096)/8
Return values:
None 
void WWDG_SetWindowValue ( uint8_t  WindowValue  ) 

Sets the WWDG window value.

Parameters:
WindowValue,: specifies the window value to be compared to the downcounter. This parameter value must be lower than 0x80.
Return values:
None 
Generated on Fri Jun 22 00:58:31 2012 for STM32F4xx_StdPeriph_Driver by  doxygen 1.6.3