Commit 5743492a authored by hu's avatar hu

debug

parent 11b7de1e
...@@ -108,6 +108,7 @@ static const r_dev_ClkSelConfig_t g_stClkSelectionCfg[] = ...@@ -108,6 +108,7 @@ static const r_dev_ClkSelConfig_t g_stClkSelectionCfg[] =
{R_DEV_CKS_CPU, R_DEV_CKS_SRC_PLL0, 2, 0u}, {R_DEV_CKS_CPU, R_DEV_CKS_SRC_PLL0, 2, 0u},
{R_DEV_CKS_SFMA, R_DEV_CKS_SRC_PLL0, 3, 0u}, {R_DEV_CKS_SFMA, R_DEV_CKS_SRC_PLL0, 3, 0u},
{R_DEV_CKS_SSIF, R_DEV_CKS_SRC_PLLFIX, 156, 0u}, {R_DEV_CKS_SSIF, R_DEV_CKS_SRC_PLLFIX, 156, 0u},
{R_DEV_CKS_RLIN, R_DEV_CKS_SRC_PLLFIX_10, 0, 0u},
/* delimiter - do not remove */ /* delimiter - do not remove */
{R_DEV_CKS_LAST, R_DEV_CKS_SRC_MOSC, 2, 0u}, {R_DEV_CKS_LAST, R_DEV_CKS_SRC_MOSC, 2, 0u},
......
...@@ -18,8 +18,8 @@ const uint32_t g_u32GPIOConfigArray[][2U] = ...@@ -18,8 +18,8 @@ const uint32_t g_u32GPIOConfigArray[][2U] =
0x00010010ul, /*Pin_P0_1 GPIO_IN SCHMITT1PDSC:L PU/PD:NULL P:L */ 0x00010010ul, /*Pin_P0_1 GPIO_IN SCHMITT1PDSC:L PU/PD:NULL P:L */
0x00010010ul, /*Pin_P0_1 GPIO_IN SCHMITT1PDSC:L PU/PD:NULL P:L */ 0x00010010ul, /*Pin_P0_1 GPIO_IN SCHMITT1PDSC:L PU/PD:NULL P:L */
0x00400050ul, /*Pin_P0_2 INTP1 TTLPDSC:L PU/PD:NULL P:L */ 0x00400040ul, /*Pin_P0_2 RLIN32TX TTLPDSC:L PU/PD:NULL P:L */
0x00400050ul, /*Pin_P0_2 INTP1 TTLPDSC:L PU/PD:NULL P:L */ 0x00400040ul, /*Pin_P0_2 RLIN32TX TTLPDSC:L PU/PD:NULL P:L */
0x00400050ul, /*Pin_P0_3 RLIN32RX/INTP2 TTLPDSC:L PU/PD:NULL P:L */ 0x00400050ul, /*Pin_P0_3 RLIN32RX/INTP2 TTLPDSC:L PU/PD:NULL P:L */
0x00400050ul, /*Pin_P0_3 RLIN32RX/INTP2 TTLPDSC:L PU/PD:NULL P:L */ 0x00400050ul, /*Pin_P0_3 RLIN32RX/INTP2 TTLPDSC:L PU/PD:NULL P:L */
...@@ -150,7 +150,7 @@ const uint32_t g_u32GPIOConfigArray[][2U] = ...@@ -150,7 +150,7 @@ const uint32_t g_u32GPIOConfigArray[][2U] =
0x00010000ul, /*Pin_P16_3 GPIO_OUT SCHMITT1PDSC:L PU/PD:NULL P:L */ 0x00010000ul, /*Pin_P16_3 GPIO_OUT SCHMITT1PDSC:L PU/PD:NULL P:L */
0x00010000ul, /*Pin_P16_3 GPIO_OUT SCHMITT1PDSC:L PU/PD:NULL P:L */ 0x00010000ul, /*Pin_P16_3 GPIO_OUT SCHMITT1PDSC:L PU/PD:NULL P:L */
0x00000060ul, /*Pin_P16_4 ISM21 SCHMITT1PDSC:L PU/PD:NULL P:L */ 0x00010000ul, /*Pin_P16_4 GPIO_OUT SCHMITT1PDSC:L PU/PD:NULL P:L */
0x00010000ul, /*Pin_P16_4 GPIO_OUT SCHMITT1PDSC:L PU/PD:NULL P:L */ 0x00010000ul, /*Pin_P16_4 GPIO_OUT SCHMITT1PDSC:L PU/PD:NULL P:L */
0x00000042ul, /*Pin_P16_5 TAUB0O11 SCHMITT1PDSC:L PU/PD:NULL P:L */ 0x00000042ul, /*Pin_P16_5 TAUB0O11 SCHMITT1PDSC:L PU/PD:NULL P:L */
......
...@@ -466,6 +466,7 @@ ...@@ -466,6 +466,7 @@
#define BUZZER_MCU_OUT GPIO_OUT_PORT16_PIN01 #define BUZZER_MCU_OUT GPIO_OUT_PORT16_PIN01
#define TEMP_R_LED_OUT GPIO_OUT_PORT16_PIN02 #define TEMP_R_LED_OUT GPIO_OUT_PORT16_PIN02
#define TACHO_A39_OUT GPIO_OUT_PORT16_PIN03 #define TACHO_A39_OUT GPIO_OUT_PORT16_PIN03
#define LIN_SLP_N_MCU GPIO_OUT_PORT16_PIN04
#define WAKE_N_MCU_IN GPIO_IN_PORT16_PIN06 #define WAKE_N_MCU_IN GPIO_IN_PORT16_PIN06
#define CD4051A_A_MCU_OUT GPIO_OUT_PORT16_PIN07 #define CD4051A_A_MCU_OUT GPIO_OUT_PORT16_PIN07
#define CD4051A_B_MCU_OUT GPIO_OUT_PORT16_PIN08 #define CD4051A_B_MCU_OUT GPIO_OUT_PORT16_PIN08
......
...@@ -685,7 +685,7 @@ void TJA1021_Enable(unsigned char state) ...@@ -685,7 +685,7 @@ void TJA1021_Enable(unsigned char state)
// DDRR_DDRR3 = 1; // DDRR_DDRR3 = 1;
// PTR_PTR3 = state; // PTR_PTR3 = state;
GPIO_OUT_PORT16_PIN04 = state; LIN_SLP_N_MCU = state;
} }
/*------------------------------------------------------------------------- /*-------------------------------------------------------------------------
......
...@@ -33,7 +33,6 @@ agreement. ...@@ -33,7 +33,6 @@ agreement.
**************************************************************************** ****************************************************************************
*/ */
/******************************************************************************* /*******************************************************************************
Title: r7f701412 Interrupt Functions Title: r7f701412 Interrupt Functions
...@@ -52,19 +51,19 @@ agreement. ...@@ -52,19 +51,19 @@ agreement.
/* Include compiler specific intrinsics for synchronisation */ /* Include compiler specific intrinsics for synchronisation */
#pragma ghs startnomisra #pragma ghs startnomisra
#include "v800_ghs.h" /* __NOP(), __SYNCP(), __SYNCM() */ #include "v800_ghs.h" /* __NOP(), __SYNCP(), __SYNCM() */
#pragma ghs endnomisra #pragma ghs endnomisra
#if defined(R_DBG_PRINT_DEV_REGS) || defined(R_DBG_PRINT_MSG)
#if defined (R_DBG_PRINT_DEV_REGS) || defined (R_DBG_PRINT_MSG) #include <stdio.h>
#include <stdio.h> #include "r_dbg_api.h"
#include "r_dbg_api.h"
#else #else
#define R_DBG_PRINT(lvl, txt) #define R_DBG_PRINT(lvl, txt)
#endif #endif
#ifdef USE_RLIN3 #ifdef USE_RLIN3
#include "r_rlin3_api.h" //#include "r_rlin3_api.h"
#include "UART.h"
#endif #endif
#ifdef USE_AWOT #ifdef USE_AWOT
#include "Sys_Tick.h" #include "Sys_Tick.h"
...@@ -77,11 +76,11 @@ agreement. ...@@ -77,11 +76,11 @@ agreement.
#endif #endif
#ifdef USE_CSIG #ifdef USE_CSIG
#include "r_csig_api.h" #include "r_csig_api.h"
#endif #endif
#ifdef USE_CSIH #ifdef USE_CSIH
#include "CSIH.h" #include "CSIH.h"
#endif #endif
#ifdef USE_DMA #ifdef USE_DMA
...@@ -119,7 +118,7 @@ agreement. ...@@ -119,7 +118,7 @@ agreement.
#endif #endif
#ifdef USE_VOCA #ifdef USE_VOCA
#include "r_ddb_api.h" /* display database with display timings */ #include "r_ddb_api.h" /* display database with display timings */
#include "r_voca_api.h" #include "r_voca_api.h"
#endif #endif
...@@ -151,7 +150,7 @@ agreement. ...@@ -151,7 +150,7 @@ agreement.
#endif #endif
#ifdef USE_JCUA #ifdef USE_JCUA
#include "r_jcua_api.h" #include "r_jcua_api.h"
#endif #endif
#ifdef USE_VDCE #ifdef USE_VDCE
...@@ -196,7 +195,6 @@ agreement. ...@@ -196,7 +195,6 @@ agreement.
#include "Internal_Flash.h" #include "Internal_Flash.h"
#endif #endif
/******************************************************************************* /*******************************************************************************
Section: Synchronisation Functions Section: Synchronisation Functions
*/ */
...@@ -237,7 +235,8 @@ void R_DEV_SyncM(void) ...@@ -237,7 +235,8 @@ void R_DEV_SyncM(void)
float32_t R_DEV_SQRTF(float32_t val) float32_t R_DEV_SQRTF(float32_t val)
{ {
float32_t result; float32_t result;
asm ("sqrtf.s %0, %1" : "+r" (val),"=r" (result)); asm("sqrtf.s %0, %1"
: "+r"(val), "=r"(result));
return result; return result;
} }
...@@ -245,14 +244,13 @@ float32_t R_DEV_SQRTF(float32_t val) ...@@ -245,14 +244,13 @@ float32_t R_DEV_SQRTF(float32_t val)
Section: Interrupt Functions Section: Interrupt Functions
*/ */
#pragma ghs startnomisra #pragma ghs startnomisra
#ifdef PRIO_0_ENABLE #ifdef PRIO_0_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void EINTPRIO_0(void) void EINTPRIO_0(void)
{ {
asm("nop"); asm("nop");
} }
#endif #endif
...@@ -261,11 +259,12 @@ void EINTPRIO_0(void) ...@@ -261,11 +259,12 @@ void EINTPRIO_0(void)
/**************************************************/ /**************************************************/
#ifdef PIE_ENABLE #ifdef PIE_ENABLE
void R_PIE_Isr( void ); void R_PIE_Isr(void);
FETRAP_EXCEPTION(PIE, loc_PIE); FETRAP_EXCEPTION(PIE, loc_PIE);
void loc_PIE(void) { void loc_PIE(void)
{
R_PIE_Isr(); R_PIE_Isr();
} }
#endif #endif
...@@ -278,59 +277,64 @@ void loc_PIE(void) { ...@@ -278,59 +277,64 @@ void loc_PIE(void) {
FETRAP_EXCEPTION(FEINT, loc_FEINT); FETRAP_EXCEPTION(FEINT, loc_FEINT);
void loc_FEINT(void) { void loc_FEINT(void)
{
R_ECM_FeIntIsr(0); R_ECM_FeIntIsr(0);
} }
#endif #endif
#ifdef FENMI_ENABLE #ifdef FENMI_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void FENMI(void) { void FENMI(void)
{
R_ECM_FeNmiIsr(0); R_ECM_FeNmiIsr(0);
} }
#endif #endif
/**************************************************/ /**************************************************/
/* ADC Interrupts */ /* ADC Interrupts */
/**************************************************/ /**************************************************/
#ifdef INTADCE0TSN_ENABLE #ifdef INTADCE0TSN_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTADCE0TSN(void) { void INTADCE0TSN(void)
R_ADC_IsrTsn(0); {
R_ADC_IsrTsn(0);
} }
#endif #endif
#ifdef INTADCE0I1_ENABLE #ifdef INTADCE0I1_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTADCE0I1(void) { void INTADCE0I1(void)
{
R_ADC_Isr0(0); R_ADC_Isr0(0);
} }
#endif #endif
#ifdef INTADCE0I2_ENABLE #ifdef INTADCE0I2_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTADCE0I2(void) { void INTADCE0I2(void)
{
R_ADC_Isr1(0); R_ADC_Isr1(0);
} }
#endif #endif
#ifdef INTADCE0I3_ENABLE #ifdef INTADCE0I3_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTADCE0I3(void) { void INTADCE0I3(void)
{
R_ADC_Isr2(0); R_ADC_Isr2(0);
} }
#endif #endif
/**************************************************/ /**************************************************/
/* AWOT Interrupts */ /* AWOT Interrupts */
/**************************************************/ /**************************************************/
#ifdef INTAWOT_ENABLE #ifdef INTAWOT_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTAWOT(void) { void INTAWOT(void)
{
R_AWOT_TintIsr(0); R_AWOT_TintIsr(0);
} }
#endif #endif
...@@ -340,8 +344,8 @@ void INTAWOT(void) { ...@@ -340,8 +344,8 @@ void INTAWOT(void) {
/**************************************************/ /**************************************************/
#ifdef INTOSTM0_ENABLE #ifdef INTOSTM0_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTOSTM0(void) void INTOSTM0(void)
{ {
R_OSTM_TintIsr(0); R_OSTM_TintIsr(0);
} }
...@@ -349,7 +353,7 @@ void INTOSTM0(void) ...@@ -349,7 +353,7 @@ void INTOSTM0(void)
#ifdef INTOSTM1_ENABLE #ifdef INTOSTM1_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTOSTM1(void) void INTOSTM1(void)
{ {
R_OSTM_TintIsr(1); R_OSTM_TintIsr(1);
} }
...@@ -362,160 +366,187 @@ void INTOSTM1(void) ...@@ -362,160 +366,187 @@ void INTOSTM1(void)
/* RLIN3 unit 0 */ /* RLIN3 unit 0 */
#ifdef INTRLIN30UR0_ENABLE #ifdef INTRLIN30UR0_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTRLIN30UR0(void) { void INTRLIN30UR0(void)
R_RLIN3_IsrTx(0); {
// R_RLIN3_IsrTx(0);
UART_CH0_TX_ISR();
} }
#endif #endif
#ifdef INTRLIN30UR1_ENABLE #ifdef INTRLIN30UR1_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTRLIN30UR1(void) { void INTRLIN30UR1(void)
R_RLIN3_IsrRx(0); {
// R_RLIN3_IsrRx(0);
UART_CH0_RX_ISR();
} }
#endif #endif
#ifdef INTRLIN30UR2_ENABLE #ifdef INTRLIN30UR2_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTRLIN30UR2(void) { void INTRLIN30UR2(void)
R_RLIN3_IsrRE(0); {
// R_RLIN3_IsrRE(0);
} }
#endif #endif
/* RLIN3 unit 1 */ /* RLIN3 unit 1 */
#ifdef INTRLIN31UR0_ENABLE #ifdef INTRLIN31UR0_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTRLIN31UR0(void) { void INTRLIN31UR0(void)
R_RLIN3_IsrTx(1); {
//R_RLIN3_IsrTx(1);
UART_CH1_TX_ISR();
} }
#endif #endif
#ifdef INTRLIN31UR1_ENABLE #ifdef INTRLIN31UR1_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTRLIN31UR1(void) { void INTRLIN31UR1(void)
R_RLIN3_IsrRx(1); {
//R_RLIN3_IsrRx(1);
UART_CH1_RX_ISR();
} }
#endif #endif
#ifdef INTRLIN31UR2_ENABLE #ifdef INTRLIN31UR2_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTRLIN31UR2(void) { void INTRLIN31UR2(void)
R_RLIN3_IsrRE(1); {
//R_RLIN3_IsrRE(1);
} }
#endif #endif
/* RLIN3 unit 2 */ /* RLIN3 unit 2 */
#ifdef INTRLIN32UR0_ENABLE #ifdef INTRLIN32UR0_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTRLIN32UR0(void) { void INTRLIN32UR0(void)
R_RLIN3_IsrTx(2); {
//R_RLIN3_IsrTx(2);
UART_CH2_TX_ISR();
} }
#endif #endif
#ifdef INTRLIN32UR1_ENABLE #ifdef INTRLIN32UR1_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTRLIN32UR1(void) { void INTRLIN32UR1(void)
R_RLIN3_IsrRx(2); {
//R_RLIN3_IsrRx(2);
UART_CH2_RX_ISR();
} }
#endif #endif
#ifdef INTRLIN32UR2_ENABLE #ifdef INTRLIN32UR2_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTRLIN32UR2(void) { void INTRLIN32UR2(void)
R_RLIN3_IsrRE(2); {
//R_RLIN3_IsrRE(2);
} }
#endif #endif
/* RLIN3 unit 3 */ /* RLIN3 unit 3 */
#ifdef INTRLIN33UR0_ENABLE #ifdef INTRLIN33UR0_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTRLIN33UR0(void) { void INTRLIN33UR0(void)
R_RLIN3_IsrTx(3); {
// R_RLIN3_IsrTx(3);
UART_CH3_TX_ISR();
} }
#endif #endif
#ifdef INTRLIN33UR1_ENABLE #ifdef INTRLIN33UR1_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTRLIN33UR1(void) { void INTRLIN33UR1(void)
R_RLIN3_IsrRx(3); {
//R_RLIN3_IsrRx(3);
UART_CH3_RX_ISR();
} }
#endif #endif
#ifdef INTRLIN33UR2_ENABLE #ifdef INTRLIN33UR2_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTRLIN33UR2(void) { void INTRLIN33UR2(void)
R_RLIN3_IsrRE(3); {
//R_RLIN3_IsrRE(3);
} }
#endif #endif
/**************************************************/ /**************************************************/
/* CSIG Interrupts */ /* CSIG Interrupts */
/**************************************************/ /**************************************************/
#ifdef INTCSIG0IRE_ENABLE #ifdef INTCSIG0IRE_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTCSIG0IRE(void) { void INTCSIG0IRE(void)
{
R_CSIG_IsrTire(0); R_CSIG_IsrTire(0);
} }
#endif #endif
#ifdef INTCSIG0IR_ENABLE #ifdef INTCSIG0IR_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTCSIG0IR(void) { void INTCSIG0IR(void)
{
R_CSIG_IsrTir(0); R_CSIG_IsrTir(0);
} }
#endif #endif
#ifdef INTCSIG0IC_ENABLE #ifdef INTCSIG0IC_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTCSIG0IC(void) { void INTCSIG0IC(void)
{
R_CSIG_IsrTic(0); R_CSIG_IsrTic(0);
} }
#endif #endif
#ifdef INTCSIG1IRE_ENABLE #ifdef INTCSIG1IRE_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTCSIG1IRE(void) { void INTCSIG1IRE(void)
{
R_CSIG_IsrTire(1); R_CSIG_IsrTire(1);
} }
#endif #endif
#ifdef INTCSIG1IR_ENABLE #ifdef INTCSIG1IR_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTCSIG1IR(void) { void INTCSIG1IR(void)
{
R_CSIG_IsrTir(1); R_CSIG_IsrTir(1);
} }
#endif #endif
#ifdef INTCSIG1IC_ENABLE #ifdef INTCSIG1IC_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTCSIG1IC(void) { void INTCSIG1IC(void)
{
R_CSIG_IsrTic(1); R_CSIG_IsrTic(1);
} }
#endif #endif
#ifdef INTCSIG2IRE_ENABLE #ifdef INTCSIG2IRE_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTCSIG2IRE(void) { void INTCSIG2IRE(void)
{
R_CSIG_IsrTire(2); R_CSIG_IsrTire(2);
} }
#endif #endif
#ifdef INTCSIG2IR_ENABLE #ifdef INTCSIG2IR_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTCSIG2IR(void) { void INTCSIG2IR(void)
{
R_CSIG_IsrTir(2); R_CSIG_IsrTir(2);
} }
#endif #endif
#ifdef INTCSIG2IC_ENABLE #ifdef INTCSIG2IC_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTCSIG2IC(void) { void INTCSIG2IC(void)
{
R_CSIG_IsrTic(2); R_CSIG_IsrTic(2);
} }
#endif #endif
/**************************************************/ /**************************************************/
/* ETNB Interrupts */ /* ETNB Interrupts */
/**************************************************/ /**************************************************/
...@@ -547,62 +578,55 @@ void INTETNB0LINE3(void) ...@@ -547,62 +578,55 @@ void INTETNB0LINE3(void)
#endif #endif
/**************************************************/ /**************************************************/
/* CSIH Interrupts */ /* CSIH Interrupts */
/**************************************************/ /**************************************************/
#ifdef USE_CSIH #ifdef USE_CSIH
#pragma ghs interrupt #pragma ghs interrupt
void INTCSIH0IC (void) void INTCSIH0IC(void)
{ {
CSIH_Ch0_Tx_ISR(); CSIH_Ch0_Tx_ISR();
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTCSIH0IR (void) void INTCSIH0IR(void)
{ {
CSIH_Ch0_Rx_ISR(); CSIH_Ch0_Rx_ISR();
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTCSIH0IRE (void) void INTCSIH0IRE(void)
{ {
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTCSIH0IJC (void) void INTCSIH0IJC(void)
{ {
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTCSIH1IC (void) void INTCSIH1IC(void)
{ {
CSIH_Ch1_Tx_ISR(); CSIH_Ch1_Tx_ISR();
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTCSIH1IR (void) void INTCSIH1IR(void)
{ {
CSIH_Ch1_Rx_ISR(); CSIH_Ch1_Rx_ISR();
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTCSIH1IRE (void) void INTCSIH1IRE(void)
{ {
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTCSIH1IJC (void) void INTCSIH1IJC(void)
{ {
} }
#endif /* USE_CSIH */ #endif /* USE_CSIH */
/**************************************************/ /**************************************************/
/* DMA Interrupts */ /* DMA Interrupts */
...@@ -610,70 +634,63 @@ void INTCSIH1IJC (void) ...@@ -610,70 +634,63 @@ void INTCSIH1IJC (void)
#ifdef INTDMA0_ENABLE #ifdef INTDMA0_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTDMA0(void) void INTDMA0(void)
{ {
R_DMA_Isr(0, 0); R_DMA_Isr(0, 0);
} }
#endif #endif
#ifdef INTDMA1_ENABLE #ifdef INTDMA1_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTDMA1(void) void INTDMA1(void)
{ {
R_DMA_Isr(0, 1); R_DMA_Isr(0, 1);
} }
#endif #endif
#ifdef INTDMA2_ENABLE #ifdef INTDMA2_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTDMA2(void) void INTDMA2(void)
{ {
R_DMA_Isr(0, 2); R_DMA_Isr(0, 2);
} }
#endif #endif
#ifdef INTDMA3_ENABLE #ifdef INTDMA3_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTDMA3(void) void INTDMA3(void)
{ {
R_DMA_Isr(0, 3); R_DMA_Isr(0, 3);
} }
#endif #endif
#ifdef INTDMA4_ENABLE #ifdef INTDMA4_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTDMA4(void) void INTDMA4(void)
{ {
R_DMA_Isr(0, 4); R_DMA_Isr(0, 4);
} }
#endif #endif
#ifdef INTDMA5_ENABLE #ifdef INTDMA5_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTDMA5(void) void INTDMA5(void)
{ {
R_DMA_Isr(0, 5); R_DMA_Isr(0, 5);
} }
#endif #endif
#ifdef INTDMA6_ENABLE #ifdef INTDMA6_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTDMA6(void) void INTDMA6(void)
{ {
R_DMA_Isr(0, 6); R_DMA_Isr(0, 6);
} }
#endif #endif
#ifdef INTDMA7_ENABLE #ifdef INTDMA7_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTDMA7(void) void INTDMA7(void)
{ {
R_DMA_Isr(0, 7); R_DMA_Isr(0, 7);
} }
...@@ -681,70 +698,63 @@ void INTDMA7(void) ...@@ -681,70 +698,63 @@ void INTDMA7(void)
#ifdef INTDMA8_ENABLE #ifdef INTDMA8_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTDMA8(void) void INTDMA8(void)
{ {
R_DMA_Isr(0, 8); R_DMA_Isr(0, 8);
} }
#endif #endif
#ifdef INTDMA9_ENABLE #ifdef INTDMA9_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTDMA9(void) void INTDMA9(void)
{ {
R_DMA_Isr(0, 9); R_DMA_Isr(0, 9);
} }
#endif #endif
#ifdef INTDMA10_ENABLE #ifdef INTDMA10_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTDMA10(void) void INTDMA10(void)
{ {
R_DMA_Isr(0, 10); R_DMA_Isr(0, 10);
} }
#endif #endif
#ifdef INTDMA11_ENABLE #ifdef INTDMA11_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTDMA11(void) void INTDMA11(void)
{ {
R_DMA_Isr(0, 11); R_DMA_Isr(0, 11);
} }
#endif #endif
#ifdef INTDMA12_ENABLE #ifdef INTDMA12_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTDMA12(void) void INTDMA12(void)
{ {
R_DMA_Isr(0, 12); R_DMA_Isr(0, 12);
} }
#endif #endif
#ifdef INTDMA13_ENABLE #ifdef INTDMA13_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTDMA13(void) void INTDMA13(void)
{ {
R_DMA_Isr(0, 13); R_DMA_Isr(0, 13);
} }
#endif #endif
#ifdef INTDMA14_ENABLE #ifdef INTDMA14_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTDMA14(void) void INTDMA14(void)
{ {
R_DMA_Isr(0, 14); R_DMA_Isr(0, 14);
} }
#endif #endif
#ifdef INTDMA15_ENABLE #ifdef INTDMA15_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTDMA15(void) void INTDMA15(void)
{ {
R_DMA_Isr(0, 15); R_DMA_Isr(0, 15);
} }
...@@ -757,70 +767,70 @@ TAUJ interrupts ...@@ -757,70 +767,70 @@ TAUJ interrupts
#ifdef USE_TAUJ #ifdef USE_TAUJ
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUJ0I0(void) void INTTAUJ0I0(void)
{ {
R_TAUJ_Isr(0,(r_tauj_Interrupt_t)0); R_TAUJ_Isr(0, (r_tauj_Interrupt_t)0);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUJ0I1(void) void INTTAUJ0I1(void)
{ {
R_TAUJ_Isr(0,(r_tauj_Interrupt_t)1); R_TAUJ_Isr(0, (r_tauj_Interrupt_t)1);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUJ0I2(void) void INTTAUJ0I2(void)
{ {
R_TAUJ_Isr(0,(r_tauj_Interrupt_t)2); R_TAUJ_Isr(0, (r_tauj_Interrupt_t)2);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUJ0I3(void) void INTTAUJ0I3(void)
{ {
R_TAUJ_Isr(0,(r_tauj_Interrupt_t)3); R_TAUJ_Isr(0, (r_tauj_Interrupt_t)3);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUJ1I0(void) void INTTAUJ1I0(void)
{ {
R_TAUJ_Isr(1,(r_tauj_Interrupt_t)0); R_TAUJ_Isr(1, (r_tauj_Interrupt_t)0);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUJ1I1(void) void INTTAUJ1I1(void)
{ {
R_TAUJ_Isr(1,(r_tauj_Interrupt_t)1); R_TAUJ_Isr(1, (r_tauj_Interrupt_t)1);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUJ1I2(void) void INTTAUJ1I2(void)
{ {
R_TAUJ_Isr(1,(r_tauj_Interrupt_t)2); R_TAUJ_Isr(1, (r_tauj_Interrupt_t)2);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUJ1I3(void) void INTTAUJ1I3(void)
{ {
R_TAUJ_Isr(1,(r_tauj_Interrupt_t)3); R_TAUJ_Isr(1, (r_tauj_Interrupt_t)3);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUJ2I0(void) void INTTAUJ2I0(void)
{ {
R_TAUJ_Isr(2,(r_tauj_Interrupt_t)0); R_TAUJ_Isr(2, (r_tauj_Interrupt_t)0);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUJ2I1(void) void INTTAUJ2I1(void)
{ {
R_TAUJ_Isr(2,(r_tauj_Interrupt_t)1); R_TAUJ_Isr(2, (r_tauj_Interrupt_t)1);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUJ2I2(void) void INTTAUJ2I2(void)
{ {
R_TAUJ_Isr(2,(r_tauj_Interrupt_t)2); R_TAUJ_Isr(2, (r_tauj_Interrupt_t)2);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUJ2I3(void) void INTTAUJ2I3(void)
{ {
R_TAUJ_Isr(2,(r_tauj_Interrupt_t)3); R_TAUJ_Isr(2, (r_tauj_Interrupt_t)3);
} }
#endif #endif
...@@ -829,14 +839,14 @@ void INTTAUJ2I3(void) ...@@ -829,14 +839,14 @@ void INTTAUJ2I3(void)
/**************************************************/ /**************************************************/
#ifdef INTWDTA0_ENABLE #ifdef INTWDTA0_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTWDTA0(void) void INTWDTA0(void)
{ {
R_WDTA_Isr(0); R_WDTA_Isr(0);
} }
#endif #endif
#ifdef INTWDTA1_ENABLE #ifdef INTWDTA1_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTWDTA1(void) void INTWDTA1(void)
{ {
R_WDTA_Isr(1); R_WDTA_Isr(1);
} }
...@@ -848,7 +858,7 @@ void INTWDTA1(void) ...@@ -848,7 +858,7 @@ void INTWDTA1(void)
#ifdef USE_RTCA #ifdef USE_RTCA
#pragma ghs interrupt #pragma ghs interrupt
void INTRTCA01S(void) void INTRTCA01S(void)
{ {
R_RTCA_Isr(0, R_RTCA_INT_1S); R_RTCA_Isr(0, R_RTCA_INT_1S);
} }
...@@ -865,7 +875,7 @@ void INTRTCA0R(void) ...@@ -865,7 +875,7 @@ void INTRTCA0R(void)
R_RTCA_Isr(0, R_RTCA_INT_R); R_RTCA_Isr(0, R_RTCA_INT_R);
} }
#endif /* RTCA */ #endif /* RTCA */
/************************************************** /**************************************************
TAUB interrupts TAUB interrupts
...@@ -874,297 +884,296 @@ TAUB interrupts ...@@ -874,297 +884,296 @@ TAUB interrupts
#ifdef USE_TAUB #ifdef USE_TAUB
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUB0I0(void) void INTTAUB0I0(void)
{ {
// R_TAUB_Isr(0,(r_taub_Interrupt_t) 0); // R_TAUB_Isr(0,(r_taub_Interrupt_t) 0);
}
}
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUB0I1(void) void INTTAUB0I1(void)
{ {
// R_TAUB_Isr(0,(r_taub_Interrupt_t) 1); // R_TAUB_Isr(0,(r_taub_Interrupt_t) 1);
TimerB_Overflow_Isr(); TimerB_Overflow_Isr();
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUB0I2(void) void INTTAUB0I2(void)
{ {
// R_TAUB_Isr(0,(r_taub_Interrupt_t) 2); // R_TAUB_Isr(0,(r_taub_Interrupt_t) 2);
TimerB_Input_Isr(TIMERB_0_CH2); TimerB_Input_Isr(TIMERB_0_CH2);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUB0I3(void) void INTTAUB0I3(void)
{ {
// R_TAUB_Isr(0,(r_taub_Interrupt_t) 3); // R_TAUB_Isr(0,(r_taub_Interrupt_t) 3);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUB0I4(void) void INTTAUB0I4(void)
{ {
// R_TAUB_Isr(0,(r_taub_Interrupt_t) 4); // R_TAUB_Isr(0,(r_taub_Interrupt_t) 4);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUB0I5(void) void INTTAUB0I5(void)
{ {
// R_TAUB_Isr(0,(r_taub_Interrupt_t) 5); // R_TAUB_Isr(0,(r_taub_Interrupt_t) 5);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUB0I6(void) void INTTAUB0I6(void)
{ {
// R_TAUB_Isr(0,(r_taub_Interrupt_t) 6); // R_TAUB_Isr(0,(r_taub_Interrupt_t) 6);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUB0I7(void) void INTTAUB0I7(void)
{ {
// R_TAUB_Isr(0,(r_taub_Interrupt_t) 7); // R_TAUB_Isr(0,(r_taub_Interrupt_t) 7);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUB0I8(void) void INTTAUB0I8(void)
{ {
// R_TAUB_Isr(0,(r_taub_Interrupt_t) 8); // R_TAUB_Isr(0,(r_taub_Interrupt_t) 8);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUB0I9(void) void INTTAUB0I9(void)
{ {
//R_TAUB_Isr(0,(r_taub_Interrupt_t) 9); //R_TAUB_Isr(0,(r_taub_Interrupt_t) 9);
//TimerB_Overflow_Isr(); //TimerB_Overflow_Isr();
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUB0I10(void) void INTTAUB0I10(void)
{ {
//R_TAUB_Isr(0,(r_taub_Interrupt_t) 10); //R_TAUB_Isr(0,(r_taub_Interrupt_t) 10);
//TimerB_Input_Isr(); //TimerB_Input_Isr();
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUB0I11(void) void INTTAUB0I11(void)
{ {
//R_TAUB_Isr(0,(r_taub_Interrupt_t) 11); //R_TAUB_Isr(0,(r_taub_Interrupt_t) 11);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUB0I12(void) void INTTAUB0I12(void)
{ {
// R_TAUB_Isr(0,(r_taub_Interrupt_t) 12); // R_TAUB_Isr(0,(r_taub_Interrupt_t) 12);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUB0I13(void) void INTTAUB0I13(void)
{ {
// R_TAUB_Isr(0,(r_taub_Interrupt_t) 13); // R_TAUB_Isr(0,(r_taub_Interrupt_t) 13);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUB0I14(void) void INTTAUB0I14(void)
{ {
// R_TAUB_Isr(0,(r_taub_Interrupt_t) 14); // R_TAUB_Isr(0,(r_taub_Interrupt_t) 14);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUB0I15(void) void INTTAUB0I15(void)
{ {
// R_TAUB_Isr(0,(r_taub_Interrupt_t) 15); // R_TAUB_Isr(0,(r_taub_Interrupt_t) 15);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUB1I0(void) void INTTAUB1I0(void)
{ {
// R_TAUB_Isr(1,(r_taub_Interrupt_t) 0); // R_TAUB_Isr(1,(r_taub_Interrupt_t) 0);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUB1I1(void) void INTTAUB1I1(void)
{ {
// R_TAUB_Isr(1,(r_taub_Interrupt_t) 1); // R_TAUB_Isr(1,(r_taub_Interrupt_t) 1);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUB1I2(void) void INTTAUB1I2(void)
{ {
// R_TAUB_Isr(1,(r_taub_Interrupt_t) 2); // R_TAUB_Isr(1,(r_taub_Interrupt_t) 2);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUB1I3(void) void INTTAUB1I3(void)
{ {
// R_TAUB_Isr(1,(r_taub_Interrupt_t) 3); // R_TAUB_Isr(1,(r_taub_Interrupt_t) 3);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUB1I4(void) void INTTAUB1I4(void)
{ {
//R_TAUB_Isr(1,(r_taub_Interrupt_t) 4); //R_TAUB_Isr(1,(r_taub_Interrupt_t) 4);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUB1I5(void) void INTTAUB1I5(void)
{ {
// R_TAUB_Isr(1,(r_taub_Interrupt_t) 5); // R_TAUB_Isr(1,(r_taub_Interrupt_t) 5);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUB1I6(void) void INTTAUB1I6(void)
{ {
// R_TAUB_Isr(1,(r_taub_Interrupt_t) 6); // R_TAUB_Isr(1,(r_taub_Interrupt_t) 6);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUB1I7(void) void INTTAUB1I7(void)
{ {
// R_TAUB_Isr(1,(r_taub_Interrupt_t) 7); // R_TAUB_Isr(1,(r_taub_Interrupt_t) 7);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUB1I8(void) void INTTAUB1I8(void)
{ {
// R_TAUB_Isr(1,(r_taub_Interrupt_t) 8); // R_TAUB_Isr(1,(r_taub_Interrupt_t) 8);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUB1I9(void) void INTTAUB1I9(void)
{ {
// R_TAUB_Isr(1,(r_taub_Interrupt_t) 9); // R_TAUB_Isr(1,(r_taub_Interrupt_t) 9);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUB1I10(void) void INTTAUB1I10(void)
{ {
// R_TAUB_Isr(1,(r_taub_Interrupt_t) 10); // R_TAUB_Isr(1,(r_taub_Interrupt_t) 10);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUB1I11(void) void INTTAUB1I11(void)
{ {
//R_TAUB_Isr(1,(r_taub_Interrupt_t) 11); //R_TAUB_Isr(1,(r_taub_Interrupt_t) 11);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUB1I12(void) void INTTAUB1I12(void)
{ {
// R_TAUB_Isr(1,(r_taub_Interrupt_t) 12); // R_TAUB_Isr(1,(r_taub_Interrupt_t) 12);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUB1I13(void) void INTTAUB1I13(void)
{ {
// R_TAUB_Isr(1,(r_taub_Interrupt_t) 13); // R_TAUB_Isr(1,(r_taub_Interrupt_t) 13);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUB1I14(void) void INTTAUB1I14(void)
{ {
//R_TAUB_Isr(1,(r_taub_Interrupt_t) 14); //R_TAUB_Isr(1,(r_taub_Interrupt_t) 14);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUB1I15(void) void INTTAUB1I15(void)
{ {
// R_TAUB_Isr(1,(r_taub_Interrupt_t) 15); // R_TAUB_Isr(1,(r_taub_Interrupt_t) 15);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUB2I0(void) void INTTAUB2I0(void)
{ {
//R_TAUB_Isr(2,(r_taub_Interrupt_t) 0); //R_TAUB_Isr(2,(r_taub_Interrupt_t) 0);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUB2I1(void) void INTTAUB2I1(void)
{ {
// R_TAUB_Isr(2,(r_taub_Interrupt_t) 1); // R_TAUB_Isr(2,(r_taub_Interrupt_t) 1);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUB2I2(void) void INTTAUB2I2(void)
{ {
// R_TAUB_Isr(2,(r_taub_Interrupt_t) 2); // R_TAUB_Isr(2,(r_taub_Interrupt_t) 2);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUB2I3(void) void INTTAUB2I3(void)
{ {
//R_TAUB_Isr(2,(r_taub_Interrupt_t) 3); //R_TAUB_Isr(2,(r_taub_Interrupt_t) 3);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUB2I4(void) void INTTAUB2I4(void)
{ {
// R_TAUB_Isr(2,(r_taub_Interrupt_t) 4); // R_TAUB_Isr(2,(r_taub_Interrupt_t) 4);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUB2I5(void) void INTTAUB2I5(void)
{ {
// R_TAUB_Isr(2,(r_taub_Interrupt_t) 5); // R_TAUB_Isr(2,(r_taub_Interrupt_t) 5);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUB2I6(void) void INTTAUB2I6(void)
{ {
// R_TAUB_Isr(2,(r_taub_Interrupt_t) 6); // R_TAUB_Isr(2,(r_taub_Interrupt_t) 6);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUB2I7(void) void INTTAUB2I7(void)
{ {
// R_TAUB_Isr(2,(r_taub_Interrupt_t) 7); // R_TAUB_Isr(2,(r_taub_Interrupt_t) 7);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUB2I8(void) void INTTAUB2I8(void)
{ {
//R_TAUB_Isr(2,(r_taub_Interrupt_t) 8); //R_TAUB_Isr(2,(r_taub_Interrupt_t) 8);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUB2I9(void) void INTTAUB2I9(void)
{ {
// R_TAUB_Isr(2,(r_taub_Interrupt_t) 9); // R_TAUB_Isr(2,(r_taub_Interrupt_t) 9);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUB2I10(void) void INTTAUB2I10(void)
{ {
// R_TAUB_Isr(2,(r_taub_Interrupt_t) 10); // R_TAUB_Isr(2,(r_taub_Interrupt_t) 10);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUB2I11(void) void INTTAUB2I11(void)
{ {
// R_TAUB_Isr(2,(r_taub_Interrupt_t) 11); // R_TAUB_Isr(2,(r_taub_Interrupt_t) 11);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUB2I12(void) void INTTAUB2I12(void)
{ {
// R_TAUB_Isr(2,(r_taub_Interrupt_t) 12); // R_TAUB_Isr(2,(r_taub_Interrupt_t) 12);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUB2I13(void) void INTTAUB2I13(void)
{ {
// R_TAUB_Isr(2,(r_taub_Interrupt_t) 13); // R_TAUB_Isr(2,(r_taub_Interrupt_t) 13);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUB2I14(void) void INTTAUB2I14(void)
{ {
//R_TAUB_Isr(2,(r_taub_Interrupt_t) 14); //R_TAUB_Isr(2,(r_taub_Interrupt_t) 14);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTTAUB2I15(void) void INTTAUB2I15(void)
{ {
// R_TAUB_Isr(2,(r_taub_Interrupt_t) 15); // R_TAUB_Isr(2,(r_taub_Interrupt_t) 15);
} }
#endif #endif
...@@ -1175,74 +1184,73 @@ GPIO (external) interrupts ...@@ -1175,74 +1184,73 @@ GPIO (external) interrupts
#ifdef USE_GPIO #ifdef USE_GPIO
#pragma ghs interrupt #pragma ghs interrupt
void INTP0(void) void INTP0(void)
{ {
R_GPIO_IntIsr(0); R_GPIO_IntIsr(0);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTP1(void) void INTP1(void)
{ {
R_GPIO_IntIsr(1); R_GPIO_IntIsr(1);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTP2(void) void INTP2(void)
{ {
R_GPIO_IntIsr(2); R_GPIO_IntIsr(2);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTP3(void) void INTP3(void)
{ {
R_GPIO_IntIsr(3); R_GPIO_IntIsr(3);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTP4(void) void INTP4(void)
{ {
R_GPIO_IntIsr(4); R_GPIO_IntIsr(4);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTP5(void) void INTP5(void)
{ {
R_GPIO_IntIsr(5); R_GPIO_IntIsr(5);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTP6(void) void INTP6(void)
{ {
R_GPIO_IntIsr(6); R_GPIO_IntIsr(6);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTP7(void) void INTP7(void)
{ {
R_GPIO_IntIsr(7); R_GPIO_IntIsr(7);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTP8(void) void INTP8(void)
{ {
R_GPIO_IntIsr(8); R_GPIO_IntIsr(8);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTP9(void) void INTP9(void)
{ {
R_GPIO_IntIsr(9); R_GPIO_IntIsr(9);
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTP10(void) void INTP10(void)
{ {
R_GPIO_IntIsr(10); R_GPIO_IntIsr(10);
} }
#endif #endif
/**************************************************/ /**************************************************/
/* pcmp - PCM-PWM Interrupts */ /* pcmp - PCM-PWM Interrupts */
/**************************************************/ /**************************************************/
...@@ -1250,7 +1258,7 @@ void INTP10(void) ...@@ -1250,7 +1258,7 @@ void INTP10(void)
#ifdef USE_PCMP #ifdef USE_PCMP
#pragma ghs interrupt #pragma ghs interrupt
void INTPCMP0FFIL(void) void INTPCMP0FFIL(void)
{ {
R_PCMP_Isr(0, R_PCMP_INT_FFIL); R_PCMP_Isr(0, R_PCMP_INT_FFIL);
} }
...@@ -1261,8 +1269,7 @@ void INTPCMP0FERR(void) ...@@ -1261,8 +1269,7 @@ void INTPCMP0FERR(void)
R_PCMP_Isr(0, R_PCMP_INT_ERR); R_PCMP_Isr(0, R_PCMP_INT_ERR);
} }
#endif /* PCMP */ #endif /* PCMP */
/**************************************************/ /**************************************************/
/* sg - SG Interrupts */ /* sg - SG Interrupts */
...@@ -1299,8 +1306,7 @@ void INTSG4TI(void) ...@@ -1299,8 +1306,7 @@ void INTSG4TI(void)
{ {
R_SG_Isr(4); R_SG_Isr(4);
} }
#endif /* SG */ #endif /* SG */
/**************************************************/ /**************************************************/
/* ssif - SSIF Interrupts */ /* ssif - SSIF Interrupts */
...@@ -1341,11 +1347,10 @@ void INTSSIF1RX(void) ...@@ -1341,11 +1347,10 @@ void INTSSIF1RX(void)
#pragma ghs interrupt #pragma ghs interrupt
void INTSSIF1TX(void) void INTSSIF1TX(void)
{ {
/* R_SSIF_IsrTX(1);*/ /* R_SSIF_IsrTX(1);*/
// I2S_MAX98357_TX(); // I2S_MAX98357_TX();
} }
#endif /* SSIF */ #endif /* SSIF */
/**************************************************/ /**************************************************/
/* gfx - VRAM Interrupts */ /* gfx - VRAM Interrupts */
...@@ -1353,7 +1358,8 @@ void INTSSIF1TX(void) ...@@ -1353,7 +1358,8 @@ void INTSSIF1TX(void)
#ifdef INTVRAM_ENABLE #ifdef INTVRAM_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTVRAM_CH0_1BIT(void) { void INTVRAM_CH0_1BIT(void)
{
#ifdef USE_ROS #ifdef USE_ROS
R_OS_Prv_EnterInterrupt(); R_OS_Prv_EnterInterrupt();
#endif #endif
...@@ -1364,7 +1370,8 @@ void INTVRAM_CH0_1BIT(void) { ...@@ -1364,7 +1370,8 @@ void INTVRAM_CH0_1BIT(void) {
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTVRAM_CH0_2BIT(void) { void INTVRAM_CH0_2BIT(void)
{
#ifdef USE_ROS #ifdef USE_ROS
R_OS_Prv_EnterInterrupt(); R_OS_Prv_EnterInterrupt();
#endif #endif
...@@ -1375,7 +1382,8 @@ void INTVRAM_CH0_2BIT(void) { ...@@ -1375,7 +1382,8 @@ void INTVRAM_CH0_2BIT(void) {
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTVRAM_CH0_OVF(void) { void INTVRAM_CH0_OVF(void)
{
#ifdef USE_ROS #ifdef USE_ROS
R_OS_Prv_EnterInterrupt(); R_OS_Prv_EnterInterrupt();
#endif #endif
...@@ -1386,7 +1394,8 @@ void INTVRAM_CH0_OVF(void) { ...@@ -1386,7 +1394,8 @@ void INTVRAM_CH0_OVF(void) {
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTVRAM_CH1_1BIT(void) { void INTVRAM_CH1_1BIT(void)
{
#ifdef USE_ROS #ifdef USE_ROS
R_OS_Prv_EnterInterrupt(); R_OS_Prv_EnterInterrupt();
#endif #endif
...@@ -1397,7 +1406,8 @@ void INTVRAM_CH1_1BIT(void) { ...@@ -1397,7 +1406,8 @@ void INTVRAM_CH1_1BIT(void) {
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTVRAM_CH1_2BIT(void) { void INTVRAM_CH1_2BIT(void)
{
#ifdef USE_ROS #ifdef USE_ROS
R_OS_Prv_EnterInterrupt(); R_OS_Prv_EnterInterrupt();
#endif #endif
...@@ -1408,7 +1418,8 @@ void INTVRAM_CH1_2BIT(void) { ...@@ -1408,7 +1418,8 @@ void INTVRAM_CH1_2BIT(void) {
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTVRAM_CH1_OVF(void) { void INTVRAM_CH1_OVF(void)
{
#ifdef USE_ROS #ifdef USE_ROS
R_OS_Prv_EnterInterrupt(); R_OS_Prv_EnterInterrupt();
#endif #endif
...@@ -1419,8 +1430,6 @@ void INTVRAM_CH1_OVF(void) { ...@@ -1419,8 +1430,6 @@ void INTVRAM_CH1_OVF(void) {
} }
#endif #endif
/**************************************************/ /**************************************************/
/* gfx - LCBI Interrupts */ /* gfx - LCBI Interrupts */
/**************************************************/ /**************************************************/
...@@ -1463,16 +1472,15 @@ void INTLCBI03QTR(void) ...@@ -1463,16 +1472,15 @@ void INTLCBI03QTR(void)
} }
#endif /* USE_LCBI */ #endif /* USE_LCBI */
/**************************************************/ /**************************************************/
/* gfx - VDCE Interrupts */ /* gfx - VDCE Interrupts */
/**************************************************/ /**************************************************/
#ifdef INTVDCE_ENABLE /* USE_VDCE */
#ifdef INTVDCE_ENABLE /* USE_VDCE */
#pragma ghs interrupt #pragma ghs interrupt
void INTVDCE_CH0_ERR(void) { void INTVDCE_CH0_ERR(void)
{
#ifdef USE_ROS #ifdef USE_ROS
R_OS_Prv_EnterInterrupt(); R_OS_Prv_EnterInterrupt();
#endif #endif
...@@ -1484,18 +1492,20 @@ void INTVDCE_CH0_ERR(void) { ...@@ -1484,18 +1492,20 @@ void INTVDCE_CH0_ERR(void) {
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTVDCE_CH0_GR3VBLANK(void) { void INTVDCE_CH0_GR3VBLANK(void)
{
#ifdef USE_ROS #ifdef USE_ROS
R_OS_Prv_EnterInterrupt(); R_OS_Prv_EnterInterrupt();
#endif #endif
R_VDCE_Isr(0, R_VDCE_INTC_VBLANK_DELAY); /* R_VDCE_INTC_VBLANK_DELAY ? */ R_VDCE_Isr(0, R_VDCE_INTC_VBLANK_DELAY); /* R_VDCE_INTC_VBLANK_DELAY ? */
#ifdef USE_ROS #ifdef USE_ROS
R_OS_Prv_LeaveInterrupt(); R_OS_Prv_LeaveInterrupt();
#endif #endif
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTVDCE_CH0_S0VIVSYNC(void) { void INTVDCE_CH0_S0VIVSYNC(void)
{
#ifdef USE_ROS #ifdef USE_ROS
R_OS_Prv_EnterInterrupt(); R_OS_Prv_EnterInterrupt();
#endif #endif
...@@ -1506,7 +1516,8 @@ void INTVDCE_CH0_S0VIVSYNC(void) { ...@@ -1506,7 +1516,8 @@ void INTVDCE_CH0_S0VIVSYNC(void) {
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTVDCE_CH0_S0LOVSYNC(void) { void INTVDCE_CH0_S0LOVSYNC(void)
{
#ifdef USE_ROS #ifdef USE_ROS
R_OS_Prv_EnterInterrupt(); R_OS_Prv_EnterInterrupt();
#endif #endif
...@@ -1517,7 +1528,8 @@ void INTVDCE_CH0_S0LOVSYNC(void) { ...@@ -1517,7 +1528,8 @@ void INTVDCE_CH0_S0LOVSYNC(void) {
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTVDCE_CH0_GR3VLINE(void) { void INTVDCE_CH0_GR3VLINE(void)
{
#ifdef USE_ROS #ifdef USE_ROS
R_OS_Prv_EnterInterrupt(); R_OS_Prv_EnterInterrupt();
#endif #endif
...@@ -1528,7 +1540,8 @@ void INTVDCE_CH0_GR3VLINE(void) { ...@@ -1528,7 +1540,8 @@ void INTVDCE_CH0_GR3VLINE(void) {
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTVDCE_CH0_S0VFIELD(void) { void INTVDCE_CH0_S0VFIELD(void)
{
#ifdef USE_ROS #ifdef USE_ROS
R_OS_Prv_EnterInterrupt(); R_OS_Prv_EnterInterrupt();
#endif #endif
...@@ -1539,7 +1552,8 @@ void INTVDCE_CH0_S0VFIELD(void) { ...@@ -1539,7 +1552,8 @@ void INTVDCE_CH0_S0VFIELD(void) {
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTVDCE_CH0_S1LOVSYNC(void) { void INTVDCE_CH0_S1LOVSYNC(void)
{
#ifdef USE_ROS #ifdef USE_ROS
R_OS_Prv_EnterInterrupt(); R_OS_Prv_EnterInterrupt();
#endif #endif
...@@ -1550,7 +1564,8 @@ void INTVDCE_CH0_S1LOVSYNC(void) { ...@@ -1550,7 +1564,8 @@ void INTVDCE_CH0_S1LOVSYNC(void) {
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTVDCE_CH0_OIRVIVSYNC(void) { void INTVDCE_CH0_OIRVIVSYNC(void)
{
#ifdef USE_ROS #ifdef USE_ROS
R_OS_Prv_EnterInterrupt(); R_OS_Prv_EnterInterrupt();
#endif #endif
...@@ -1561,7 +1576,8 @@ void INTVDCE_CH0_OIRVIVSYNC(void) { ...@@ -1561,7 +1576,8 @@ void INTVDCE_CH0_OIRVIVSYNC(void) {
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTVDCE_CH0_OIRLOVSYNC(void) { void INTVDCE_CH0_OIRLOVSYNC(void)
{
#ifdef USE_ROS #ifdef USE_ROS
R_OS_Prv_EnterInterrupt(); R_OS_Prv_EnterInterrupt();
#endif #endif
...@@ -1572,7 +1588,8 @@ void INTVDCE_CH0_OIRLOVSYNC(void) { ...@@ -1572,7 +1588,8 @@ void INTVDCE_CH0_OIRLOVSYNC(void) {
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTVDCE_CH0_OIRVLINE(void) { void INTVDCE_CH0_OIRVLINE(void)
{
#ifdef USE_ROS #ifdef USE_ROS
R_OS_Prv_EnterInterrupt(); R_OS_Prv_EnterInterrupt();
#endif #endif
...@@ -1583,7 +1600,8 @@ void INTVDCE_CH0_OIRVLINE(void) { ...@@ -1583,7 +1600,8 @@ void INTVDCE_CH0_OIRVLINE(void) {
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTVDCE_CH1_ERR(void) { void INTVDCE_CH1_ERR(void)
{
#ifdef USE_ROS #ifdef USE_ROS
R_OS_Prv_EnterInterrupt(); R_OS_Prv_EnterInterrupt();
#endif #endif
...@@ -1594,7 +1612,8 @@ void INTVDCE_CH1_ERR(void) { ...@@ -1594,7 +1612,8 @@ void INTVDCE_CH1_ERR(void) {
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTVDCE_CH1_GR3VBLANK(void) { void INTVDCE_CH1_GR3VBLANK(void)
{
#ifdef USE_ROS #ifdef USE_ROS
R_OS_Prv_EnterInterrupt(); R_OS_Prv_EnterInterrupt();
#endif #endif
...@@ -1605,7 +1624,8 @@ void INTVDCE_CH1_GR3VBLANK(void) { ...@@ -1605,7 +1624,8 @@ void INTVDCE_CH1_GR3VBLANK(void) {
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTVDCE_CH1_S0VIVSYNC(void) { void INTVDCE_CH1_S0VIVSYNC(void)
{
#ifdef USE_ROS #ifdef USE_ROS
R_OS_Prv_EnterInterrupt(); R_OS_Prv_EnterInterrupt();
#endif #endif
...@@ -1616,7 +1636,8 @@ void INTVDCE_CH1_S0VIVSYNC(void) { ...@@ -1616,7 +1636,8 @@ void INTVDCE_CH1_S0VIVSYNC(void) {
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTVDCE_CH1_S0LOVSYNC(void) { void INTVDCE_CH1_S0LOVSYNC(void)
{
#ifdef USE_ROS #ifdef USE_ROS
R_OS_Prv_EnterInterrupt(); R_OS_Prv_EnterInterrupt();
#endif #endif
...@@ -1627,7 +1648,8 @@ void INTVDCE_CH1_S0LOVSYNC(void) { ...@@ -1627,7 +1648,8 @@ void INTVDCE_CH1_S0LOVSYNC(void) {
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTVDCE_CH1_GR3VLINE(void) { void INTVDCE_CH1_GR3VLINE(void)
{
#ifdef USE_ROS #ifdef USE_ROS
R_OS_Prv_EnterInterrupt(); R_OS_Prv_EnterInterrupt();
#endif #endif
...@@ -1638,7 +1660,8 @@ void INTVDCE_CH1_GR3VLINE(void) { ...@@ -1638,7 +1660,8 @@ void INTVDCE_CH1_GR3VLINE(void) {
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTVDCE_CH1_S0VFIELD(void) { void INTVDCE_CH1_S0VFIELD(void)
{
#ifdef USE_ROS #ifdef USE_ROS
R_OS_Prv_EnterInterrupt(); R_OS_Prv_EnterInterrupt();
#endif #endif
...@@ -1649,7 +1672,8 @@ void INTVDCE_CH1_S0VFIELD(void) { ...@@ -1649,7 +1672,8 @@ void INTVDCE_CH1_S0VFIELD(void) {
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTVDCE_CH1_S1LOVSYNC(void) { void INTVDCE_CH1_S1LOVSYNC(void)
{
#ifdef USE_ROS #ifdef USE_ROS
R_OS_Prv_EnterInterrupt(); R_OS_Prv_EnterInterrupt();
#endif #endif
...@@ -1659,8 +1683,7 @@ void INTVDCE_CH1_S1LOVSYNC(void) { ...@@ -1659,8 +1683,7 @@ void INTVDCE_CH1_S1LOVSYNC(void) {
#endif #endif
} }
#endif /* INTVDCE_ENABLE / USE_VDCE */ #endif /* INTVDCE_ENABLE / USE_VDCE */
/**************************************************/ /**************************************************/
/* gfx - VOWE Interrupts */ /* gfx - VOWE Interrupts */
...@@ -1668,7 +1691,8 @@ void INTVDCE_CH1_S1LOVSYNC(void) { ...@@ -1668,7 +1691,8 @@ void INTVDCE_CH1_S1LOVSYNC(void) {
#ifdef INTVOWE_ENABLE #ifdef INTVOWE_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTVOWE(void) { void INTVOWE(void)
{
#ifdef USE_ROS #ifdef USE_ROS
R_OS_Prv_EnterInterrupt(); R_OS_Prv_EnterInterrupt();
#endif #endif
...@@ -1679,14 +1703,14 @@ void INTVOWE(void) { ...@@ -1679,14 +1703,14 @@ void INTVOWE(void) {
} }
#endif #endif
/**************************************************/ /**************************************************/
/* gfx - MIPI Interrupts */ /* gfx - MIPI Interrupts */
/**************************************************/ /**************************************************/
#ifdef INTMIPI0OVF_ENABLE #ifdef INTMIPI0OVF_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTMIPI0OVF(void) { void INTMIPI0OVF(void)
{
#ifdef USE_ROS #ifdef USE_ROS
R_OS_Prv_EnterInterrupt(); R_OS_Prv_EnterInterrupt();
#endif #endif
...@@ -1699,7 +1723,8 @@ void INTMIPI0OVF(void) { ...@@ -1699,7 +1723,8 @@ void INTMIPI0OVF(void) {
#ifdef INTMIPI0CTL_ENABLE #ifdef INTMIPI0CTL_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTMIPI0CTL(void) { void INTMIPI0CTL(void)
{
#ifdef USE_ROS #ifdef USE_ROS
R_OS_Prv_EnterInterrupt(); R_OS_Prv_EnterInterrupt();
#endif #endif
...@@ -1710,14 +1735,14 @@ void INTMIPI0CTL(void) { ...@@ -1710,14 +1735,14 @@ void INTMIPI0CTL(void) {
} }
#endif #endif
/**************************************************/ /**************************************************/
/* gfx - VOCA Interrupts */ /* gfx - VOCA Interrupts */
/**************************************************/ /**************************************************/
#ifdef INTVOCA_VOCINT_ENABLE #ifdef INTVOCA_VOCINT_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTVOCA_VOCINT(void) { void INTVOCA_VOCINT(void)
{
#ifdef USE_ROS #ifdef USE_ROS
R_OS_Prv_EnterInterrupt(); R_OS_Prv_EnterInterrupt();
#endif #endif
...@@ -1730,7 +1755,8 @@ void INTVOCA_VOCINT(void) { ...@@ -1730,7 +1755,8 @@ void INTVOCA_VOCINT(void) {
#ifdef INTVOCA_ACTMONINT_ENABLE #ifdef INTVOCA_ACTMONINT_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTVOCA_ACTMONINT(void) { void INTVOCA_ACTMONINT(void)
{
#ifdef USE_ROS #ifdef USE_ROS
R_OS_Prv_EnterInterrupt(); R_OS_Prv_EnterInterrupt();
#endif #endif
...@@ -1741,14 +1767,14 @@ void INTVOCA_ACTMONINT(void) { ...@@ -1741,14 +1767,14 @@ void INTVOCA_ACTMONINT(void) {
} }
#endif #endif
/**************************************************/ /**************************************************/
/* gfx - DISCOM Interrupts */ /* gfx - DISCOM Interrupts */
/**************************************************/ /**************************************************/
#ifdef INTDISCOM_CMPI0_ENABLE #ifdef INTDISCOM_CMPI0_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTDISCOM_CMPI0(void) { void INTDISCOM_CMPI0(void)
{
#ifdef USE_ROS #ifdef USE_ROS
R_OS_Prv_EnterInterrupt(); R_OS_Prv_EnterInterrupt();
#endif #endif
...@@ -1761,7 +1787,8 @@ void INTDISCOM_CMPI0(void) { ...@@ -1761,7 +1787,8 @@ void INTDISCOM_CMPI0(void) {
#ifdef INTDISCOM_CMPI1_ENABLE #ifdef INTDISCOM_CMPI1_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTDISCOM_CMPI1(void) { void INTDISCOM_CMPI1(void)
{
#ifdef USE_ROS #ifdef USE_ROS
R_OS_Prv_EnterInterrupt(); R_OS_Prv_EnterInterrupt();
#endif #endif
...@@ -1772,14 +1799,14 @@ void INTDISCOM_CMPI1(void) { ...@@ -1772,14 +1799,14 @@ void INTDISCOM_CMPI1(void) {
} }
#endif #endif
/**************************************************/ /**************************************************/
/* JCUA Interrupts */ /* JCUA Interrupts */
/**************************************************/ /**************************************************/
#ifdef INTJCU0EDI_ENABLE #ifdef INTJCU0EDI_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTJCU0EDI(void) { void INTJCU0EDI(void)
{
#ifdef USE_ROS #ifdef USE_ROS
R_OS_Prv_EnterInterrupt(); R_OS_Prv_EnterInterrupt();
#endif #endif
...@@ -1792,7 +1819,8 @@ void INTJCU0EDI(void) { ...@@ -1792,7 +1819,8 @@ void INTJCU0EDI(void) {
#ifdef INTJCU0DTI_ENABLE #ifdef INTJCU0DTI_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTJCU0DTI(void) { void INTJCU0DTI(void)
{
#ifdef USE_ROS #ifdef USE_ROS
R_OS_Prv_EnterInterrupt(); R_OS_Prv_EnterInterrupt();
#endif #endif
...@@ -1801,8 +1829,7 @@ void INTJCU0DTI(void) { ...@@ -1801,8 +1829,7 @@ void INTJCU0DTI(void) {
R_OS_Prv_LeaveInterrupt(); R_OS_Prv_LeaveInterrupt();
#endif #endif
} }
#endif #endif
/**************************************************/ /**************************************************/
/* gfx - dhd Interrupts */ /* gfx - dhd Interrupts */
...@@ -1810,7 +1837,8 @@ void INTJCU0DTI(void) { ...@@ -1810,7 +1837,8 @@ void INTJCU0DTI(void) {
#ifdef INTDHD_ENABLE #ifdef INTDHD_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTDHD_SYNC(void) { void INTDHD_SYNC(void)
{
#ifdef USE_ROS #ifdef USE_ROS
R_OS_Prv_EnterInterrupt(); R_OS_Prv_EnterInterrupt();
#endif #endif
...@@ -1821,7 +1849,8 @@ void INTDHD_SYNC(void) { ...@@ -1821,7 +1849,8 @@ void INTDHD_SYNC(void) {
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTDHD_PAUSE(void) { void INTDHD_PAUSE(void)
{
#ifdef USE_ROS #ifdef USE_ROS
R_OS_Prv_EnterInterrupt(); R_OS_Prv_EnterInterrupt();
#endif #endif
...@@ -1832,7 +1861,8 @@ void INTDHD_PAUSE(void) { ...@@ -1832,7 +1861,8 @@ void INTDHD_PAUSE(void) {
} }
#pragma ghs interrupt #pragma ghs interrupt
void INTDHD_SPECIAL(void) { void INTDHD_SPECIAL(void)
{
#ifdef USE_ROS #ifdef USE_ROS
R_OS_Prv_EnterInterrupt(); R_OS_Prv_EnterInterrupt();
#endif #endif
...@@ -1844,7 +1874,6 @@ void INTDHD_SPECIAL(void) { ...@@ -1844,7 +1874,6 @@ void INTDHD_SPECIAL(void) {
#endif #endif
/**************************************************/ /**************************************************/
/* ISM Interrupts */ /* ISM Interrupts */
/**************************************************/ /**************************************************/
...@@ -1852,7 +1881,8 @@ void INTDHD_SPECIAL(void) { ...@@ -1852,7 +1881,8 @@ void INTDHD_SPECIAL(void) {
/* ISM unit 0 */ /* ISM unit 0 */
#ifdef INTISM0REACHED_ENABLE #ifdef INTISM0REACHED_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTISM0REACHED(void) { void INTISM0REACHED(void)
{
#ifdef USE_ROS #ifdef USE_ROS
R_OS_Prv_EnterInterrupt(); R_OS_Prv_EnterInterrupt();
#endif #endif
...@@ -1865,7 +1895,8 @@ void INTISM0REACHED(void) { ...@@ -1865,7 +1895,8 @@ void INTISM0REACHED(void) {
#ifdef INTISM0DONE_ENABLE #ifdef INTISM0DONE_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTISM0DONE(void) { void INTISM0DONE(void)
{
#ifdef USE_ROS #ifdef USE_ROS
R_OS_Prv_EnterInterrupt(); R_OS_Prv_EnterInterrupt();
#endif #endif
...@@ -1878,7 +1909,8 @@ void INTISM0DONE(void) { ...@@ -1878,7 +1909,8 @@ void INTISM0DONE(void) {
#ifdef INTISM0ZPDAD_ENABLE #ifdef INTISM0ZPDAD_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTISM0ZPDAD(void) { void INTISM0ZPDAD(void)
{
#ifdef USE_ROS #ifdef USE_ROS
R_OS_Prv_EnterInterrupt(); R_OS_Prv_EnterInterrupt();
#endif #endif
...@@ -1891,7 +1923,8 @@ void INTISM0ZPDAD(void) { ...@@ -1891,7 +1923,8 @@ void INTISM0ZPDAD(void) {
#ifdef INTISM0ZPD_ENABLE #ifdef INTISM0ZPD_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTISM0ZPD(void) { void INTISM0ZPD(void)
{
#ifdef USE_ROS #ifdef USE_ROS
R_OS_Prv_EnterInterrupt(); R_OS_Prv_EnterInterrupt();
#endif #endif
...@@ -1902,7 +1935,6 @@ void INTISM0ZPD(void) { ...@@ -1902,7 +1935,6 @@ void INTISM0ZPD(void) {
} }
#endif #endif
/**************************************************/ /**************************************************/
/* rscan0 - RSCAN0 Interrupts */ /* rscan0 - RSCAN0 Interrupts */
/**************************************************/ /**************************************************/
...@@ -1911,15 +1943,14 @@ void INTISM0ZPD(void) { ...@@ -1911,15 +1943,14 @@ void INTISM0ZPD(void) {
#ifdef INTRCANGERR_ENABLE #ifdef INTRCANGERR_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTRCANGERR(void) void INTRCANGERR(void)
{ {
} }
#endif #endif
#ifdef INTRCANGRECC_ENABLE #ifdef INTRCANGRECC_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTRCANGRECC(void) void INTRCANGRECC(void)
{ {
//RSCAN0_FIFO_Rx_ISR(); //RSCAN0_FIFO_Rx_ISR();
} }
...@@ -1927,7 +1958,7 @@ void INTRCANGRECC(void) ...@@ -1927,7 +1958,7 @@ void INTRCANGRECC(void)
#ifdef INTRCAN0ERR_ENABLE #ifdef INTRCAN0ERR_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTRCAN0ERR(void) void INTRCAN0ERR(void)
{ {
RSCAN0_CH0_Err_ISR(); RSCAN0_CH0_Err_ISR();
} }
...@@ -1935,7 +1966,7 @@ void INTRCAN0ERR(void) ...@@ -1935,7 +1966,7 @@ void INTRCAN0ERR(void)
#ifdef INTRCAN0REC_ENABLE #ifdef INTRCAN0REC_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTRCAN0REC(void) void INTRCAN0REC(void)
{ {
RSCAN0_CH0_Rx_ISR(); RSCAN0_CH0_Rx_ISR();
} }
...@@ -1943,7 +1974,7 @@ void INTRCAN0REC(void) ...@@ -1943,7 +1974,7 @@ void INTRCAN0REC(void)
#ifdef INTRCAN0TRX_ENABLE #ifdef INTRCAN0TRX_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTRCAN0TRX(void) void INTRCAN0TRX(void)
{ {
RSCAN0_CH0_Tx_ISR(); RSCAN0_CH0_Tx_ISR();
} }
...@@ -1951,7 +1982,7 @@ void INTRCAN0TRX(void) ...@@ -1951,7 +1982,7 @@ void INTRCAN0TRX(void)
#ifdef INTRCAN1ERR_ENABLE #ifdef INTRCAN1ERR_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTRCAN1ERR(void) void INTRCAN1ERR(void)
{ {
RSCAN0_CH1_Err_ISR(); RSCAN0_CH1_Err_ISR();
} }
...@@ -1959,7 +1990,7 @@ void INTRCAN1ERR(void) ...@@ -1959,7 +1990,7 @@ void INTRCAN1ERR(void)
#ifdef INTRCAN1REC_ENABLE #ifdef INTRCAN1REC_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTRCAN1REC(void) void INTRCAN1REC(void)
{ {
RSCAN0_CH1_Rx_ISR(); RSCAN0_CH1_Rx_ISR();
} }
...@@ -1967,7 +1998,7 @@ void INTRCAN1REC(void) ...@@ -1967,7 +1998,7 @@ void INTRCAN1REC(void)
#ifdef INTRCAN1TRX_ENABLE #ifdef INTRCAN1TRX_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTRCAN1TRX(void) void INTRCAN1TRX(void)
{ {
RSCAN0_CH1_Tx_ISR(); RSCAN0_CH1_Tx_ISR();
} }
...@@ -1975,7 +2006,7 @@ void INTRCAN1TRX(void) ...@@ -1975,7 +2006,7 @@ void INTRCAN1TRX(void)
#ifdef INTRCAN2ERR_ENABLE #ifdef INTRCAN2ERR_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTRCAN2ERR(void) void INTRCAN2ERR(void)
{ {
RSCAN0_CH2_Err_ISR(); RSCAN0_CH2_Err_ISR();
} }
...@@ -1983,7 +2014,7 @@ void INTRCAN2ERR(void) ...@@ -1983,7 +2014,7 @@ void INTRCAN2ERR(void)
#ifdef INTRCAN2REC_ENABLE #ifdef INTRCAN2REC_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTRCAN2REC(void) void INTRCAN2REC(void)
{ {
RSCAN0_CH2_Rx_ISR(); RSCAN0_CH2_Rx_ISR();
} }
...@@ -1991,7 +2022,7 @@ void INTRCAN2REC(void) ...@@ -1991,7 +2022,7 @@ void INTRCAN2REC(void)
#ifdef INTRCAN2TRX_ENABLE #ifdef INTRCAN2TRX_ENABLE
#pragma ghs interrupt #pragma ghs interrupt
void INTRCAN2TRX(void) void INTRCAN2TRX(void)
{ {
RSCAN0_CH2_Tx_ISR(); RSCAN0_CH2_Tx_ISR();
} }
...@@ -2009,7 +2040,6 @@ void INTRCAN2TRX(void) ...@@ -2009,7 +2040,6 @@ void INTRCAN2TRX(void)
#pragma ghs interrupt #pragma ghs interrupt
void INTFLERR(void) void INTFLERR(void)
{ {
} }
#endif #endif
...@@ -2022,12 +2052,4 @@ void INTFLENDNM(void) ...@@ -2022,12 +2052,4 @@ void INTFLENDNM(void)
#endif #endif
#endif /* USE_INT_FLASH */ #endif /* USE_INT_FLASH */
#pragma ghs endnomisra #pragma ghs endnomisra
...@@ -3,8 +3,6 @@ ...@@ -3,8 +3,6 @@
#include "init.h" #include "init.h"
#include "Sys_Scheduler.h" #include "Sys_Scheduler.h"
#include "Sys_Tick.h" #include "Sys_Tick.h"
#include "kwp2000_tp.h"
#include "kwp2000_protocol.h"
typedef struct typedef struct
{ {
...@@ -27,9 +25,6 @@ Sys_Scheduling_st_t SysScheduling; ...@@ -27,9 +25,6 @@ Sys_Scheduling_st_t SysScheduling;
static void Sys_Exact_50us_Task_Handler(void); static void Sys_Exact_50us_Task_Handler(void);
static void Sys_Exact_100ms_Task_Handler(void); static void Sys_Exact_100ms_Task_Handler(void);
static uint8_t u08_1ms_count;
void Sys_Init(void) void Sys_Init(void)
{ {
SysScheduling.msRocBak = 0U; SysScheduling.msRocBak = 0U;
...@@ -102,16 +97,6 @@ void Sys_Scheduling_Service(void) ...@@ -102,16 +97,6 @@ void Sys_Scheduling_Service(void)
static void Sys_Exact_50us_Task_Handler(void) static void Sys_Exact_50us_Task_Handler(void)
{ {
Sys_Exact_50us_Tasks(); Sys_Exact_50us_Tasks();
/*----K_Line----*/
u08_1ms_count ++;
if (u08_1ms_count >= 20)
{
u08_1ms_count = 0;
Kwp2000_ComInit_Handle();
Kwp2000_Handle(); /* qitiancun */
Kwp2000_Timeout();
}
} }
......
...@@ -86,6 +86,11 @@ ...@@ -86,6 +86,11 @@
#include "Buzzer.h" #include "Buzzer.h"
#include "CAN_FUNC.h" #include "CAN_FUNC.h"
#include "kwp2000_tp.h"
#include "kwp2000_protocol.h"
static uint8_t u08_1ms_count;
/******************************************************************************* /*******************************************************************************
* * * *
* 系统常规运行模式(SYS_MODE_OFF / SYS_MODE_ON / SYS_MODE_STANDBY )任务列表 * * 系统常规运行模式(SYS_MODE_OFF / SYS_MODE_ON / SYS_MODE_STANDBY )任务列表 *
...@@ -270,6 +275,16 @@ void Sys_Exact_50us_Tasks(void) ...@@ -270,6 +275,16 @@ void Sys_Exact_50us_Tasks(void)
SEG_LCD_Window_Control_Service(); SEG_LCD_Window_Control_Service();
} }
Buzzer_Play_ISR(); Buzzer_Play_ISR();
/*----K_Line----*/
u08_1ms_count ++;
if (u08_1ms_count >= 20)
{
u08_1ms_count = 0;
Kwp2000_ComInit_Handle();
Kwp2000_Handle(); /* qitiancun */
Kwp2000_Timeout();
}
} }
/*============================================================================*/ /*============================================================================*/
......
#include "r_typedefs.h" #include "r_typedefs.h"
#include "dr7f701441.dvf.h"
#include "GPIO.h" #include "GPIO.h"
#define GPIO_STB_PROTECTED_WRITE(preg, pstatus, reg, value) \ #define GPIO_STB_PROTECTED_WRITE(preg, pstatus, reg, value) \
...@@ -18,8 +19,8 @@ const uint32_t g_u32GPIOConfigArray[][2U] = ...@@ -18,8 +19,8 @@ const uint32_t g_u32GPIOConfigArray[][2U] =
0x00010010ul, /*Pin_P0_1 GPIO_IN SCHMITT1PDSC:L PU/PD:NULL P:L */ 0x00010010ul, /*Pin_P0_1 GPIO_IN SCHMITT1PDSC:L PU/PD:NULL P:L */
0x00010010ul, /*Pin_P0_1 GPIO_IN SCHMITT1PDSC:L PU/PD:NULL P:L */ 0x00010010ul, /*Pin_P0_1 GPIO_IN SCHMITT1PDSC:L PU/PD:NULL P:L */
0x00400050ul, /*Pin_P0_2 INTP1 TTLPDSC:L PU/PD:NULL P:L */ 0x00400040ul, /*Pin_P0_2 RLIN32TX TTLPDSC:L PU/PD:NULL P:L */
0x00400050ul, /*Pin_P0_2 INTP1 TTLPDSC:L PU/PD:NULL P:L */ 0x00400040ul, /*Pin_P0_2 RLIN32TX TTLPDSC:L PU/PD:NULL P:L */
0x00400050ul, /*Pin_P0_3 RLIN32RX/INTP2 TTLPDSC:L PU/PD:NULL P:L */ 0x00400050ul, /*Pin_P0_3 RLIN32RX/INTP2 TTLPDSC:L PU/PD:NULL P:L */
0x00400050ul, /*Pin_P0_3 RLIN32RX/INTP2 TTLPDSC:L PU/PD:NULL P:L */ 0x00400050ul, /*Pin_P0_3 RLIN32RX/INTP2 TTLPDSC:L PU/PD:NULL P:L */
...@@ -150,7 +151,7 @@ const uint32_t g_u32GPIOConfigArray[][2U] = ...@@ -150,7 +151,7 @@ const uint32_t g_u32GPIOConfigArray[][2U] =
0x00010000ul, /*Pin_P16_3 GPIO_OUT SCHMITT1PDSC:L PU/PD:NULL P:L */ 0x00010000ul, /*Pin_P16_3 GPIO_OUT SCHMITT1PDSC:L PU/PD:NULL P:L */
0x00010000ul, /*Pin_P16_3 GPIO_OUT SCHMITT1PDSC:L PU/PD:NULL P:L */ 0x00010000ul, /*Pin_P16_3 GPIO_OUT SCHMITT1PDSC:L PU/PD:NULL P:L */
0x00000060ul, /*Pin_P16_4 ISM21 SCHMITT1PDSC:L PU/PD:NULL P:L */ 0x00010000ul, /*Pin_P16_4 GPIO_OUT SCHMITT1PDSC:L PU/PD:NULL P:L */
0x00010000ul, /*Pin_P16_4 GPIO_OUT SCHMITT1PDSC:L PU/PD:NULL P:L */ 0x00010000ul, /*Pin_P16_4 GPIO_OUT SCHMITT1PDSC:L PU/PD:NULL P:L */
0x00000042ul, /*Pin_P16_5 TAUB0O11 SCHMITT1PDSC:L PU/PD:NULL P:L */ 0x00000042ul, /*Pin_P16_5 TAUB0O11 SCHMITT1PDSC:L PU/PD:NULL P:L */
......
#ifndef GPIO_H__ #ifndef GPIO_H__
#define GPIO_H__ #define GPIO_H__
#include "dr7f701441.dvf.h"
/* --- PORT Data Direction --- */ /* --- PORT Data Direction --- */
#define GPIO_DIR_PORT00_PIN00 PORT_AWOPM0_0 #define GPIO_DIR_PORT00_PIN00 PORT_AWOPM0_0
...@@ -465,6 +464,7 @@ ...@@ -465,6 +464,7 @@
#define BUZZER_MCU_OUT GPIO_OUT_PORT16_PIN01 #define BUZZER_MCU_OUT GPIO_OUT_PORT16_PIN01
#define TEMP_R_LED_OUT GPIO_OUT_PORT16_PIN02 #define TEMP_R_LED_OUT GPIO_OUT_PORT16_PIN02
#define TACHO_A39_OUT GPIO_OUT_PORT16_PIN03 #define TACHO_A39_OUT GPIO_OUT_PORT16_PIN03
#define LIN_SLP_N_MCU GPIO_OUT_PORT16_PIN04
#define WAKE_N_MCU_IN GPIO_IN_PORT16_PIN06 #define WAKE_N_MCU_IN GPIO_IN_PORT16_PIN06
#define CD4051A_A_MCU_OUT GPIO_OUT_PORT16_PIN07 #define CD4051A_A_MCU_OUT GPIO_OUT_PORT16_PIN07
#define CD4051A_B_MCU_OUT GPIO_OUT_PORT16_PIN08 #define CD4051A_B_MCU_OUT GPIO_OUT_PORT16_PIN08
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment