/* Configures the RWW EEPROM memory during the startup. 
This function will assign the first two bytes of RWW EEPROM as memory index representing number of entries stored and initializes the memory index  */
void memory_index_init(void)
/* Configures the RWW EEPROM memory during the startup. 
This function will assign the first two bytes of RWW EEPROM as memory index representing number of entries stored and initializes the memory index  */
void memory_index_init(void)
{
	rww_eeprom_emulator_read_buffer(SET_TO_ZERO, (uint8_t *)&memory_index,
	LENGTH_OF_MEMORY_INDEX);
	if(memory_index == EEPROM_EMPTY_CHAR) {
		memory_index = SET_TO_ZERO;
		rww_eeprom_emulator_write_buffer(SET_TO_ZERO,
				(const uint8_t *)&memory_index, LENGTH_OF_MEMORY_INDEX);
		rww_eeprom_emulator_commit_page_buffer();
	}
}