avr-libc-dev
[Top][All Lists]
Advanced

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

Re: [avr-libc-dev] [bugs #12208] parameters eeprom functions


From: David Breeze
Subject: Re: [avr-libc-dev] [bugs #12208] parameters eeprom functions
Date: Fri, 04 Mar 2005 11:56:34 +0000

This seems to be a misunderstanding of how C pointers work!
As described the pointer would point to a word not a byte.
By definition an address for the AVR is 16 bits and so pointers are also 16 
bits unless otherwise forced.

I am able with the current tools to access all the eeprom in a mega128 QED

David


>>> anonymous <address@hidden> 04 March 2005 10:58:53 >>>

URL:
  <http://savannah.nongnu.org/bugs/?func=detailitem&item_id=12208>

                 Summary: parameters eeprom functions
                 Project: AVR C Runtime Library
            Submitted by: None
            Submitted on: Fre 04.03.2005 um 05:58
                Category: Header
                Severity: 5 - Average
                Priority: 5 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
        Percent Complete: 0%
             Assigned to: None
        Originator Email: address@hidden 
             Open/Closed: Open

    _______________________________________________________

Details:

Shouldn't be the address of the eeprom access functions a 16bit integer?
e.g.:

uint8_t eeprom_read_byte (const uint16_t *addr);
void eeprom_write_byte (uint16_t *addr, uint8_t val);

How can I read a byte of the eeprom with an address higher than 255?



    _______________________________________________________

Carbon-Copy List:

CC Address                          | Comment
------------------------------------+-----------------------------
optoelektronik --AT-- web --PUNKT-- de | Originator Email




    _______________________________________________________

This item URL is:

  <http://savannah.nongnu.org/bugs/?func=detailitem&item_id=12208>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/ 



_______________________________________________
AVR-libc-dev mailing list
address@hidden 
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev

This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed.  If 
an addressing or transmission error has misdirected
this e-mail, please notify the author by replying to this e-mail.  If you are 
not the intended recipient you must not use, disclose, copy, print or rely on 
this e-mail.

Joy Mining Machinery Limited/P&H Minepro Services aims to prevent the 
propagation of viruses, but cannot guarantee that this email is virus free.  
You are advised to scan all attachments and open them at your own risk.

Joy Mining Machinery Limited/P&H Minepro Services may monitor outgoing and 
incoming e-mails and other telecommunications on its e-mail and 
telecommunication systems.
<<Privacy - UK>>




reply via email to

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