Follow-up Comment #1, patch #8610 (project avr-libc):

Some device headers do not define EEARL if the EEAR is one byte. But EEPROM
functions refers EEARL assuming it is defined even if the length is one byte.

Following will define EEARL if device header defines only EEAR, not
EEARL/EEARH.

(snip to be added to include/avr/eeprom.h)

#if defined (EEAR) && !defined (EEARL) && !defined (EEARH)
#define EEARL EEAR
#endif



    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?8610>

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


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

Reply via email to