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/
_______________________________________________
AVR-libc-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev