| MINI58_BSP V3.01.003 The Board Support Package for Mini58 Series MCU

wwdt.c
Go to the documentation of this file.
1/**************************************************************************/
12#include "Mini58Series.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 Mini58_WWDT_EXPORTED_FUNCTIONS */
64 /* end of group Mini58_WWDT_Driver */
66 /* end of group Mini58_Device_Driver */
68
69/*** (C) COPYRIGHT 2015 Nuvoton Technology Corp. ***/
Mini58Series.h
Mini58 series peripheral access layer header file. This file contains all the peripheral register's d...
WWDT_CTL_WWDTEN_Msk
#define WWDT_CTL_WWDTEN_Msk
Definition: Mini58Series.h:11630
WWDT_CTL_CMPDAT_Pos
#define WWDT_CTL_CMPDAT_Pos
Definition: Mini58Series.h:11638
WWDT_CTL_INTEN_Msk
#define WWDT_CTL_INTEN_Msk
Definition: Mini58Series.h:11633
WWDT
#define WWDT
Pointer to WWDT register structure.
Definition: Mini58Series.h:11714
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