NUC472_NUC442_BSP V3.03.005
The Board Support Package for NUC472/NUC442
wwdt.c
Go to the documentation of this file.
1/**************************************************************************/
12#include "NUC472_442.h"
13
51void WWDT_Open(uint32_t u32PreScale, uint32_t u32CmpValue, uint32_t u32EnableInt)
52{
53 WWDT->CTL = u32PreScale |
54 (u32CmpValue << WWDT_CTL_CMPDAT_Pos)|
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/NUC442 peripheral access layer header file. This file contains all the peripheral register's d...
#define WWDT_CTL_WWDTEN_Msk
Definition: NUC472_442.h:28670
#define WWDT_CTL_CMPDAT_Pos
Definition: NUC472_442.h:28678
#define WWDT_CTL_INTEN_Msk
Definition: NUC472_442.h:28673
#define WWDT
Definition: NUC472_442.h:28827
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