/* This function make WWDT module start counting with different counter period and compared window value.  */
void WWDT_Open(UINT u32PreScale, UINT u32CmpValue, UINT u32EnableInt)
/* This function make WWDT module start counting with different counter period and compared window value.  */
void WWDT_Open(UINT u32PreScale, UINT u32CmpValue, UINT u32EnableInt)
{
    UINT reg;
    reg = u32PreScale |
          (u32CmpValue << 16) |
          0x1 |
          (u32EnableInt ? 0x2 : 0);
    outpw(REG_WWDT_CTL, reg);
    return;
}