ram.c

来自「ADuC系列芯片的源代码事例」· C语言 代码 · 共 22 行

C
22
字号
#include <ADuC7026.h>

//	Function Prototypes with attribute definitions

void	My_IRQ_Function(void) __attribute__ ((interrupt ("IRQ"))) __attribute__ ((section (".ram_func")));

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

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



⌨️ 快捷键说明

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