STM8S/A Standard Peripherals Drivers: stm8s_wwdg.h Source File

STM8S/A

stm8s_wwdg.h
Go to the documentation of this file.
00001 /**
00002   ********************************************************************************
00003   * @file    stm8s_wwdg.h
00004   * @author  MCD Application Team
00005   * @version V2.3.0
00006   * @date    16-June-2017
00007   * @brief   This file contains all functions prototype and macros for the WWDG peripheral.
00008    ******************************************************************************
00009   * @attention
00010   *
00011   * <h2><center>&copy; COPYRIGHT 2014 STMicroelectronics</center></h2>
00012   *
00013   * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
00014   * You may not use this file except in compliance with the License.
00015   * You may obtain a copy of the License at:
00016   *
00017   *        http://www.st.com/software_license_agreement_liberty_v2
00018   *
00019   * Unless required by applicable law or agreed to in writing, software 
00020   * distributed under the License is distributed on an "AS IS" BASIS, 
00021   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00022   * See the License for the specific language governing permissions and
00023   * limitations under the License.
00024   *
00025   ******************************************************************************
00026   */
00027 
00028 /* Define to prevent recursive inclusion -------------------------------------*/
00029 #ifndef __STM8S_WWDG_H
00030 #define __STM8S_WWDG_H
00031 
00032 /* Includes ------------------------------------------------------------------*/
00033 #include "stm8s.h"
00034 
00035 /** @addtogroup STM8S_StdPeriph_Driver
00036   * @{
00037   */
00038 
00039 /* Private macros ------------------------------------------------------------*/
00040 
00041 /** @addtogroup WWDG_Private_Macros
00042   * @{
00043   */
00044 
00045 /**
00046   * @brief  Macro used by the assert function in order to check the
00047   * values of the window register.
00048   */
00049 #define IS_WWDG_WINDOWLIMITVALUE_OK(WindowLimitValue) ((WindowLimitValue) <= 0x7F)
00050 
00051 /**
00052   * @brief  Macro used by the assert function in order to check the different
00053   * values of the counter register.
00054   */
00055 #define IS_WWDG_COUNTERVALUE_OK(CounterValue) ((CounterValue) <= 0x7F)
00056 
00057 /**
00058   * @}
00059   */
00060 
00061 /* Exported types ------------------------------------------------------------*/
00062 
00063 /* Exported functions ------------------------------------------------------- */
00064 
00065 /** @addtogroup WWDG_Exported_Functions
00066   * @{
00067   */
00068 
00069 void WWDG_Init(uint8_t Counter, uint8_t WindowValue);
00070 void WWDG_SetCounter(uint8_t Counter);
00071 uint8_t WWDG_GetCounter(void);
00072 void WWDG_SWReset(void);
00073 void WWDG_SetWindowValue(uint8_t WindowValue);
00074 
00075 
00076 /**
00077   * @}
00078   */
00079 
00080 #endif /* __STM8S_WWDG_H */
00081 
00082 /**
00083   * @}
00084   */
00085 
00086 
00087 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
STM8 Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM8 8-bit Microcontrollers platform visit www.st.com