我需要在中断函数的定义中用到@svlreg修饰符,如下:
@far @interrupt @svlreg void Timer2_Interrupt(void)
{
........
}
但编译时出以下错误:
clnk -lE:\works\projects\STM\STM8\lean\lean\Lib -o debug\lean.sm8 -llib -mdebug\lean.map -p debug\lean.lkf
#error clnk debug\lean.lkf:1 symbol c_lreg not defined (debug\stm8_interrupt_vector.o )
The command: "clnk -lE:\works\projects\STM\STM8\lean\lean\Lib -o debug\lean.sm8 -llib -mdebug\lean.map -p debug\lean.lkf " has failed, the returned value is: 1
exit code=1.
将@svlreg 修饰符去掉,编译正常通过,请问我错在哪里?谢谢! |