main cleanup

This commit is contained in:
NIIBE Yutaka
2012-05-22 16:38:02 +09:00
parent 244cdbff3f
commit 6c205c3111

View File

@@ -480,17 +480,12 @@ main (int argc, char *argv[])
port_disable ();
/* set vector */
SCB->VTOR = (uint32_t)&_regnual_start;
#if 0
/* SYSRESETREQ to invoke regnual */
NVIC_SystemReset ();
#else
{
/* Not yet: erase by mass erase and go to entry */
void (**func)(void) = (void (**)(void))(&_regnual_start + 4);
(**func) ();
}
#endif
return 0;
}