/***********************************************************************/
/*                                                                     */
/*  FILE        :UserBootModeXmodem.c                                  */
/*  DATE        :Wed, Apr 30, 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 <string.h>
#include "flash.h"
#include "led.h"

#pragma section PROGERASE
unsigned char ProgEraseArray[ 512 ];
#pragma section

extern struct rom_data {
	unsigned long start_address;
	unsigned long data_length;
	unsigned char data[1];
};

extern const struct rom_data erase;
extern const struct rom_data program;
extern const struct rom_data ledflash;

void main(void)
{
	InitUserLed1();
	InitUserLed2();
	
	InitCommandHandler();
	RunCommandHandler();

    while(1);
}

void abort(void)
{
	
}