avr-gcc-list
[Top][All Lists]
Advanced

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

Re: [avr-gcc-list] using EEPROM


From: Artur Lipowski
Subject: Re: [avr-gcc-list] using EEPROM
Date: Mon, 06 Oct 2003 08:02:49 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20030924 Thunderbird/0.3

Ron Kreymborg wrote:

int e_Variable1   EEPROM = 0;
const int e_Variable1   EEPROM = 0;
Just cosmetical change.

...
I have functions for bytes, strings and structures too, but the read/write
functions for integers are:
...
There are ready to use functions in the avr-libc. There is no need to reinvent wheel? 8-)

For Jack:
IMO the idea of Theodore's ee_map is to avoid spupplying raw EEPROM adresses. Addressing (EEPROM) by casting integer to pointer is IMHO always bad (at least not elegant) idea and I think that there is usually no such need in programs written in C.
BTW> There was some time ago a similiar thread on the AVRFreaks forum.

Regards,
--
Artur Lipowski



reply via email to

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