/* Enable the watch dog timer's function. This function is to Enable the watch dog timer's function such as Interrupt reset.  */
void xWDTFunctionEnable(unsigned long ulBase, unsigned long ulFunction)
/* Enable the watch dog timer's function. This function is to Enable the watch dog timer's function such as Interrupt reset.  */
void xWDTFunctionEnable(unsigned long ulBase, unsigned long ulFunction)
{
    (void) ulBase;
    if(_PreValue == 0)
    {
        while(1);
    }
    WDTCfg(ulFunction, _PreValue);
}