M4521_BSP
V3.02.000
The Board Support Package for M4521
StdDriver
src
wwdt.c
Go to the documentation of this file.
1
/**************************************************************************/
12
#include "
M4521.h
"
13
14
55
void
WWDT_Open
(uint32_t u32PreScale,
56
uint32_t u32CmpValue,
57
uint32_t u32EnableInt)
58
{
59
WWDT
->CTL = u32PreScale |
60
(u32CmpValue <<
WWDT_CTL_CMPDAT_Pos
) |
61
((u32EnableInt ==
TRUE
) ?
WWDT_CTL_INTEN_Msk
: 0) |
62
WWDT_CTL_WWDTEN_Msk
;
63
return
;
64
}
65
/* end of group WWDT_EXPORTED_FUNCTIONS */
67
/* end of group WWDT_Driver */
69
/* end of group Standard_Driver */
71
72
/*** (C) COPYRIGHT 2022 Nuvoton Technology Corp. ***/
M4521.h
WWDT_CTL_WWDTEN_Msk
#define WWDT_CTL_WWDTEN_Msk
Definition:
M4521.h:13723
WWDT_CTL_CMPDAT_Pos
#define WWDT_CTL_CMPDAT_Pos
Definition:
M4521.h:13731
WWDT_CTL_INTEN_Msk
#define WWDT_CTL_INTEN_Msk
Definition:
M4521.h:13726
WWDT
#define WWDT
Definition:
M4521.h:13837
TRUE
#define TRUE
Definition:
M4521.h:13905
WWDT_Open
void WWDT_Open(uint32_t u32PreScale, uint32_t u32CmpValue, uint32_t u32EnableInt)
Open WWDT and start counting.
Definition:
wwdt.c:55
Generated on Thu Oct 17 2024 09:13:38 for M4521_BSP by
1.9.3