ram.c

来自「ADuC7020/26是ADI模拟公司开发的ARM7TDMI内核」· C语言 代码 · 共 18 行

C
18
字号
#include <ADuC7026.h>

//	Function Prototypes with attribute definitions
void IRQ_Handler() __irq;

/********************************************************************/
/*                                                                  */
/*		Interrupt Service Rountine									*/
/*                                                                  */
/********************************************************************/

void IRQ_Handler() __irq __ram	   	// Two attributes, specifying function as an
{									// interupt and to be located in ram

	GP4DAT ^= 0x00040000;	   		// 	Complement Port 4.2
	while(GP0DAT & 0x00010){}		// 	Wait for XIRQ to be low again
}

⌨️ 快捷键说明

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