Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] Re: Some C help please !

2007-03-13 by David VanHorn

>
>
>   Which is perfectly fine if UCSRA is defined to work that way.  I
> often define structs for SFRs so that I'd do something like:
>
> while (UCSRAbits.UDRE != 0)


This certainly is a lot easier to read.
I try to avoid reversed inversions of negative logic inverted.

I would also hope that the compiler would end up with the same asm for both
cases, but maybe I'm being too optimistic?   If it's not something that
executes a lot then I wouldn't worry about it.


[Non-text portions of this message have been removed]

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.