David,
'wakeup' attribute is not a reason of annoying warning,
_BIC_SR_IRQ() is.
Just ignore this warning message.
This is all about C99 where __FUNCTION__ is 'char *' but not
'const char *'.
If you still cannot afford :) some warnings, build gcc-3.4 where
built-in functions
completelly rewritten.
~d
--- In msp430@msp4..., "davidbagnara" <bagnara@o...> wrote:
> Hi,
>
> I am using the GCC compiler and have been using the _BIC_SR_IRQ()
> macro to change the LPM mode on exit from an interrupt. The
annoying
> warnings regarding the deprication of __FUNCTION__
has inspired the
> use of the 'wakeup' attribute. This has eliminated the problems
> with the warnings but I need help in regards to conditional
> invocation of the attribute.
>
> If a vectored interrupt only requires some events to exit LPM, how
> can 'wakeup' be restricted to the required vectors.
>
> Thanks in advance,
>
> David Bagnara
Hi,
I am using the GCC compiler and have been using the _BIC_SR_IRQ()
macro to change the LPM mode on exit from an interrupt. The annoying
warnings regarding the deprication of __FUNCTION__ has inspired the
use of the 'wakeup' attribute. This has eliminated the problems
with the warnings but I need help in regards to conditional
invocation of the attribute.
If a vectored interrupt only requires some events to exit LPM, how
can 'wakeup' be restricted to the required vectors.
Thanks in advance,
David Bagnara