Nano102_112 Series BSP  V3.03.002
The Board Support Package for Nano102_112 Series
wwdt.c
Go to the documentation of this file.
1 /**************************************************************************/
12 #include "Nano1X2Series.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 NANO1X2_WDT_EXPORTED_FUNCTIONS */
62  /* end of group NANO1X2_WDT_Driver */
64  /* end of group NANO1X2_Device_Driver */
66 
67 /*** (C) COPYRIGHT 2014 Nuvoton Technology Corp. ***/
Nano102/112 peripheral access layer header file. This file contains all the peripheral register's def...
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
#define WWDT_CR_WINCMP_Pos
#define WWDT
Pointer to WWDT register structure.
#define WWDT_CR_WWDTEN_Msk