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

📄 isr.c

📁 VDSP++ code for talkthrough program modified to act as a transmitter.
💻 C
字号:
#include "Talkthrough.h"

//--------------------------------------------------------------------------//
// Function:	Sport0_RX_ISR												//
//																			//
// Description: This ISR is executed after a complete frame of input data 	//
//				has been received. The new samples are stored in 			//
//				iChannel0LeftIn, iChannel0RightIn, iChannel1LeftIn and 		//
//				iChannel1RightIn respectively.  Then the function 			//
//				Process_Data() is called in which user code can be executed.//
//				After that the processed values are copied from the 		//
//				variables iChannel0LeftOut, iChannel0RightOut, 				//
//				iChannel1LeftOut and iChannel1RightOut into the dma 		//
//				transmit buffer.											//
//--------------------------------------------------------------------------//
///EX_INTERRUPT_HANDLER(Sport0_RX_ISR)

EX_INTERRUPT_HANDLER(Sport0_TX_ISR)
{
	// confirm interrupt handling
///	*pDMA1_IRQ_STATUS = 0x0001;
     *pDMA2_IRQ_STATUS = 0x0001;

	// copy input data from dma input buffer into variables
	///iChannel0LeftIn = iRxBuffer1[INTERNAL_ADC_L0];
	///iChannel0RightIn = iRxBuffer1[INTERNAL_ADC_R0];
	///iChannel1LeftIn = iRxBuffer1[INTERNAL_ADC_L1];
	///iChannel1RightIn = iRxBuffer1[INTERNAL_ADC_R1];
	
	// call function that contains user code
	Process_Data();				

	// copy processed data from variables into dma output buffer
	iTxBuffer1[INTERNAL_DAC_L0] = iChannel0LeftOut;
	iTxBuffer1[INTERNAL_DAC_R0] = iChannel0RightOut;
	iTxBuffer1[INTERNAL_DAC_L1] = iChannel1LeftOut;
	iTxBuffer1[INTERNAL_DAC_R1] = iChannel1RightOut;
}


⌨️ 快捷键说明

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