/* Watchdog ETMer disable routine with update enabled. 
Disable watchdog but the watchdog can be enabled and updated later. */
void WDOG_DisableWDOGEnableUpdate(void)
/* Watchdog ETMer disable routine with update enabled. 
Disable watchdog but the watchdog can be enabled and updated later. */
void WDOG_DisableWDOGEnableUpdate(void)
{
    uint8_t u8Cs1 =  WDOG->CS1;  
    uint8_t u8Cs2 =  WDOG->CS2;  
    uint16_t u16TOVAL =  WDOG->TOVAL;  
    uint16_t u16WIN =  WDOG->WIN;  
    u8Cs1       &= ~WDOG_CS1_EN_MASK;
    u8Cs1       |= WDOG_CS1_UPDATE_MASK;
    WDOG->CS2    =  u8Cs2;
    WDOG->TOVAL  =  u16TOVAL;
    WDOG->WIN    =  u16WIN;
    WDOG->CS1    =  u8Cs1;
}