请问各位高手,我在调试所带的复读机、语音播报电子钟程序时,出现Warning L0043: "_BREAK" "_IRQ0" "_IRQ1" "_IRQ2" "_IRQ3" "_IRQ4" "_IRQ5" "_IRQ6" "_IRQ7" function hasn't been defined.怎么解决?谢谢!
系统给出的声明
需要有程序来定义
如果没有使用
那么就定义一个空的函数
汇编格式:
.public _BREAK
_BREAK:
push r1,r5 to [sp]
pop r1,r5 from [sp]
retf
.public _IRQ0
_IRQ0:
push r1,r5 to [sp]
pop r1,r5 from [sp]
retf
.public _IRQ1
_IRQ1:
push r1,r5 to [sp]
pop r1,r5 from [sp]
retf
.public _IRQ2
_IRQ2:
push r1,r5 to [sp]
pop r1,r5 from [sp]
retf
.public _IRQ3
_IRQ3:
push r1,r5 to [sp]
pop r1,r5 from [sp]
retf
.public _IRQ4
_IRQ4:
push r1,r5 to [sp]
pop r1,r5 from [sp]
retf
.public _IRQ5
_IRQ5:
push r1,r5 to [sp]
pop r1,r5 from [sp]
retf
.public _IRQ6
_IRQ6:
push r1,r5 to [sp]
pop r1,r5 from [sp]
retf
.public _IRQ7
_IRQ7:
push r1,r5 to [sp]
pop r1,r5 from [sp]
retf
.public _FIQ
_FIQ:
push r1,r5 to [sp]
pop r1,r5 from [sp]
retf
c格式
void IRQ0(void)__attribute__((ISR));
void IRQ0(void)
{
}
void IRQ1(void)__attribute__((ISR));
void IRQ1(void)
{
}
void IRQ2(void)__attribute__((ISR));
void IRQ2(void)
{
}
void IRQ3(void)__attribute__((ISR));
void IRQ3(void)
{
}
void IRQ4(void)__attribute__((ISR));
void IRQ4(void)
{
}
void IRQ5(void)__attribute__((ISR));
void IRQ5(void)
{
}
void IRQ6(void)__attribute__((ISR));
void IRQ6(void)
{
}
void IRQ7(void)__attribute__((ISR));
void IRQ7(void)
{
}
void BREAK(void)__attribute__((ISR));
void BREAK(void)
{
}
void FIQ(void)__attribute__((ISR));
void FIQ0(void)
{
}
系统给出的声明
需要有程序来定义
如果没有使用
那么就定义一个空的函数
汇编格式:
.public _BREAK
_BREAK:
push r1,r5 to [sp]
pop r1,r5 from [sp]
retf