⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 interrupt.c

📁 Code for devellop for most DSP application. This code includes configurations for register into the
💻 C
字号:

#include "essaiCSL.h"
#include <csl_edma.h>

extern far void vectors();
int xmtDone, rcvDone; //flags
int cmpt = 0;

/************************************************************************\
 name:      SetInterruptsEdma

 purpose:   Sets up interrupts to service EDMA transfers

 inputs:    None

 returns:   n/a
\************************************************************************/
void SetInterruptsEdma(void)
{
     IRQ_setVecs(vectors);     /* point to the IRQ vector table	*/

     IRQ_nmiEnable();
     IRQ_globalEnable();
          
     IRQ_map(IRQ_EVT_EDMAINT, 8);//pourquoi sur 8 ?
     IRQ_reset(IRQ_EVT_EDMAINT);

     IRQ_enable(IRQ_EVT_EDMAINT);

} /* end SetInterruptsEdma() */


/************************************************************************\
 name:      Interrupt Service Routine c_int08

 purpose:   ISR to service EDMAINT. vecs.asm must be modified to include
            c_int08 entry.
            
 inputs:    n/a

 returns:   n/a
\************************************************************************/
interrupt void    
c_int08(void)    
{
    EDMA_intDispatcher();//renvoie aux fonctions d閒inies apr鑣
    return;
} /* end c_int08 */


void setXmtDone1()
{
    xmtDone = 1;
}

void setXmtDone2()
{
    xmtDone = 1;
}

void setRcvDone1()
{
    rcvDone = 1;//comment reconnaitre flip et flop ?
	cmpt++;
}

void setRcvDone2()
{
    rcvDone = 1;
	cmpt++;
	if (cmpt > 2) {
		rcvDone = 2;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -