[Top][All Lists]

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

Re: [avr-libc-dev] New eeprom_rb prototype problem

From: E. Weddington
Subject: Re: [avr-libc-dev] New eeprom_rb prototype problem
Date: Mon, 16 Dec 2002 09:37:24 -0700

On 16 Dec 2002 at 17:31, Frederik Rouleau wrote:

> Hi !
> I have just migrate to the latest winAVR distribution and tried to
> recompile my code. I have a pb with the new eeprom_rb (or
> eeprom_read_byte now). The address parameter is now define as uint8_t
> ! Ok but then how can I access the 3840 bytes remaining on my
> Mega128's eeprom? Furthermore I had a look in eeprom.S and it seems
> that the address used is really 16bits wide.
> What am I missing ?

It is a mis-read. The eeprom_read_byte() parameter addr is a POINTER 
to a unit8_t, which is an 8-bit type. The pointer is 16 bits. Your 
previous code should work fine.


reply via email to

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