STM32F10x Standard Peripherals Library  3.5.0
/opt/STM32F10x_StdPeriph_Lib_V3.5.0/Libraries/STM32F10x_StdPeriph_Driver/inc/stm32f10x_wwdg.h
Go to the documentation of this file.
00001 
00023 /* Define to prevent recursive inclusion -------------------------------------*/
00024 #ifndef __STM32F10x_WWDG_H
00025 #define __STM32F10x_WWDG_H
00026 
00027 #ifdef __cplusplus
00028  extern "C" {
00029 #endif
00030 
00031 /* Includes ------------------------------------------------------------------*/
00032 #include "stm32f10x.h"
00033 
00058 #define WWDG_Prescaler_1    ((uint32_t)0x00000000)
00059 #define WWDG_Prescaler_2    ((uint32_t)0x00000080)
00060 #define WWDG_Prescaler_4    ((uint32_t)0x00000100)
00061 #define WWDG_Prescaler_8    ((uint32_t)0x00000180)
00062 #define IS_WWDG_PRESCALER(PRESCALER) (((PRESCALER) == WWDG_Prescaler_1) || \
00063                                       ((PRESCALER) == WWDG_Prescaler_2) || \
00064                                       ((PRESCALER) == WWDG_Prescaler_4) || \
00065                                       ((PRESCALER) == WWDG_Prescaler_8))
00066 #define IS_WWDG_WINDOW_VALUE(VALUE) ((VALUE) <= 0x7F)
00067 #define IS_WWDG_COUNTER(COUNTER) (((COUNTER) >= 0x40) && ((COUNTER) <= 0x7F))
00068 
00088 void WWDG_DeInit(void);
00089 void WWDG_SetPrescaler(uint32_t WWDG_Prescaler);
00090 void WWDG_SetWindowValue(uint8_t WindowValue);
00091 void WWDG_EnableIT(void);
00092 void WWDG_SetCounter(uint8_t Counter);
00093 void WWDG_Enable(uint8_t Counter);
00094 FlagStatus WWDG_GetFlagStatus(void);
00095 void WWDG_ClearFlag(void);
00096 
00097 #ifdef __cplusplus
00098 }
00099 #endif
00100 
00101 #endif /* __STM32F10x_WWDG_H */
00102 
00115 /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/