[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-libc-dev] Wishlist: place static bool in GPIO registers
From: |
Dmitry K. |
Subject: |
Re: [avr-libc-dev] Wishlist: place static bool in GPIO registers |
Date: |
Thu, 20 Dec 2007 15:41:14 +1000 |
User-agent: |
KMail/1.5 |
On Thursday 20 December 2007 07:12, Shaun Jackman wrote:
[...]
> So, my wishlist item is to be able to use an attribute on a static
> bool to locate it in the GPIO section, similar to PROGMEM, such as
> #define IOMEM __attribute__((__iomem__))
> static bool IOMEM my_flag;
[...]
A little note: PROGMEM (i.e. __attribute__((progmem)))
is not a directive to compiler. It is the directive to
linker. Themself GCC compiler is absolutely wrong when
it deals with PROGMEM variables.
Regards,
Dmitry.