isr.c

来自「WM8731的驱动程序」· C语言 代码 · 共 35 行

C
35
字号
#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)
{
	// confirm interrupt handling

	*pDMA2_0_IRQ_STATUS = 0x0001;
  

    iChannel00= iRxBuffer1[0];
    iChannel01= iRxBuffer1[1];
 

	Process_Data();				

	// copy processed data from variables into dma output buffer
	iTxBuffer1[0] = iChannel10;
	iTxBuffer1[1] = iChannel11;

}

⌨️ 快捷键说明

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