[Top][All Lists]

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

Re: [avr-gcc-list] Re: "progmem_far" attribute

From: Jim Brain
Subject: Re: [avr-gcc-list] Re: "progmem_far" attribute
Date: Sun, 20 Jul 2008 19:50:49 -0500
User-agent: Thunderbird (Windows/20080708)

Andy H wrote:
Yes this should be more than enough for data!

I am happy with "high" or anything that is not "far".
I am more than happy to be way off base, but the libraries looks to already be using _far:

When I ported some code recently from M644(p) to M1281, I had to fix this:

#if FLASHEND > 0xffff
 for(i = 0;i < sizeof(bootldrinfo_t);i++) {
((uint8_t*)&current_bootldrinfo)[i] = pgm_read_byte_far(FLASHEND - BOOTLDRSIZE - sizeof(bootldrinfo_t) + 1 + i);
memcpy_P(&current_bootldrinfo, (uint8_t*) FLASHEND - BOOTLDRSIZE - sizeof(bootldrinfo_t) + 1, sizeof(bootldrinfo_t));

If I'm correct, I think developers such as myself would expect the functions to be _near and _far, with an alias of _near to the old function name for larger devices like the 128/1280/1281/...

Of course, please ignore if I've misunderstood things.


reply via email to

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