| Nano100BN Series BSP V3.03.002 The Board Support Package for Nano100BN Series

wwdt.c
Go to the documentation of this file.
1 /**************************************************************************/
12 #include "Nano100Series.h"
13
51 void WWDT_Open(uint32_t u32PreScale, uint32_t u32CmpValue, uint32_t u32EnableInt)
52 {
53 WWDT->IER = u32EnableInt;
54 WWDT->CR = u32PreScale | (u32CmpValue << WWDT_CR_WINCMP_Pos) | WWDT_CR_WWDTEN_Msk;
55 return;
56 }
57
58
59
60 /* end of group NANO100_WDT_EXPORTED_FUNCTIONS */
62 /* end of group NANO100_WDT_Driver */
64 /* end of group NANO100_Device_Driver */
66
67 /*** (C) COPYRIGHT 2013 Nuvoton Technology Corp. ***/
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
Nano100Series.h
Nano100 series peripheral access layer header file. This file contains all the peripheral register's ...
WWDT_CR_WWDTEN_Msk
#define WWDT_CR_WWDTEN_Msk
Definition: Nano100Series.h:11563
WWDT
#define WWDT
Pointer to WWDT register structure.
Definition: Nano100Series.h:11667
WWDT_CR_WINCMP_Pos
#define WWDT_CR_WINCMP_Pos
Definition: Nano100Series.h:11568