M471M/R1/S BSP
V3.01.000
The Board Support Package for M4521
StdDriver
src
wwdt.c
Go to the documentation of this file.
1
/**************************************************************************/
8
#include "
NuMicro.h
"
9
10
51
void
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) |
58
WWDT_CTL_WWDTEN_Msk
;
59
return
;
60
}
61
/* end of group WWDT_EXPORTED_FUNCTIONS */
63
/* end of group WWDT_Driver */
65
/* end of group Standard_Driver */
67
WWDT_CTL_WWDTEN_Msk
#define WWDT_CTL_WWDTEN_Msk
Definition:
M471M_R1_S.h:13719
WWDT_CTL_CMPDAT_Pos
#define WWDT_CTL_CMPDAT_Pos
Definition:
M471M_R1_S.h:13727
WWDT_CTL_INTEN_Msk
#define WWDT_CTL_INTEN_Msk
Definition:
M471M_R1_S.h:13722
NuMicro.h
NuMicro peripheral access layer header file.
WWDT
#define WWDT
Definition:
M471M_R1_S.h:13833
TRUE
#define TRUE
Definition:
M471M_R1_S.h:13901
WWDT_Open
void WWDT_Open(uint32_t u32PreScale, uint32_t u32CmpValue, uint32_t u32EnableInt)
Open WWDT and start counting.
Definition:
wwdt.c:51
Generated on Wed Feb 15 2023 14:24:15 for M471M/R1/S BSP by
1.9.3