stm32f10x_wwdg.h

Go to the documentation of this file.
00001 /**
00002   ******************************************************************************
00003   * @file    stm32f10x_wwdg.h
00004   * @author  MCD Application Team
00005   * @version V3.4.0
00006   * @date    10/15/2010
00007   * @brief   This file contains all the functions prototypes for the WWDG firmware
00008   *          library.
00009   ******************************************************************************
00010   * @copy
00011   *
00012   * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
00013   * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
00014   * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
00015   * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
00016   * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
00017   * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
00018   *
00019   * <h2><center>&copy; COPYRIGHT 2010 STMicroelectronics</center></h2>
00020   */ 
00021 
00022 /* Define to prevent recursive inclusion -------------------------------------*/
00023 #ifndef __STM32F10x_WWDG_H
00024 #define __STM32F10x_WWDG_H
00025 
00026 #ifdef __cplusplus
00027  extern "C" {
00028 #endif
00029 
00030 /* Includes ------------------------------------------------------------------*/
00031 #include "stm32f10x.h"
00032 
00033 /** @addtogroup STM32F10x_StdPeriph_Driver
00034   * @{
00035   */
00036 
00037 /** @addtogroup WWDG
00038   * @{
00039   */ 
00040 
00041 /** @defgroup WWDG_Exported_Types
00042   * @{
00043   */ 
00044   
00045 /**
00046   * @}
00047   */ 
00048 
00049 /** @defgroup WWDG_Exported_Constants
00050   * @{
00051   */ 
00052   
00053 /** @defgroup WWDG_Prescaler 
00054   * @{
00055   */ 
00056   
00057 #define WWDG_Prescaler_1    ((uint32_t)0x00000000)
00058 #define WWDG_Prescaler_2    ((uint32_t)0x00000080)
00059 #define WWDG_Prescaler_4    ((uint32_t)0x00000100)
00060 #define WWDG_Prescaler_8    ((uint32_t)0x00000180)
00061 #define IS_WWDG_PRESCALER(PRESCALER) (((PRESCALER) == WWDG_Prescaler_1) || \
00062                                       ((PRESCALER) == WWDG_Prescaler_2) || \
00063                                       ((PRESCALER) == WWDG_Prescaler_4) || \
00064                                       ((PRESCALER) == WWDG_Prescaler_8))
00065 #define IS_WWDG_WINDOW_VALUE(VALUE) ((VALUE) <= 0x7F)
00066 #define IS_WWDG_COUNTER(COUNTER) (((COUNTER) >= 0x40) && ((COUNTER) <= 0x7F))
00067 
00068 /**
00069   * @}
00070   */ 
00071 
00072 /**
00073   * @}
00074   */ 
00075 
00076 /** @defgroup WWDG_Exported_Macros
00077   * @{
00078   */ 
00079 /**
00080   * @}
00081   */ 
00082 
00083 /** @defgroup WWDG_Exported_Functions
00084   * @{
00085   */ 
00086   
00087 void WWDG_DeInit(void);
00088 void WWDG_SetPrescaler(uint32_t WWDG_Prescaler);
00089 void WWDG_SetWindowValue(uint8_t WindowValue);
00090 void WWDG_EnableIT(void);
00091 void WWDG_SetCounter(uint8_t Counter);
00092 void WWDG_Enable(uint8_t Counter);
00093 FlagStatus WWDG_GetFlagStatus(void);
00094 void WWDG_ClearFlag(void);
00095 
00096 #ifdef __cplusplus
00097 }
00098 #endif
00099 
00100 #endif /* __STM32F10x_WWDG_H */
00101 
00102 /**
00103   * @}
00104   */ 
00105 
00106 /**
00107   * @}
00108   */ 
00109 
00110 /**
00111   * @}
00112   */ 
00113 
00114 /******************* (C) COPYRIGHT 2010 STMicroelectronics *****END OF FILE****/
STM32F10x Standard Peripherals Library: Footer

 

 

 

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