EmbeddedRelated.com
Forums
Memfault Beyond the Launch

GCC 'wakeup' attribute

Started by davidbagnara June 11, 2004
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


Beginning Microcontrollers with the MSP430

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



Memfault Beyond the Launch