| NUC472_NUC442_BSP V3.04.000 The Board Support Package for NUC472/NUC442

wwdt.c
Go to the documentation of this file.
1/**************************************************************************/
12#include "NUC472_442.h"
13
51 void WWDT_Open(uint32_t u32PreScale, uint32_t u32CmpValue, uint32_t u32EnableInt)
52{
53 WWDT->CTL = u32PreScale |
54 (u32CmpValue << WWDT_CTL_CMPDAT_Pos)|
55 WWDT_CTL_WWDTEN_Msk |
56 (u32EnableInt ? WWDT_CTL_INTEN_Msk : 0);
57 return;
58}
59
60
61
62 /* end of group NUC472_442_WWDT_EXPORTED_FUNCTIONS */
64 /* end of group NUC472_442_WWDT_Driver */
66 /* end of group NUC472_442_Device_Driver */
68
69/*** (C) COPYRIGHT 2013 Nuvoton Technology Corp. ***/
NUC472_442.h
NUC472/NUC442 peripheral access layer header file. This file contains all the peripheral register's d...
WWDT_CTL_WWDTEN_Msk
#define WWDT_CTL_WWDTEN_Msk
Definition: NUC472_442.h:28670
WWDT_CTL_CMPDAT_Pos
#define WWDT_CTL_CMPDAT_Pos
Definition: NUC472_442.h:28678
WWDT_CTL_INTEN_Msk
#define WWDT_CTL_INTEN_Msk
Definition: NUC472_442.h:28673
WWDT
#define WWDT
Definition: NUC472_442.h:28827
WWDT_Open
void WWDT_Open(uint32_t u32PreScale, uint32_t u32CmpValue, uint32_t u32EnableInt)
This function make WWDT module start counting with different counter period and compared window value...
Definition: wwdt.c:51