作者:
MaxHaru (懂得放手..才是王道)
2015-04-16 11:27:47請教一個關於Keil C OVERLAY的問題,
我在Keil C環境中OVERLAY的設定如下..
* ! (* !(
?PR?IntFunc0?INTFUNC,
?PR?IntFunc1?INTFUNC,
...
?PR?IntFunc26?INTFUNC)
目的在於希望同一個function可以同時給不同的ISR呼叫..
但有時仍會出現問題, 如下
void ABC_ISR(void)
{
..do something..
}
void Test(void)
{
ABC_ISR();
}
void IntFunc00(void) interrupt 0
{
return;
}
void IntFunc10(void) interrupt 10
{
ABC_ISR();
}
void IntFunc20(void) interrupt 20
{
Test();
}
在這樣的case下, 還是有機會出現Warning L15,
但是它顯示caller為IntFunc00, 與IntFunc20,
可是IntFunc00我並無call與ABC_ISR()有關的function,
請問是否有人遇過一樣的case呢? 要怎麼解決這樣問題呢?
感謝..