Hi Paul,
What you are doing is correct. There does not seem to be an obvious way
around this. If its depracated, then maybe it won't work in future
versions of GCC, which is worrying. There doesn't seem to be a way to
turn off this warning, without turning off other useful warnings. Still,
the bottom line is the code works out OK right now.
Regards,
Steve
Paul Georgief wrote:
MSPGCC group:
What is the proper way to conditionally wake in an ISR?
When I use the _BIC_SR_IRQ() function there is a warning issued that says:
Warning: concatenation of string literals with __FUNCTION__ is deprecated
It works fine, but why is the warning generated?
Thanks,
-Paul
========
(code example I am typing in by hand - hopefully I will not make a mistake)
interrupt (TIMERA0_VECTOR) ISR_timerA(void) {
if (wakeup_flag_set_by_another_isr)
_BIC_SR_IRQ(SCG1|SCG0|CPUOFF);
}