[Top][All Lists]

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

Fw: Fw: [avr-gcc-list] AVR UART as ANSI Terminal Interface

From: Royce & Sharal Pereira
Subject: Fw: Fw: [avr-gcc-list] AVR UART as ANSI Terminal Interface
Date: Tue, 2 Nov 2004 00:29:43 +0530

----- Original Message -----
From: "Dave Hansen" <address@hidden>
> An alternative that has worked well for me (for this particular
> transformation) is to use bit field structures along with the
> For example:
>    struct flag_bits
>    {
>       unsigned key: 1;
>       unsigned ZCD: 1;
>    } flg;
>    #define flg_key flg.key
>    #define flg_ZCD flg.ZCD
> This way, the syntax of the code using the bits doesn't have to change.
>    flg_key = 1;
>    if (flg_ZCD) /* etc. */
Can this method be used for ports & other SFRs which have predetermined


This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

reply via email to

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