/***********************************************************************/
/*                                                                     */
/*  FILE        :fix_inthandler.c                                      */
/*  DATE        :Thu, May 19, 2011                                     */
/*  DESCRIPTION :fixed vector table definitions.                       */
/*  CPU GROUP   :33A(ROM32K)                                           */
/*                                                                     */
/*  This file is generated by KPIT GNU Project Generator.              */
/*                                                                     */
/***********************************************************************/


/***************************************************************************
 *  Fixed Vector for R8C Tiny
 *
 *  Function:define fixed vector
 *
 **************************************************************************/

#include "includes.h"

void UndefinedInstruction_ISR(void) __attribute__ ((interrupt));
void Overflow_ISR(void) __attribute__ ((interrupt));
void BRK_Instruction_ISR(void) __attribute__ ((interrupt));
void AddressMatch_ISR(void) __attribute__ ((interrupt));
void SingleStep_ISR(void) __attribute__ ((interrupt));
void WatchdogTimer_ISR(void) __attribute__ ((interrupt));


void UndefinedInstruction_ISR(void)
{
	SwReset();
}

void Overflow_ISR(void)
{
	SwReset();
}


void BRK_Instruction_ISR(void)
{
}


void AddressMatch_ISR(void)
{
}


void SingleStep_ISR(void)
{
}


/************************************************************************************/
// WatchdogTimer_ISR
// perioda preteceni WDT je 114ms 
// WDT se ovlada zmenou bitu pm12
// WDT pak generuje reset primo, nebo skoci to tohoto interruptu
// zdroj ktery vyvolal RESET je pak po restartu procesoru v registru RSTFR
/************************************************************************************/
void WatchdogTimer_ISR(void)
{    
	SwReset();
}


