STM8L15x Standard Peripherals Drivers
|
stm8l15x_wwdg.h
Go to the documentation of this file.
00001 /** 00002 ****************************************************************************** 00003 * @file stm8l15x_wwdg.h 00004 * @author MCD Application Team 00005 * @version V1.5.0 00006 * @date 13-May-2011 00007 * @brief This file contains all the functions prototypes for the WWDG firmware 00008 * library. 00009 ****************************************************************************** 00010 * @attention 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>© COPYRIGHT 2011 STMicroelectronics</center></h2> 00020 ****************************************************************************** 00021 */ 00022 00023 /* Define to prevent recursive inclusion -------------------------------------*/ 00024 #ifndef __STM8L15x_WWDG_H 00025 #define __STM8L15x_WWDG_H 00026 00027 /* Includes ------------------------------------------------------------------*/ 00028 #include "stm8l15x.h" 00029 00030 /** @addtogroup STM8L15x_StdPeriph_Driver 00031 * @{ 00032 */ 00033 00034 /** @addtogroup WWDG 00035 * @{ 00036 */ 00037 00038 /* Exported types ------------------------------------------------------------*/ 00039 /* Exported constants --------------------------------------------------------*/ 00040 /* Exported macro ------------------------------------------------------------*/ 00041 00042 /** @defgroup WWDG_Exported_Macros 00043 * @{ 00044 */ 00045 00046 /** @defgroup WWDG_WindowLimitValue 00047 * @{ 00048 */ 00049 #define IS_WWDG_WINDOW_LIMIT_VALUE(WindowLimitValue) ((WindowLimitValue) <= 0x7F) 00050 00051 /** 00052 * @} 00053 */ 00054 00055 /** @defgroup WWDG_CounterValue 00056 * @{ 00057 */ 00058 #define IS_WWDG_COUNTER_VALUE(CounterValue) ((CounterValue) <= 0x7F) 00059 /** 00060 * @} 00061 */ 00062 00063 /** 00064 * @} 00065 */ 00066 00067 /* Exported functions ------------------------------------------------------- */ 00068 /* Refresh window and Counter configuration functions *************************/ 00069 void WWDG_Init(uint8_t Counter, uint8_t WindowValue); 00070 void WWDG_SetWindowValue(uint8_t WindowValue); 00071 void WWDG_SetCounter(uint8_t Counter); 00072 00073 /* WWDG activation function ***************************************************/ 00074 void WWDG_Enable(uint8_t Counter); 00075 00076 /* WWDG counter and software reset management **********************************/ 00077 uint8_t WWDG_GetCounter(void); 00078 void WWDG_SWReset(void); 00079 00080 00081 #endif /* __STM8L15x_WWDG_H */ 00082 /** 00083 * @} 00084 */ 00085 00086 /** 00087 * @} 00088 */ 00089 00090 /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/