WWDG_Private_Functions
[WWDG]

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.

Function Documentation

void WWDG_ClearFlag ( void   ) 

Clears Early Wakeup interrupt flag.

Parameters:
None 
Return values:
None 

Definition at line 206 of file stm32f10x_wwdg.c.

References RESET, and WWDG.

Referenced by main(), and WWDG_IRQHandler().

void WWDG_DeInit ( void   ) 

Deinitializes the WWDG peripheral registers to their default reset values.

Parameters:
None 
Return values:
None 

Definition at line 101 of file stm32f10x_wwdg.c.

References DISABLE, ENABLE, RCC_APB1Periph_WWDG, and RCC_APB1PeriphResetCmd().

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.
Return values:
None 

Definition at line 184 of file stm32f10x_wwdg.c.

References assert_param, CR_WDGA_Set, IS_WWDG_COUNTER, and WWDG.

Referenced by main().

void WWDG_EnableIT ( void   ) 

Enables the WWDG Early Wakeup interrupt(EWI).

Parameters:
None 
Return values:
None 

Definition at line 158 of file stm32f10x_wwdg.c.

References CFR_EWI_BB, and ENABLE.

Referenced by main().

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)

Definition at line 196 of file stm32f10x_wwdg.c.

References WWDG.

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.
Return values:
None 

Definition at line 169 of file stm32f10x_wwdg.c.

References assert_param, BIT_Mask, IS_WWDG_COUNTER, and WWDG.

Referenced by WWDG_IRQHandler().

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 

Definition at line 117 of file stm32f10x_wwdg.c.

References assert_param, CFR_WDGTB_Mask, IS_WWDG_PRESCALER, and WWDG.

Referenced by main().

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 

Definition at line 136 of file stm32f10x_wwdg.c.

References assert_param, BIT_Mask, CFR_W_Mask, IS_WWDG_WINDOW_VALUE, and WWDG.

Referenced by main().

STM32F10x Standard Peripherals Library: Footer

 

 

 

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