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


#ifdef __cplusplus
extern "C" {
#endif
void abort(void);
#ifdef __cplusplus
}
#endif

#include "led.h"

const char cc[] = "Remove C section linker warning";

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<200000; ul++ );
		
		ToggledUserLed1();
		
		for( ul=0; ul<50000; ul++ );
		
		ToggledUserLed1();
		ToggledUserLed2();
		
		for( ul=0; ul<200000; ul++ );
		
		ToggledUserLed1();
		
		for( ul=0; ul<100000; ul++ );
		
		ToggledUserLed1();
		
		for( ul=0; ul<250000; ul++ );
		
		ToggledUserLed1();
		ToggledUserLed2();
		
		for( ul=0; ul<350000; ul++ );
		
		ToggledUserLed1();
	}
}

void abort(void)
{
	
}
