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

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

[avr-libc-dev] [bug #31613] In pgm_read_byte the address is a byte inste


From: Reinier van der Welle
Subject: [avr-libc-dev] [bug #31613] In pgm_read_byte the address is a byte instead of an int
Date: Wed, 10 Nov 2010 14:23:53 +0000
User-agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; AntivirXP08; GTB6.5; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; Creative AutoUpdate v1.40.01)

URL:
  <http://savannah.nongnu.org/bugs/?31613>

                 Summary: In pgm_read_byte the address is a byte instead of
an int
                 Project: AVR C Runtime Library
            Submitted by: reinier
            Submitted on: Wed Nov 10 14:23:52 2010
                Category: Library
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: libc code
                  Status: None
        Percent Complete: 0%
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.6.7
           Fixed Release: None

    _______________________________________________________

Details:

I am trying to use pgm_read_byte(address) for reading a byte from tables in
program flash. The compiler requires a char (byte) address instead of an int
(16 bits) (which should be the case according to the documentation). Using an
int address skips every second byte in the table. How can I use int
addresses?
Thank you for your comments.
Reinier





    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?31613>

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




reply via email to

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