1 /***************COPYRIGHT(C)  2019 WCH. A11 rights reserved*********************
2  * File Name          : ch32f10x_wwdg.h
3  * Author             : WCH
4  * Version            : V1.0.0
5  * Date               : 2019/10/15
6  * Description        : This file contains all the functions prototypes for the WWDG
7  *                      firmware library.
8  *******************************************************************************/
9 #ifndef __CH32F10x_WWDG_H
10 #define __CH32F10x_WWDG_H
11 
12 #ifdef __cplusplus
13  extern "C" {
14 #endif
15 
16 #include "ch32f10x.h"
17 
18 
19 /* WWDG_Prescaler */
20 #define WWDG_Prescaler_1    ((uint32_t)0x00000000)
21 #define WWDG_Prescaler_2    ((uint32_t)0x00000080)
22 #define WWDG_Prescaler_4    ((uint32_t)0x00000100)
23 #define WWDG_Prescaler_8    ((uint32_t)0x00000180)
24 
25 
26 void WWDG_DeInit(void);
27 void WWDG_SetPrescaler(uint32_t WWDG_Prescaler);
28 void WWDG_SetWindowValue(uint8_t WindowValue);
29 void WWDG_EnableIT(void);
30 void WWDG_SetCounter(uint8_t Counter);
31 void WWDG_Enable(uint8_t Counter);
32 FlagStatus WWDG_GetFlagStatus(void);
33 void WWDG_ClearFlag(void);
34 
35 #ifdef __cplusplus
36 }
37 #endif
38 
39 #endif /* __CH32F10x_WWDG_H */
40 
41