STM32F37 Standard Peripheral bibliotheek  1.0
ST Microelectronics bibliotheek documentatie voor de STM32F37 Standard Peripheral Library
 All Data Structures Files Functions Variables Enumerations Enumerator Groups
stm32f37x_wwdg.h
Go to the documentation of this file.
1 
29 /* Define to prevent recursive inclusion -------------------------------------*/
30 #ifndef __STM32F37X_WWDG_H
31 #define __STM32F37X_WWDG_H
32 
33 #ifdef __cplusplus
34  extern "C" {
35 #endif
36 
37 /* Includes ------------------------------------------------------------------*/
38 #include "stm32f37x.h"
39 
48 /* Exported types ------------------------------------------------------------*/
49 /* Exported constants --------------------------------------------------------*/
50 
59 #define WWDG_Prescaler_1 ((uint32_t)0x00000000)
60 #define WWDG_Prescaler_2 ((uint32_t)0x00000080)
61 #define WWDG_Prescaler_4 ((uint32_t)0x00000100)
62 #define WWDG_Prescaler_8 ((uint32_t)0x00000180)
63 #define IS_WWDG_PRESCALER(PRESCALER) (((PRESCALER) == WWDG_Prescaler_1) || \
64  ((PRESCALER) == WWDG_Prescaler_2) || \
65  ((PRESCALER) == WWDG_Prescaler_4) || \
66  ((PRESCALER) == WWDG_Prescaler_8))
67 #define IS_WWDG_WINDOW_VALUE(VALUE) ((VALUE) <= 0x7F)
68 #define IS_WWDG_COUNTER(COUNTER) (((COUNTER) >= 0x40) && ((COUNTER) <= 0x7F))
69 
78 /* Exported macro ------------------------------------------------------------*/
79 /* Exported functions ------------------------------------------------------- */
80 /* Function used to set the WWDG configuration to the default reset state ****/
81 void WWDG_DeInit(void);
82 
83 /* Prescaler, Refresh window and Counter configuration functions **************/
84 void WWDG_SetPrescaler(uint32_t WWDG_Prescaler);
85 void WWDG_SetWindowValue(uint8_t WindowValue);
86 void WWDG_EnableIT(void);
87 void WWDG_SetCounter(uint8_t Counter);
88 
89 /* WWDG activation functions **************************************************/
90 void WWDG_Enable(uint8_t Counter);
91 
92 /* Interrupts and flags management functions **********************************/
93 FlagStatus WWDG_GetFlagStatus(void);
94 void WWDG_ClearFlag(void);
95 
96 #ifdef __cplusplus
97 }
98 #endif
99 
100 #endif /* __STM32F37X_WWDG_H */
101 
110 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/