15 * @brief Flash memory in the AVR chip
17 * This class represents the Flash memory in the chip.
18 * It allows read and write operations
20 class Flash
: public Hardware
, public Memory
{
22 Flash(Bus
& bus
, unsigned int size
, int pagesize
);
27 * Fill a block of flash memory with the specified value.
29 * \exception AccessViolation { When the write exceeds
30 * amount of memory, this exception is thrown }
32 void fill(unsigned int offset
, byte val
, unsigned int size
= 1);
35 void storeProgramMemory(dword Z
, byte r0
, byte r1
);
43 bool attachReg(const char *name
, IORegister
*reg
);
45 void regChanged( IORegister
*reg
);
49 // For reprogramming..
54 unsigned char *buffer
;
62 #endif /*AVR_FLASH_H*/