/****************************************************************** * Function Description: get cur eeprom emulator data * Return: 0x0 - 0x200 valid offset to latest data package * EEPROM_EMPTY No data available * EEPROM_INVALID Data corruption, need erase *******************************************************************/ static UINT16 get_cur_eeprom_offset() { UINT16 prev_len, cur_len; UINT16 cur_offset; UINT8 *addr;