[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-libc-dev] Re: [bug #14378] EEPROM library d'not support at86rf401 d
From: |
Anatoly Sokolov |
Subject: |
[avr-libc-dev] Re: [bug #14378] EEPROM library d'not support at86rf401 device |
Date: |
Mon, 5 Sep 2005 01:06:22 +0400 |
Hi.
----- Original Message -----
From: "Joerg Wunsch" <address@hidden>
To: "Anatoly Sokolov" <address@hidden>; "Joerg Wunsch"
<address@hidden>; <address@hidden>
Sent: Sunday, September 04, 2005 12:56 PM
Subject: [bug #14378] EEPROM library d'not support at86rf401 device
Follow-up Comment #2, bug #14378 (project avr-libc):
I don't think this is necessary. Remember, we aren't building
It is necessary. When you fix bug #14241 you have defined eeprom_is_ready
macro in eeprom.h as:
#if defined(DOXYGEN)
# define eeprom_is_ready()
#elif defined(EEWE)
# define eeprom_is_ready() bit_is_clear(EECR, EEWE)
#elif defined(EEPE)
# define eeprom_is_ready() bit_is_clear(EECR, EEPE)
#else
# error "No write enable bit known for this device's EEPROM."
#endif
But the at86rf401 device has no bit EEWE or EEPE in sfr EECR, but has bit
EEL in sfr DEECR therefore there a error "No write enable bit known for
this device's EEPROM." is generated. eeprom_is_ready macro should be defined
as:
#if defined(DOXYGEN)
# define eeprom_is_ready()
#elif defined(EEWE)
# define eeprom_is_ready() bit_is_clear(EECR, EEWE)
#elif defined(EEPE)
# define eeprom_is_ready() bit_is_clear(EECR, EEPE)
#elif defined(DEECR) && defined(EEL)
# define eeprom_is_ready() bit_is_clear(DEECR, EEL)
#else
# error "No write enable bit known for this device's EEPROM."
#endif
Anatoly.