[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-libc-dev] What about to unify _SFR's macroses?
From: |
Dmitry K. |
Subject: |
Re: [avr-libc-dev] What about to unify _SFR's macroses? |
Date: |
Sun, 4 May 2008 10:13:39 +1100 |
User-agent: |
KMail/1.5 |
On Sunday 04 May 2008 08:33, Dmitry K. wrote:
> We have 3 variants of SFR usage:
> 1. This is default for C/C++. Port names are like common variables.
> 2. Port names are defined as ordinary numbers, suitable to use with
> IN/OUT instructions.
> 3. Port names are defined as ordinary numbers (addresses), suitable
> to use with LDS/STS instruction.
[...]
> Also, I prefer to have default for ASM the variant #3: this is compatible
> with old programs and corresponds to Atmel's datasheet examples. However,
> it too late to change.
Misprint, read above as:
> Also, I prefer to have default for ASM the variant #2: this is compatible
Variant #3 is default for ASM now.
Dmitry.