凌阳科技大学计划论坛

首页 » 产品服务区 » [求助]
xjguan825 - 2005-12-6 17:27:00

请问各位高手,我在调试所带的复读机、语音播报电子钟程序时,出现Warning L0043: "_BREAK" "_IRQ0" "_IRQ1" "_IRQ2" "_IRQ3" "_IRQ4" "_IRQ5" "_IRQ6" "_IRQ7"  function hasn't been defined.怎么解决?谢谢!

脚踏实地 - 2005-12-6 17:47:00

系统给出的声明

需要有程序来定义

如果没有使用

那么就定义一个空的函数

汇编格式:

.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

脚踏实地 - 2005-12-6 17:50:00

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)
{
}

zhuimengren - 2005-12-6 19:22:00
这个警告可以不用管它,没关系的!
qwerty - 2005-12-27 19:50:00


引用:
以下是引用脚踏实地在2005-12-6 17:47:00的发言:

系统给出的声明


需要有程序来定义


如果没有使用


那么就定义一个空的函数


汇编格式:


.public _BREAK


_BREAK:


push r1,r5 to [sp]


pop r1,r5 from [sp]


retf

应该是reti
 1 
查看完整版本: [求助]