avr-chat
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-chat] Is this efficient?


From: Ruud Vlaming
Subject: Re: [avr-chat] Is this efficient?
Date: Fri, 3 Oct 2008 21:55:37 +0200
User-agent: KMail/1.9.1

On Friday 03 October 2008 19:57, you wrote:
> > I cannot test it with _SFR_IO_REG_P, although that macro seems to be 
> > meant for the purpose:
> > Somewhere i am missing the point i guess. 

> The _SFR_IO_REG_P() macro is designed to be used in the C code itself, 
> not in any preprocessor statements. Something like: 
> if (_SFR_IO_REG_P(TIMSK))  ...

Ok that is the point i was missing. Stupid of me. However i really need
this on preprocessor level, so i guess my solution was not that
bad after all. Only disadvantage is it cannot be placed in header
files also being used in .s files. Well, you cannot have everthing in life ;-)

Thanks.
Ruud




reply via email to

[Prev in Thread] Current Thread [Next in Thread]