Part Number: AM6442
Hi
My customer is using the MCU+SDK 7.3 within AM6442.
By writing a function and ISR like this:
void main(void)
{
…
functionA()
…
Enable interrupt.
}
__attribute__((interrupt(“IRQ”))) void ISR(void);
void ISR(void)
{
…
functionA()
…
}
then, the clang complier 1.2 will give us this warning:==> call to function without interrupt attribute could clobber interruptee's VFP registers
If declaring A as this way:
|
__attribute__((interrupt("IRQ"))) void functionA(void); |
The warning will disappear.
So, my questions are:
A. How to avoid this warning? If not, any side effect?
B. the AM6442 CLS layer has many this kinds of warning, is this okay?
BR Rio