interrupt_service.c

来自「This directory contains a code example t」· C语言 代码 · 共 24 行

C
24
字号
#include "main.h"

/********************************************************************************/
/***** Defines the interrupt service routines for CoreA						*****/
/********************************************************************************/


EX_INTERRUPT_HANDLER(PPI0_RxIsr) {

	*pDMA1_0_IRQ_STATUS |= DMA_DONE;		// acknowledge interrupt
	
	if (current_in_Frame < 0)	semaphore_frames_received = true;	// this was the first Frame received now signal core B to start Video Out
	
	current_in_Frame = (++current_in_Frame) % 4;		
	
}



EX_EXCEPTION_HANDLER(ex_handler_coreA) {
	while(1);
}

⌨️ 快捷键说明

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