/***********************************************************************/
/*                                                                     */
/*  FILE        :LedFlash.c                                            */
/*  DATE        :Wed, May 07, 2003                                     */
/*  DESCRIPTION :Main Program                                          */
/*  CPU TYPE    :SH7055F                                               */
/*                                                                     */
/*  This file is generated by Hitachi Project Generator (Ver.1.2).     */
/*                                                                     */
/***********************************************************************/
                  


#ifdef __cplusplus
//#include <ios>					// Remove the comment when you use ios                  
//int ios_base::Init::init_cnt;		// Remove the comment when you use ios
#endif
#ifdef __cplusplus
extern "C" {
#endif
void abort(void);
#ifdef __cplusplus
}
#endif

#include "led.h"


void main(void)
{
	unsigned long ul;
	
	InitUserLed1();
	InitUserLed2();
	
	// flash the two user LEDs on the EDK3069F
	// see 'led.c' & 'led.h'	
	while( 1 )
	{
		ToggledUserLed1();
		ToggledUserLed2();
		
		for( ul=0; ul<600000; ul++ );
		
		ToggledUserLed1();
		
		for( ul=0; ul<150000; ul++ );
		
		ToggledUserLed1();
		ToggledUserLed2();
		
		for( ul=0; ul<600000; ul++ );
		
		ToggledUserLed1();
		
		for( ul=0; ul<300000; ul++ );
		
		ToggledUserLed1();
		
		for( ul=0; ul<750000; ul++ );
		
		ToggledUserLed1();
		ToggledUserLed2();
		
		for( ul=0; ul<1000000; ul++ );
		
		ToggledUserLed1();
	}
}

void abort(void)
{
	
}