
#include "r_device.h"
#include "interrupts.h"
#include "Sys_Tick.h"
#include "Sys_Tick.h"
#include "RSCAN.h"
#include "FreIn.h"
#include "dr7f701684.dvf.h"
#include "../UART/UART.h"

#if INTOSTM0_ENABLE
#pragma ghs interrupt
void INTOSTM0(void)
{
    Sys_Tick_Timer_ISR();
}
#endif

#if INTRCAN0TRX_ENABLE
#pragma ghs interrupt
void INTRCAN0TRX(void)
{
    RSCAN0_CH0_TX_ISR();
}
#endif
#if INTRCAN1TRX_ENABLE
#pragma ghs interrupt
void INTRCAN1TRX(void)
{
   RSCAN0_CH1_TX_ISR();
}
#endif
#if INTRCAN2TRX_ENABLE
#pragma ghs interrupt
void INTRCAN2TRX(void)
{
    RSCAN0_CH2_TX_ISR();
}
#endif
#if INTRCAN3TRX_ENABLE
#pragma ghs interrupt
void INTRCAN3TRX(void)
{
    RSCAN0_CH3_TX_ISR();
}
#endif
#if INTRCAN4TRX_ENABLE
#pragma ghs interrupt
void INTRCAN4TRX(void)
{
    RSCAN0_CH4_TX_ISR();
}
#endif
#if INTRCAN5TRX_ENABLE
#pragma ghs interrupt
void INTRCAN5TRX(void)
{
    RSCAN0_CH5_TX_ISR();
}
#endif

#if INTRCAN0REC_ENABLE
#pragma ghs interrupt
void INTRCAN0REC(void)
{
    RSCAN0_CH0_RX_ISR();
}
#endif
#if INTRCAN1REC_ENABLE
#pragma ghs interrupt
void INTRCAN1REC(void)
{
    RSCAN0_CH1_RX_ISR();
}
#endif
#if INTRCAN2REC_ENABLE
#pragma ghs interrupt
void INTRCAN2REC(void)
{
    RSCAN0_CH2_RX_ISR();
}
#endif
#if INTRCAN3REC_ENABLE
#pragma ghs interrupt
void INTRCAN3REC(void)
{
    RSCAN0_CH3_RX_ISR();
}
#endif
#if INTTAUB0I8_ENABLE
#pragma ghs interrupt
void INTTAUB0I8(void)
{
    Fre_In_Channel_Overflow_ISR( FRE_VEHICLE);
}
#endif
#if INTTAUB0I9_ENABLE
#pragma ghs interrupt
void INTTAUB0I9(void)
{
    Fre_In_Channel_Capture_ISR_Rolling_Count( FRE_VEHICLE, TAUB0CDR9 );
}
#endif
#if INTTAUB0I10_ENABLE
#pragma ghs interrupt
void INTTAUB0I10(void)
{
    Fre_In_Channel_Overflow_ISR( FRE_ENGINE);
}
#endif
#if INTTAUB0I11_ENABLE
#pragma ghs interrupt
void INTTAUB0I11(void)
{
    Fre_In_Channel_Capture_ISR_Rolling_Count( FRE_ENGINE, TAUB0CDR11 );
}
#endif
#if INTRCAN4REC_ENABLE
#pragma ghs interrupt
void INTRCAN4REC(void)
{
    RSCAN0_CH4_RX_ISR();
}
#endif
#if INTRCAN5REC_ENABLE
#pragma ghs interrupt
void INTRCAN5REC(void)
{
    RSCAN0_CH5_RX_ISR();
}
#endif


#if INTRLIN30UR0_ENABLE
#pragma ghs interrupt
void INTRLIN30UR0(void)
{
    UART_CH0_TX_ISR();
}
#endif
#if INTRLIN30UR1_ENABLE
#pragma ghs interrupt
void INTRLIN30UR1(void)
{
    UART_CH0_RX_ISR();
}
#endif
#if INTRLIN30UR2_ENABLE
#pragma ghs interrupt
void INTRLIN30UR2(void)
{
    // UART_CH0_Err_ISR();
}
#endif

#if INTRLIN31UR0_ENABLE
#pragma ghs interrupt
void INTRLIN31UR0(void)
{
    UART_CH1_TX_ISR();
}
#endif
#if INTRLIN31UR1_ENABLE
#pragma ghs interrupt
void INTRLIN31UR1(void)
{
    UART_CH1_RX_ISR();
}
#endif
#if INTRLIN31UR2_ENABLE
#pragma ghs interrupt
void INTRLIN31UR2(void)
{
    UART_CH1_Err_ISR();
}
#endif

#if INTRLIN32UR0_ENABLE
#pragma ghs interrupt
void INTRLIN32UR0(void)
{
    UART_CH2_TX_ISR();
}
#endif
#if INTRLIN32UR1_ENABLE
#pragma ghs interrupt
void INTRLIN32UR1(void)
{
    UART_CH2_RX_ISR();
}
#endif
#if INTRLIN32UR2_ENABLE
#pragma ghs interrupt
void INTRLIN32UR2(void)
{
    UART_CH2_Err_ISR();
}
#endif

#if INTRLIN33UR0_ENABLE
#pragma ghs interrupt
void INTRLIN33UR0(void)
{
    UART_CH3_TX_ISR();
}
#endif
#if INTRLIN33UR1_ENABLE
#pragma ghs interrupt
void INTRLIN33UR1(void)
{
    UART_CH3_RX_ISR();
}
#endif
#if INTRLIN33UR2_ENABLE
#pragma ghs interrupt
void INTRLIN33UR2(void)
{
    //UART_CH3_Err_ISR();
}
#endif
