main cleanup
This commit is contained in:
@@ -480,17 +480,12 @@ main (int argc, char *argv[])
|
|||||||
port_disable ();
|
port_disable ();
|
||||||
/* set vector */
|
/* set vector */
|
||||||
SCB->VTOR = (uint32_t)&_regnual_start;
|
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 */
|
/* Not yet: erase by mass erase and go to entry */
|
||||||
void (**func)(void) = (void (**)(void))(&_regnual_start + 4);
|
void (**func)(void) = (void (**)(void))(&_regnual_start + 4);
|
||||||
|
|
||||||
(**func) ();
|
(**func) ();
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user