[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-libc-dev] New eeprom_rb prototype problem
From: |
Joerg Wunsch |
Subject: |
Re: [avr-libc-dev] New eeprom_rb prototype problem |
Date: |
Mon, 16 Dec 2002 17:38:22 +0100 |
User-agent: |
Mutt/1.2.5i |
As Frederik Rouleau wrote:
> I have a pb with the new eeprom_rb (or eeprom_read_byte now). The address
> parameter is now define as uint8_t !
Nope:
extern uint8_t eeprom_read_byte (uint8_t *addr);
It's declared to be a /pointer/ to an 8-bit entity, which is exactly
what it is: one EEPROM cell contains a single byte, and the address is
nothing else than a pointer to this cell.
> Furthermore I had a look in eeprom.S and it seems that the address
> used is really 16bits wide.
Yep. All pointers are 16 bits wide on the AVR.
--
J"org Wunsch Unix support engineer
address@hidden http://www.interface-systems.de/~j/