Parthasaradhi Nayani <partha_nay...@yahoo.com> wrote:

> I have an external FLASH (serial) of size 256K. I would like t=
> o create a memory section for this memory and have pointers (more than 16 b=
> its) to this memory.

What's the point?  A pointer is just a 32-bit (or perhaps 24-bit,
in recent AVR-GCC versions) number.

Normally, the point of using a pointer is that the compiler arranges
for you to dereference the pointer automatically, but this memory
being external, not accessible by normal CPU instructions, this cannot
work anyway.  Consequently, you can use the respective integer numbers
by itself (perhaps through some kind of typedef that hints them being
memory addresses).

-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)

_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
https://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to