/* Erase one invalid page according to two invalid physical page.  */
static void _eeprom_emulator_erase_invalid_page(uint16_t pre_phy_page, uint16_t next_phy_page)
/* Erase one invalid page according to two invalid physical page.  */
static void _eeprom_emulator_erase_invalid_page(uint16_t pre_phy_page, uint16_t next_phy_page)
{
	if(_eeprom_emulator_is_full_row(pre_phy_page)) {
		 _eeprom_emulator_nvm_erase_row(pre_phy_page/4);
	} else {
		_eeprom_emulator_nvm_erase_row(next_phy_page/4);
	}
}