📄 main.c
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -