/* This function is only for Micron 128MB flash to read from Extended Address Register, which shows the current segment. Please refer to flash datasheet for more information about memory mapping.  */
int flash_get_extend_addr(flash_t *obj)
/* This function is only for Micron 128MB flash to read from Extended Address Register, which shows the current segment. Please refer to flash datasheet for more information about memory mapping.  */
int flash_get_extend_addr(flash_t *obj)
{
	( void ) obj;
	u8 temp = 0;
	FLASH_Write_Lock();
	FLASH_RxCmd(0xC8, 1, &temp);
	FLASH_Write_Unlock();
	return temp;
}