M4521_BSP V3.02.000
The Board Support Package for M4521
wwdt.c
Go to the documentation of this file.
1/**************************************************************************/
12#include "M4521.h"
13
14
55void 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) |
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. ***/
#define WWDT_CTL_WWDTEN_Msk
Definition: M4521.h:13723
#define WWDT_CTL_CMPDAT_Pos
Definition: M4521.h:13731
#define WWDT_CTL_INTEN_Msk
Definition: M4521.h:13726
#define WWDT
Definition: M4521.h:13837
#define TRUE
Definition: M4521.h:13905
void WWDT_Open(uint32_t u32PreScale, uint32_t u32CmpValue, uint32_t u32EnableInt)
Open WWDT and start counting.
Definition: wwdt.c:55