arm_ucos/src/cpu/start.c
/********************************************************************/
/*!
 * \brief   Kinetis Start
 * \return  None
 *
 * This function calls all of the needed starup routines and then 
 * branches to the main process.
 */
\brief   Kinetis Start
\return  None

This function calls all of the needed starup routines and then
branches to the main process.
\ brief Kinetis Start \ return None This function calls all of the needed starup routines and then branches to the main process .
void start(void)
{
	wdog_disable();
	common_startup();
	sysinit();
    printf("\n\n");
	if (MC_SRSH & MC_SRSH_SW_MASK)
		printf("Software Reset\n");
	if (MC_SRSH & MC_SRSH_LOCKUP_MASK)
		printf("Core Lockup Event Reset\n");
	if (MC_SRSH & MC_SRSH_JTAG_MASK)
		printf("JTAG Reset\n");
	if (MC_SRSL & MC_SRSL_POR_MASK)
		printf("Power-on Reset\n");
	if (MC_SRSL & MC_SRSL_PIN_MASK)
		printf("External Pin Reset\n");
	if (MC_SRSL & MC_SRSL_COP_MASK)
		printf("Watchdog(COP) Reset\n");
	if (MC_SRSL & MC_SRSL_LOC_MASK)
		printf("Loss of Clock Reset\n");
	if (MC_SRSL & MC_SRSL_LVD_MASK)
		printf("Low-voltage Detect Reset\n");
	if (MC_SRSL & MC_SRSL_WAKEUP_MASK)
		printf("LLWU Reset\n");	
	cpu_identify();
	main();
	while(1);
}
void start ( void ) { wdog_disable ( ) ; common_startup ( ) ; sysinit ( ) ; printf ( " \n \n " ) ; if ( MC_SRSH & MC_SRSH_SW_MASK ) printf ( " \n " ) ; if ( MC_SRSH & MC_SRSH_LOCKUP_MASK ) printf ( " \n " ) ; if ( MC_SRSH & MC_SRSH_JTAG_MASK ) printf ( " \n " ) ; if ( MC_SRSL & MC_SRSL_POR_MASK ) printf ( " \n " ) ; if ( MC_SRSL & MC_SRSL_PIN_MASK ) printf ( " \n " ) ; if ( MC_SRSL & MC_SRSL_COP_MASK ) printf ( " \n " ) ; if ( MC_SRSL & MC_SRSL_LOC_MASK ) printf ( " \n " ) ; if ( MC_SRSL & MC_SRSL_LVD_MASK ) printf ( " \n " ) ; if ( MC_SRSL & MC_SRSL_WAKEUP_MASK ) printf ( " \n " ) ; cpu_identify ( ) ; main ( ) ; while ( 1 ) ; }
\brief   Kinetis Start
 \return  None
\ brief Kinetis Start \ return None
/* Disable the watchdog timer */ /* Copy any vector or data sections that need to be in RAM */ /* Perform processor initialization */ /* Determine the last cause(s) of reset */ /* Determine specific Kinetis device and revision */ /* Jump to main process */ /* No actions to perform after this so wait forever */