[Top][All Lists]

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

[avr-gcc-list] Readming TCNT1 (__inw_atomic)

From: Derick Schoonbee
Subject: [avr-gcc-list] Readming TCNT1 (__inw_atomic)
Date: Wed, 27 Aug 2003 22:06:49 +0200


Is __inw_atomic "valid" ?
return __inw_atomic( TCNT1L );

This macro does not seem to be defined in the headers of WinAVR-20030424 from sf.net. I found it in iomacros.h of another verion on my PC but could not figure out if this an 'old' ver :-|

Thus my real question is:
Is "return (TCNT1L)" safe? (Guess not)
Will it clobber some registers? Or do I just need to follow the guidelines @ http://savannah.nongnu.org/download/avr-libc/doc/avr-libc-user-manual/FAQ.html#faq_16bitio ?

Any other shortcuts like the one above or shall I just copy-n-past the define?



Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail

reply via email to

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