/* Disable the watchdog timer but enable update */
WDOG_DisableWDOGEnableUpdate();
#ifndef __GNUC__
#ifndef KEIL
/* Copy any vector or data sections that need to be in RAM */
common_startup();
#endif
#endif
/* Jump to main process */
main();
/* No actions to perform after this so wait forever */
while(1);
}
void SystemInit( void )
{
#if !defined(ENABLE_WDOG)
/* Disable the watchdog timer */
WDOG_Disable();
#else
/* Disable the watchdog timer but enable update */
WDOG_DisableWDOGEnableUpdate();
#endif
/* First unlock the watchdog so that we can write to registers */
WDOG_Unlock();
WDOG->CS2 |= 0x01;
WDOG->TOVAL = 1000;
WDOG_Feed();
#ifndef __GNUC__
#ifndef KEIL
/* Copy any vector or data sections that need to be in RAM */
common_startup();
#endif
#endif
/* Jump to main process */
main();
/* No actions to perform after this so wait forever */
while(1);