MINI58_BSP V3.01.005
The Board Support Package for Mini58 Series MCU
wwdt.c
Go to the documentation of this file.
1/**************************************************************************/
12#include "Mini58Series.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 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. ***/
Mini58 series peripheral access layer header file. This file contains all the peripheral register's d...
#define WWDT_CTL_WWDTEN_Msk
#define WWDT_CTL_CMPDAT_Pos
#define WWDT_CTL_INTEN_Msk
#define WWDT
Pointer to WWDT register structure.
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