M471M/R1/S BSP V3.01.000
The Board Support Package for M4521
wwdt.c
Go to the documentation of this file.
1/**************************************************************************/
8#include "NuMicro.h"
9
10
51void WWDT_Open(uint32_t u32PreScale,
52 uint32_t u32CmpValue,
53 uint32_t u32EnableInt)
54{
55 WWDT->CTL = u32PreScale |
56 (u32CmpValue << WWDT_CTL_CMPDAT_Pos) |
57 ((u32EnableInt == TRUE) ? WWDT_CTL_INTEN_Msk : 0) |
59 return;
60}
61 /* end of group WWDT_EXPORTED_FUNCTIONS */
63 /* end of group WWDT_Driver */
65 /* end of group Standard_Driver */
67
#define WWDT_CTL_WWDTEN_Msk
Definition: M471M_R1_S.h:13719
#define WWDT_CTL_CMPDAT_Pos
Definition: M471M_R1_S.h:13727
#define WWDT_CTL_INTEN_Msk
Definition: M471M_R1_S.h:13722
NuMicro peripheral access layer header file.
#define WWDT
Definition: M471M_R1_S.h:13833
#define TRUE
Definition: M471M_R1_S.h:13901
void WWDT_Open(uint32_t u32PreScale, uint32_t u32CmpValue, uint32_t u32EnableInt)
Open WWDT and start counting.
Definition: wwdt.c:51