/* This is the code that gets called on processor reset. To initialize the device, and call the main() routine.  */
void Reset_Handler(void)
/* This is the code that gets called on processor reset. To initialize the device, and call the main() routine.  */
void Reset_Handler(void)
{
	uint32_t *pSrc, *pDest;
	pSrc  = &_etext;
	pDest = &_srelocate;
	if (pSrc != pDest) {
		for (; pDest < &_erelocate;) {
			*pDest++ = *pSrc++;
		}
	}
	for (pDest = &_szero; pDest < &_ezero;) {
		*pDest++ = 0;
	}
	pSrc      = (uint32_t *)&_sfixed;
	SCB->VTOR = ((uint32_t)pSrc & SCB_VTOR_TBLOFF_Msk);
	__libc_init_array();
	rtthread_startup();
	while (1)
		;
}