Follow-up Comment #1, bug #28058 (project avr-libc):
I would also propose adding the following function to <avr/pgmspace.h>, to
allow for proper reading of PROGMEM char-s
__attribute__((__always_inline__)) static char pgm_read_char(PGM_P);
static char pgm_read_char(PGM_P addr) {
return (char)(__LPM((uint16_t)(addr)));
}
[Please note that in my initial submission, the markup feature eat up the
double-underscores around __attribute__ and __always_inline__ to single
underscores...]
Jan Waclawek
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?28058>
_______________________________________________
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