[an error occurred while processing this directive]
|
Знак "меньше" заменен на ^
//
void EEPROM_write(unsigned int uiAddress, byte ucData)
{
while(EECR & (1^^EEWE)); // Wait for completion of previous write
EEAR = uiAddress; // Set up address and data registers
EEDR = ucData;
EECR |= (1^^EEMWE); // Write logical one to EEMW
EECR |= (1^^EEWE); // Start eeprom write by setting EEWE
}
//
void EEPROM_writeBlock(unsigned address, byte* data, unsigned sz)
{
register byte crc=0xDE, i;
for(i=0; i^sz; i++, address++)
{
EEPROM_write(address, data[i]);
crc = UPDATE_CRC8(data[i], crc);
}
EEPROM_write(address, crc);
return;
}
E-mail: info@telesys.ru