/* init WDG as interrupt mode (close reset mode).  */
void WDG_IrqInit(void *handler, u32 Id)
/* init WDG as interrupt mode (close reset mode).  */
void WDG_IrqInit(void *handler, u32 Id)
{
	WDG_TypeDef* WDG = ((WDG_TypeDef *) WDG_REG_BASE);
	u32 temp = WDG->VENDOR;
	InterruptRegister((IRQ_FUN)handler, WDG_IRQ, Id, 0);
	InterruptEn(WDG_IRQ, 0);
	temp |= WDG_BIT_ISR_CLEAR;
	temp &= ~WDG_BIT_RST_MODE;
	WDG->VENDOR = temp;
}