STM32F1 Standard Peripheral bibliotheek  1.0
ST Microelectronics bibliotheek documentatie voor de STM32F1 Standard Peripheral Library
 All Data Structures Files Functions Variables Enumerations Groups
stm32f10x_wwdg.h
Go to the documentation of this file.
1 
22 /* Define to prevent recursive inclusion -------------------------------------*/
23 #ifndef __STM32F10x_WWDG_H
24 #define __STM32F10x_WWDG_H
25 
26 #ifdef __cplusplus
27  extern "C" {
28 #endif
29 
30 /* Includes ------------------------------------------------------------------*/
31 #include "stm32f10x.h"
32 
57 #define WWDG_Prescaler_1 ((uint32_t)0x00000000)
58 #define WWDG_Prescaler_2 ((uint32_t)0x00000080)
59 #define WWDG_Prescaler_4 ((uint32_t)0x00000100)
60 #define WWDG_Prescaler_8 ((uint32_t)0x00000180)
61 #define IS_WWDG_PRESCALER(PRESCALER) (((PRESCALER) == WWDG_Prescaler_1) || \
62  ((PRESCALER) == WWDG_Prescaler_2) || \
63  ((PRESCALER) == WWDG_Prescaler_4) || \
64  ((PRESCALER) == WWDG_Prescaler_8))
65 #define IS_WWDG_WINDOW_VALUE(VALUE) ((VALUE) <= 0x7F)
66 #define IS_WWDG_COUNTER(COUNTER) (((COUNTER) >= 0x40) && ((COUNTER) <= 0x7F))
67 
87 void WWDG_DeInit(void);
88 void WWDG_SetPrescaler(uint32_t WWDG_Prescaler);
89 void WWDG_SetWindowValue(uint8_t WindowValue);
90 void WWDG_EnableIT(void);
91 void WWDG_SetCounter(uint8_t Counter);
92 void WWDG_Enable(uint8_t Counter);
93 FlagStatus WWDG_GetFlagStatus(void);
94 void WWDG_ClearFlag(void);
95 
96 #ifdef __cplusplus
97 }
98 #endif
99 
100 #endif /* __STM32F10x_WWDG_H */
101 
114 /******************* (C) COPYRIGHT 2010 STMicroelectronics *****END OF FILE****/