Esempio n. 1
0
void WDOG_Deinit(WDOG_Type *base)
{
    if (base->WCR & WDOG_WCR_WDBG_MASK)
    {
        WDOG_Disable(base);
    }
}
Esempio n. 2
0
/*!
 * \brief   flash SystemInit
 * \return  None
 *
 * this is a system initialization function which dediu16Cated in Keil 
 * others complier don't use it.
 * it is similar to start function
 */
void SystemInit( void )
{
#if !defined(ENABLE_WDOG)   
	/* Disable the watchdog timer */
    WDOG_Disable();
#else
	/* Disable the watchdog timer but enable update */
    WDOG_DisableWDOGEnableUpdate();    
#endif
	
}
Esempio n. 3
0
void WDOG_Deinit(WDOG_Type *base)
{
    uint32_t primaskValue = 0U;

    /* Disable the global interrupts */
    primaskValue = DisableGlobalIRQ();
    WDOG_Unlock(base);
    /* Wait one bus clock cycle */
    base->RSTCNT = 0U;
    WDOG_Disable(base);
    EnableGlobalIRQ(primaskValue);
    WDOG_ClearResetCount(base);
}