stm32f10x_wwdg.h
Go to the documentation of this file.
1 
23 /* Define to prevent recursive inclusion -------------------------------------*/
24 #ifndef __STM32F10x_WWDG_H
25 #define __STM32F10x_WWDG_H
26 
27 #ifdef __cplusplus
28  extern "C" {
29 #endif
30 
31 /* Includes ------------------------------------------------------------------*/
32 #include "stm32f10x.h"
33 
58 #define WWDG_Prescaler_1 ((uint32_t)0x00000000)
59 #define WWDG_Prescaler_2 ((uint32_t)0x00000080)
60 #define WWDG_Prescaler_4 ((uint32_t)0x00000100)
61 #define WWDG_Prescaler_8 ((uint32_t)0x00000180)
62 #define IS_WWDG_PRESCALER(PRESCALER) (((PRESCALER) == WWDG_Prescaler_1) || \
63  ((PRESCALER) == WWDG_Prescaler_2) || \
64  ((PRESCALER) == WWDG_Prescaler_4) || \
65  ((PRESCALER) == WWDG_Prescaler_8))
66 #define IS_WWDG_WINDOW_VALUE(VALUE) ((VALUE) <= 0x7F)
67 #define IS_WWDG_COUNTER(COUNTER) (((COUNTER) >= 0x40) && ((COUNTER) <= 0x7F))
68 
88 void WWDG_DeInit(void);
89 void WWDG_SetPrescaler(uint32_t WWDG_Prescaler);
90 void WWDG_SetWindowValue(uint8_t WindowValue);
91 void WWDG_EnableIT(void);
92 void WWDG_SetCounter(uint8_t Counter);
93 void WWDG_Enable(uint8_t Counter);
95 void WWDG_ClearFlag(void);
96 
97 #ifdef __cplusplus
98 }
99 #endif
100 
101 #endif /* __STM32F10x_WWDG_H */
102 
115 /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/
FlagStatus
Definition: stm32f4xx.h:706
void WWDG_SetPrescaler(uint32_t WWDG_Prescaler)
Sets the WWDG Prescaler.
void WWDG_SetCounter(uint8_t Counter)
Sets the WWDG counter value.
void WWDG_DeInit(void)
Deinitializes the WWDG peripheral registers to their default reset values.
void WWDG_ClearFlag(void)
Clears Early Wakeup interrupt flag.
void WWDG_SetWindowValue(uint8_t WindowValue)
Sets the WWDG window value.
FlagStatus WWDG_GetFlagStatus(void)
Checks whether the Early Wakeup interrupt flag is set or not.
void WWDG_EnableIT(void)
Enables the WWDG Early Wakeup interrupt(EWI).
CMSIS Cortex-M3 Device Peripheral Access Layer Header File. This file contains all the peripheral reg...
void WWDG_Enable(uint8_t Counter)
Enables WWDG and load the counter value.


rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Wed Jul 3 2019 19:59:25