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


_______________________________________________
AVR-chat mailing list
AVR-chat@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-chat

Reply via email to