12 * @brief Electrically Erasable Programmable Read-Only Memory
14 * This class represents the Eeprom memory in the chip.
16 class Eeprom
: public Hardware
, public Memory
{
18 Eeprom(Bus
& bus
, unsigned int size
, unsigned int rdyVec
);
22 void writeToAddress(unsigned int addr
, unsigned char val
);
23 unsigned char readFromAddress(unsigned int addr
);
26 bool attachReg(const char *name
, IORegister
*reg
);
27 void regChanged( IORegister
*reg
);
31 void setEECR( unsigned char eecr
);
36 unsigned char oldEecr
;
45 static const unsigned int writeEnableCycles
= 4;
46 static const unsigned int readCycles
= 4;
47 static const unsigned int writeCycles
= 2;
58 #endif /*AVR_EEPROM_H*/