main.c

来自「mcf5307开发板diab4.2开发环境下led的测试程序」· C语言 代码 · 共 67 行

C
67
字号
#include "mcf5307.h" 

MCF5307_IMM *imm;

void main(void)
{
 
 	imm=(MCF5307_IMM *)0x10000000;		//to init imm
 

 	cpu_cache_disable();
 	EnableCache();            		//will close the int.

 	while(1)
 	{
     		imm->parallel_port.PADAT=0x00;	//turn off the leds
     		imm->parallel_port.PADAT=0xff;	//turn on the leds
 	}
     
} 
    

void Interrupt_UART1(void)   			// asigned to Level 5
{
 	//Add Code here!
}

void Interrupt_mbus(void)    			// asigned to Level 3
{
	//Add Code here!
}

void Interrupt_Level7(void)
{
 	//Add Code here!
}

void Interrupt_Level6(void)
{
 	//Add Code here!
    
}

void Interrupt_Level4(void)
{
 	//Add Code here!
}


void Interrupt_Level2(void)
{
 	//Add Code here!
}


void Interrupt_Level1(void)
{
 	//Add Code here!
}

void BusError(void)
{
 	//Add Code here!
}


⌨️ 快捷键说明

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