void eeprom_write_block_changes( const uint8_t * src, void * dest, uint16_t size ) { uint16_t len; for(len=0;len<size;len++) { eeprom_write_byte_changed( dest, *src ); src++; dest++; } }
// src is the address in RAM // dest is the address in eeprom void eeprom_write_block_changes(uint8_t *src, uint8_t *dest, uint16_t size) { uint16_t len; uint8_t value; for (len = 0; len < size; len++) { // Get value at src value = *src; // Write the value at src to dest eeprom_write_byte_changed(dest, value); src++; dest++; } }