0% found this document useful (0 votes)
30 views2 pages

WWDG H

This document contains function prototypes and macros related to the window watchdog (WWDG) peripheral for STM8 microcontrollers. It defines constants and limits used to check register values, and declares functions for initializing, setting, and getting the WWDG counter as well as triggering a reset.

Uploaded by

Roberto Dias
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views2 pages

WWDG H

This document contains function prototypes and macros related to the window watchdog (WWDG) peripheral for STM8 microcontrollers. It defines constants and limits used to check register values, and declares functions for initializing, setting, and getting the WWDG counter as well as triggering a reset.

Uploaded by

Roberto Dias
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

1 /**

2 ********************************************************************************
3 * @file stm8s_wwdg.h
4 * @author MCD Application Team
5 * @version V2.3.0
6 * @date 16-June-2017
7 * @brief This file contains all functions prototype and macros for the WWDG
peripheral.
8 ******************************************************************************
9 * @attention
10 *
11 * <h2><center>&copy; COPYRIGHT 2014 STMicroelectronics</center></h2>
12 *
13 * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
14 * You may not use this file except in compliance with the License.
15 * You may obtain a copy of the License at:
16 *
17 * http://www.st.com/software_license_agreement_liberty_v2
18 *
19 * Unless required by applicable law or agreed to in writing, software
20 * distributed under the License is distributed on an "AS IS" BASIS,
21 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 * See the License for the specific language governing permissions and
23 * limitations under the License.
24 *
25 ******************************************************************************
26 */
27
28 /* Define to prevent recursive inclusion -------------------------------------*/
29 #ifndef __STM8S_WWDG_H
30 #define __STM8S_WWDG_H
31
32 /* Includes ------------------------------------------------------------------*/
33 #include "stm8s.h"
34
35 /** @addtogroup STM8S_StdPeriph_Driver
36 * @{
37 */
38
39 /* Private macros ------------------------------------------------------------*/
40
41 /** @addtogroup WWDG_Private_Macros
42 * @{
43 */
44
45 /**
46 * @brief Macro used by the assert function in order to check the
47 * values of the window register.
48 */
49 #define IS_WWDG_WINDOWLIMITVALUE_OK(WindowLimitValue) ((WindowLimitValue) <= 0x7F)
50
51 /**
52 * @brief Macro used by the assert function in order to check the different
53 * values of the counter register.
54 */
55 #define IS_WWDG_COUNTERVALUE_OK(CounterValue) ((CounterValue) <= 0x7F)
56
57 /**
58 * @}
59 */
60
61 /* Exported types ------------------------------------------------------------*/
62
63 /* Exported functions ------------------------------------------------------- */
64
65 /** @addtogroup WWDG_Exported_Functions
66 * @{
67 */
68
69 void WWDG_Init(uint8_t Counter, uint8_t WindowValue);
70 void WWDG_SetCounter(uint8_t Counter);
71 uint8_t WWDG_GetCounter(void);
72 void WWDG_SWReset(void);
73 void WWDG_SetWindowValue(uint8_t WindowValue);
74
75
76 /**
77 * @}
78 */
79
80 #endif /* __STM8S_WWDG_H */
81
82 /**
83 * @}
84 */
85
86
87 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
88

You might also like